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 |
Is overloading possible in web services?
What is deference between asp.net, vb.net, c# & j#
Types of session management in ASP.NET?
I have got less marks in bsc it So how to get interview.tell me
Give an example appropriate use forweb service as opposed to a non-serviced .NET component
Name two properties common in every validation control?
You ve defined one page_load event in aspx page and same page_load event in code behind how will prog run?
What is ispostback property?
How to implement Authentication and Authorization?
Give an example of what might be best suited to place in the application_start and session_start subroutines?
How do you handle session management in ASP.NET and how do you implement them. How do you handle in case of SQLServer mode ?
Diff between web user control and web custom control?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)