we can able to display a MessageBox in asp .net without
using any script langages?
Answer Posted / rathika.k
using System;
using System.Runtime.InteropServices;
namespace ExternKey
{
class Class1
{
[DllImport("User32.dll")]
public static extern int MessageBox(int h,
string m, string c,int type);
static void Main(string[] args)
{
string mystring;
Console.Write("Enter Your
Message : ");
mystring = Console.ReadLine();
MessageBox(0,mystring,"Message",0);
}
}
}
Try like this. It will workout without using any Script
Language.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What's the difference between viewstate and sessionstate?
Why select Web API?
Name the tools or API for developing or testing web api?
there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?
Tell me the code snippet to show how we can return 404 errors from HttpError?
Explain the asp.net mvc folder conventions? : asp.net mvc
how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly
What is session authentication?
What is http post and http get?
What are the cookies types in asp.net?
Can we store object in viewstate?
What r the asp.net list controls and difference between them?
What language does asp.net use?
How is mvc different from asp.net? : Asp.Net MVC
Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?