Click here to Skip to main content
15,902,198 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: code project is mostly in C# Pin
sahelk28-Mar-07 4:34
sahelk28-Mar-07 4:34 
GeneralRe: code project is mostly in C# Pin
enjoycrack28-Mar-07 1:50
enjoycrack28-Mar-07 1:50 
AnswerRe: code project is mostly in C# Pin
Colin Angus Mackay28-Mar-07 1:59
Colin Angus Mackay28-Mar-07 1:59 
AnswerRe: code project is mostly in C# Pin
DanB198328-Mar-07 2:32
DanB198328-Mar-07 2:32 
GeneralRe: code project is mostly in C# Pin
sahelk28-Mar-07 4:31
sahelk28-Mar-07 4:31 
GeneralRe: code project is mostly in C# Pin
DanB198328-Mar-07 4:54
DanB198328-Mar-07 4:54 
Questionhow can i show a message box?? Pin
regin28-Mar-07 1:10
regin28-Mar-07 1:10 
AnswerRe: how can i show a message box?? Pin
kubben28-Mar-07 1:18
kubben28-Mar-07 1:18 
If you are doing a post back you can use code like this:
NOTE you need:
using System.Text;

private void ShowMessageBox(string aMessage)
{
aMessage = aMessage.Replace(vbCrLf, "\\n").Replace("\"", "'");
StringBuilder myScript = new StringBuilder();
myScript.Append("<script>");
myScript.Append(Environment.NewLine);
myScript.Append("alert(\"").Append(aMessage).Append("\");");
myScript.Append(Environment.NewLine);
myScript.Append("</script>");
Page.RegisterStartupScript("TagMessage", myScript.ToString());
}

NOTE in .net 2.0 the call to registerstartupscript has changed.

If you are not doing a post back you have to use javascript.

Hope that helps.
Ben
GeneralRe: how can i show a message box?? Pin
regin28-Mar-07 1:38
regin28-Mar-07 1:38 
GeneralRe: how can i show a message box?? Pin
kubben28-Mar-07 1:45
kubben28-Mar-07 1:45 
GeneralRe: how can i show a message box?? Pin
regin28-Mar-07 1:54
regin28-Mar-07 1:54 
GeneralRe: how can i show a message box?? Pin
kubben28-Mar-07 2:14
kubben28-Mar-07 2:14 
AnswerRe: how can i show a message box?? Pin
ajay5888628-Mar-07 1:20
ajay5888628-Mar-07 1:20 
AnswerRe: how can i show a message box?? Pin
enjoycrack28-Mar-07 1:55
enjoycrack28-Mar-07 1:55 
GeneralRe: how can i show a message box?? Pin
regin28-Mar-07 19:22
regin28-Mar-07 19:22 
QuestionURL Rewriting Pin
wEb GuRu...28-Mar-07 0:58
wEb GuRu...28-Mar-07 0:58 
AnswerRe: URL Rewriting Pin
l0kke28-Mar-07 1:24
l0kke28-Mar-07 1:24 
AnswerRe: URL Rewriting Pin
DanB198328-Mar-07 1:28
DanB198328-Mar-07 1:28 
Questionconnect textbox with database Pin
mmm!@#27-Mar-07 23:45
mmm!@#27-Mar-07 23:45 
AnswerRe: connect textbox with database Pin
enjoycrack28-Mar-07 0:26
enjoycrack28-Mar-07 0:26 
AnswerRe: connect textbox with database Pin
Victor Ebe3-Dec-10 1:36
Victor Ebe3-Dec-10 1:36 
QuestionDo modification in a GridView Pin
Oga M27-Mar-07 23:41
Oga M27-Mar-07 23:41 
AnswerRe: Do modification in a GridView Pin
varshavmane27-Mar-07 23:54
varshavmane27-Mar-07 23:54 
Questionhow to upload picture to a folder in the web host? in asp Pin
neodeaths27-Mar-07 23:40
neodeaths27-Mar-07 23:40 
AnswerRe: how to upload picture to a folder in the web host? in asp Pin
enjoycrack28-Mar-07 0:23
enjoycrack28-Mar-07 0:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.