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

Why we are using mvc instead of asp.net? : Asp.Net MVC

700


What is the difference between cache and cookies?

714


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

707


Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc

803


Explain the components of web form in asp.net

753


Which type of state management is provided by Query String in ASP.NET?

779


What is the mvc model?

755


Explain how cookies work. Give an example of cookie abuse.

879


Explain Authentication mechanism in dotnet

796


Explain diff between dataset and datareader?

709


Where is the session stored?

836


How to find last error which occurred in Asp.net ?

927


What is autopostback in dropdownlist in asp net?

732


What is variable and constant in .net programming language?

589


Explain the Order of events in an asp.net page?

784