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
Mention the namespace that is used to include .net data provider for sql server in .net code?
Why and where this web.config file is used?
How can we update records in gridview?Is there any appropriate code for it?
Differentiate between globalization and localization.
Describe state management in asp.net?
how to elimainte the similar data from the different tables
Define msil.
What is the use of autowireup in asp.net?
What is jade template engine?
Which method is used to force all the validation controls to run?
Can a master page have more than one contentplaceholder?
Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?
How do I send an email message from my ASP.NET page?
Explain the difference between webfarm and webgardens in .net?
Can we add code files of different languages in app_code folder?