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
Explain the Session state management options available with ASP.NET?
What is difference cookie and session?
What is asp.net mvc5? : Asp.Net MVC
What are the Types of chaching. How to implement caching
Types of instancing properties and explain each. Tell the difference between multiuse,singleuse and globalmultiuse and which is default ?
Explain about secure socket layer?
What are the major built-in objects in ASP.NET?
What is the difference between response.redirect and server.transfer?
What is difference between rest and soap?
Why asp.net is better than php?
How do we access view state value of this page in the next page?
What is diff. Between abstract class and an interface?
Where web.config file is used?
What is the typical session identifier?
Explain the different parts that constitute ASP.NET application?