Hello all,
I am working on my first asp.net application and am using Visual Studio 2005 to create a web application. I resently found out that the msgbox cannot be used in a web application because it runs on the server-side. I've searched for some sort of equivalent for asp.net and found a lot of sample code for using javascript or vbscript to display a confirm msg on a button click, but no information on how to make it communicate with the aspx code.
I currently have a database of people, which have "cases".
When adding a new person to the database the following occurs:
All of my aspx code works, but what I need to do is replace the message box above, with an alternative popup(javascript, etc.) that will stop the aspx code from processing until I have selected an option, and then pass the selected option back to the aspx code so it will know what to do next. Does anyone have any information about how I can go about doing this. Thanks for the help.
I am working on my first asp.net application and am using Visual Studio 2005 to create a web application. I resently found out that the msgbox cannot be used in a web application because it runs on the server-side. I've searched for some sort of equivalent for asp.net and found a lot of sample code for using javascript or vbscript to display a confirm msg on a button click, but no information on how to make it communicate with the aspx code.
I currently have a database of people, which have "cases".
When adding a new person to the database the following occurs:
Code:
Protected Sub btnTEST_Click(ByVal...) =
Code to check if user already exist in database...
[blue]If User does not exist then[/blue]
code to add user and "case" information to db...
[blue]elseIf user does exist then[/blue]
display [red][b]msgbox"User already exist, do you want to add new case to users profile."[/b][/red] (yes/no msgbox)
[green]If yes then[/green]
code to add users case information...
[green]elseIf No then[/green]
stop process additional aspx code
[green]end if[/green]
[blue]end if[/blue]
end sub
All of my aspx code works, but what I need to do is replace the message box above, with an alternative popup(javascript, etc.) that will stop the aspx code from processing until I have selected an option, and then pass the selected option back to the aspx code so it will know what to do next. Does anyone have any information about how I can go about doing this. Thanks for the help.