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 is clr? Difference between clr & cts?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
Which is better asp.net or php?
Describe the method to create a permanent cookie?
What are ASHX files?
witch is the best insistute in sharpoint course.what abt future of share point course.
Explain why it is useful to use mvc instead of webforms? : asp.net mvc
How many languages are supported by .NET at present time?
What is bound controls
Which class is used to send an email message from an ASP.NET Web page?
Describe the difference between inline and code behind - which is best in?
Give 2 examples for scenarios when routing is not applied?
When using the Pager object, inorder to know which page to go, which property you have to set to grid?
What is meant by asp.net?
What are merge modules?