-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: Kaveti
Message 2 in Discussion
Hi There
I need help in the ASP.Net Code,
I have a web page where in there's a Dropdown box it's filled with some data
during page load when the user changes any value of the Dropdown it should
show an message to the user saying that " Do you want to Save changes" if
the user chooses Yes then continie otherwise keep the same page. I was
trying to get this by Java Script. Any help is appreciated.
Here's the code i wrote,
In HTML,
<script type="text/javascript" language="javascript">
function Confirm()
{
var agree=confirm("If you made any unsaved changes, they will be
lost. Do you want to continue ?");
if (agree)
return true;
else
return false;
}
</script>
<asp:DropDownList ID="PageNoDropDownList" runat="server" AutoPostBack="True"
Style="z-index: 102;left: 101px; position: relative; top: 0px"
Visible="False">
In Code Behind,
In Page Load, i have this,
PageNoDropDownList.Attributes.Add("onchange", "Confirm();")
Thank you for your time.
Regards
Dheeraj
_________________________________________________________________
Get live scores and news about your team: Add the Live.com Football Page
www.live.com/?addtemplate=football&icid=T001MSN30A0701
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]