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
Why we are using mvc instead of asp.net? : Asp.Net MVC
What is the difference between cache and cookies?
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?
Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc
Explain the components of web form in asp.net
Which type of state management is provided by Query String in ASP.NET?
What is the mvc model?
Explain how cookies work. Give an example of cookie abuse.
Explain Authentication mechanism in dotnet
Explain diff between dataset and datareader?
Where is the session stored?
How to find last error which occurred in Asp.net ?
What is autopostback in dropdownlist in asp net?
What is variable and constant in .net programming language?
Explain the Order of events in an asp.net page?