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


Please Help Members By Posting Answers For Below Questions

What is clr? Difference between clr & cts?

688


Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?

546


Which is better asp.net or php?

536


Describe the method to create a permanent cookie?

584


What are ASHX files?

603






witch is the best insistute in sharpoint course.what abt future of share point course.

2556


Explain why it is useful to use mvc instead of webforms? : asp.net mvc

602


How many languages are supported by .NET at present time?

287


What is bound controls

589


Which class is used to send an email message from an ASP.NET Web page?

548


Describe the difference between inline and code behind - which is best in?

514


Give 2 examples for scenarios when routing is not applied?

603


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

565


What is meant by asp.net?

544


What are merge modules?

558