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 |
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.
How can we implement a identity (sql server) call in an asp.net page?
How many web.config files in each solution
What are the difference between ASP and ASP.Net?
Why the javascript validation not run on the asp.net button but run successfully on the html button?
What is http only cookie?
Differentiate between early binding and late binding.
1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?
How to kill session?
I have prepared A Dynamic website in asp.net with c# and using Ms Sql server 2005 as backend database.i am facing problem while uploading this site on my FTP address it is not accessing the database.please could u tell me how cn i upload Sqlserver database on the web and what would be the connection string...???? I am using Server=".";initial catalog=databasename;persist security info=false;integrated security=SSPI;...pleas help me... Thanks in Advance..
hi everyone. can anyone send me wipro interview questions on .net. plz its urgent
what is advantage of developing in asp.net.why the same can't be developed in Java or other web developemnt tool.what are advantages of developers.