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
Which adapter should you use, if you want to get the data from an access database?
In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?
What are the differences between code behind and code inline?
How can u debug your .net application?
Explain asp.net web forms.
What is semantic gap?
How many ways are there to maintain a state in .net? What is view state?
Can I tap into other windows livetm services?
How does session work?
What does ascx stand for?
How does a content page different from a master page?
What are the different properties of server control that exists?
Explain State management in asp.net
What is the difference between session object and application object?
Explain code snippet to register exception filters from controller?