QUOTE(PsychoCoder @ 23 Apr, 2008 - 12:05 PM)

You cannot use a MessageBox with ASP.Net, that is for Windows applications only. You will see the message if you are developing locally, but once it's deployed to the hosting server the MessageBox will appear on the server
only, the user viewing your site will not see it. For displaying prompts to the user use JavaScript's
alertbah ok, i figured as much..... Learn to not trust msdn sites or any other coding site but DIC!
so my problem still persists
i can create the javascript alert box, however it only comes in the OK flavor. for this application i'm developing i NEED and i stress life threatening NEED it to be Yes/NO. Is there a way to mold the js alert to include yes/no?
also will this render my C# code usless?
also I have a variable which needs to send information to the 2nd page of the application. I accomplish this by using
CODE
public String A name
{
get
{
Variable1 = DropDownList1.SelectedIndex.ToString();
Variable1 += variable2.Text;
return Variable1;
}
}
+
<%@ PreviousPageType VirtualPath="~/my previos page.aspx" %> and A label.Text = PreviousPage.A name;
my problem is this: I need to something along the lines of this:
CODE
If (how do i determine if page is being reloaded?)
{
A label.Text = Variable;
}
else
{
A label.Text = PreviosPage.A name;
Variable = PreviosPage. A name;
This post has been edited by rgfirefly24: 23 Apr, 2008 - 11:47 AM