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 asp.net mvc? : asp.net mvc
What is the difference between abstract class vs interface? Can give me the real time examples?
what is the difference between response.write() and response.output.write()?
What is web.config. How many web.config files can be allowed to use in an application?
6 Answers Accenture, HCL, InterGraph, iSoft,
Which tool you have done?
When we do partial refresh of a page using update panel how server knows it(which event occurs?)
How can we create custom controls in asp net?
Is it necessary to create a Windows application or Web application to test a Web service ? Is it must to consume this service?
What are uri parameters?
what is meant by sitemapnode ?
how to convert from sql2000 numeric to int in asp.net with sqlparameter?
how we declare interface