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
How many types of state management are there in asp net?
In the Repeater control which way you can edit?
How you can add an event handler?
How would you turn off cookies on a page of a website?
Does asp.net still recognize the global.asa file?
Explain the benefits of viewstate?
Which protocol is used in a web api?
What are the features that make asp.net more used framework? : asp.net mvc
What is difference between asp state management and asp.net state management?
What is view state management in asp net?
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
Explain cookies with example.
What is windows active directory authentication?
What is form submit?
Explain security types in asp.net?