Borgard
05-16-2012, 07:13 PM
Hello,
Firstly thank you for reading this.
Secondly I hope this is in the correct area.
I've been tasked with creating a form in ASP.net (that I don't really know) and have been very unsucessful. I've got the form to display as intended, but the actual function of the form is where I'm having difficulty.
The first thing I'm trying to get to work is an alert to display when a client clicks the "submit" button that reads "Thank you, your information...." then that message would need to have another button on it "OK" that the client would press upon reading the message. here is part of the form I have thus far:
<div class="cssbutton gBtn a"><asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="ShowMessage()"></asp:Button></div>
Now I also have this written further on the page:
<script type="javascript">
function ShowMessage()
{
document.window.alert("Thank you, your information has been recieved.");
}
</script>
If there is anything anyone can provide to help with this it would be greatly appreciated. If need be I could supply the entire page code, but for purposes of seeing if I'm asking the impossible or something that is way beyond my ability I only pasted the button code and the script I was trying.
Thank you for your time,
Firstly thank you for reading this.
Secondly I hope this is in the correct area.
I've been tasked with creating a form in ASP.net (that I don't really know) and have been very unsucessful. I've got the form to display as intended, but the actual function of the form is where I'm having difficulty.
The first thing I'm trying to get to work is an alert to display when a client clicks the "submit" button that reads "Thank you, your information...." then that message would need to have another button on it "OK" that the client would press upon reading the message. here is part of the form I have thus far:
<div class="cssbutton gBtn a"><asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="ShowMessage()"></asp:Button></div>
Now I also have this written further on the page:
<script type="javascript">
function ShowMessage()
{
document.window.alert("Thank you, your information has been recieved.");
}
</script>
If there is anything anyone can provide to help with this it would be greatly appreciated. If need be I could supply the entire page code, but for purposes of seeing if I'm asking the impossible or something that is way beyond my ability I only pasted the button code and the script I was trying.
Thank you for your time,