we can able to display a MessageBox in asp .net without
using any script langages?
Answers were Sorted based on User's Feedback
Answer / lakshmikanth
yes we can add first click on add reference and
add "system.windows.froms" dll in windows which pops up
then start using
System.windows.forms.messagebox.show("i love
india","Lakshmikanth");
Is This Answer Correct ? | 20 Yes | 7 No |
Answer / karan munjal
No, We can't able to display a msgbox in asp.nt
Is This Answer Correct ? | 16 Yes | 12 No |
Answer / ajit
using system.Text;(namespace)
and applying following code
string myStringVariable = string.Empty;
myStringVariable = "Welcome";
ClientScript.RegisterStartupScript(this.GetType(),
"myalert", "alert('" + myStringVariable + "');", true);
on button click...
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
Answer / raks
No, We can't able to display a msgbox in asp.net..
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / mohit jethva
by using DLLImport(USER32.dll)
you can use msgbox in .net
Is This Answer Correct ? | 7 Yes | 9 No |
What is a Repeater Control and how does it works? and what is the diffrence b/w Gridview,datalist and repeater control?
hi ans dis qstn. "what is d max size of query string. If it exceeds does it give error. if yes wt error it gvs, if no gv the reason" thnx in advance
Where would you use an IHttpModule, and what are the limitations of anyapproach you might take in implementing one?
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
What is _viewstart?
What type of code, client-side or server-side, is found in a code-behind file of a Web page?
how can we maintain security in soted procedure?
How do you get records number from 5 to 15 from a dataset of 100 records?
can sn.exe can be used before gacutil.exe
Is it possible for me to change my aspx file extension to some other name?
Explain about asp.net caching?
What are httphandlers and httpmodules and difference between them?