Click here to Skip to main content
15,917,473 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGridview Printing Pin
danielleroy20-Nov-07 8:31
danielleroy20-Nov-07 8:31 
QuestionNeed help impersonating a user Pin
dalge20-Nov-07 5:23
dalge20-Nov-07 5:23 
GeneralRe: Need help impersonating a user Pin
dalge20-Nov-07 5:28
dalge20-Nov-07 5:28 
GeneralRe: Need help impersonating a user Pin
Pete O'Hanlon20-Nov-07 11:19
mvePete O'Hanlon20-Nov-07 11:19 
QuestionAJAX Confirm Button Extender Pin
Sarfaraj Ahmed20-Nov-07 5:12
Sarfaraj Ahmed20-Nov-07 5:12 
AnswerRe: AJAX Confirm Button Extender Pin
M_Menon20-Nov-07 6:13
M_Menon20-Nov-07 6:13 
GeneralRe: AJAX Confirm Button Extender Pin
Sarfaraj Ahmed20-Nov-07 6:28
Sarfaraj Ahmed20-Nov-07 6:28 
AnswerRe: AJAX Confirm Button Extender Pin
SABhatti20-Nov-07 6:40
SABhatti20-Nov-07 6:40 
javascript function something like:
<br />
function validateAndSubmit()<br />
{<br />
// validate the dropdownlist // I am assuming first value in dropdown list is not valid value<br />
var validFalg = true;<br />
if(document.getElementById(dropdownlist).selectedIndex == -1 || document.getElementById(dropdownlist).selectedIndex == 0)<br />
{<br />
// no value selected so set the validflag to false;<br />
validFlag = false;<br />
}<br />
if(validFlag)// valid values<br />
{<br />
var con = confirm("Are you sure you want to...");<br />
if(con)// user clicked yes<br />
return true; // submit the form, on server side save the data and display message in any div<br />
else// user clicked no/cancel<br />
{<br />
alert('data not saved');<br />
return false;<br />
}<br />
else//invalid values<br />
{<br />
alert('please select valid values');<br />
return false;<br />
}<br />
}<br />
}<br />
<br />


call the above function on button's client click like
asp:button id="mybtn" runat="server" onCLientClick="javascript:return validateAndSubmit()"



-----

GeneralRe: AJAX Confirm Button Extender Pin
Sarfaraj Ahmed20-Nov-07 8:29
Sarfaraj Ahmed20-Nov-07 8:29 
AnswerRe: AJAX Confirm Button Extender Pin
SABhatti20-Nov-07 10:30
SABhatti20-Nov-07 10:30 
QuestionSettings is not a member of my Pin
JMUREKEZI20-Nov-07 4:58
JMUREKEZI20-Nov-07 4:58 
AnswerRe: Settings is not a member of my Pin
Not Active20-Nov-07 11:47
mentorNot Active20-Nov-07 11:47 
GeneralRe: Settings is not a member of my Pin
JMUREKEZI21-Nov-07 4:02
JMUREKEZI21-Nov-07 4:02 
QuestionExecute a SSIS package from aspx Pin
srinandan..20-Nov-07 4:04
srinandan..20-Nov-07 4:04 
AnswerRe: Execute a SSIS package from aspx Pin
Michael Sync20-Nov-07 4:52
Michael Sync20-Nov-07 4:52 
QuestionWebconfig + SQL Server 2003 Pin
Ibuprofen20-Nov-07 3:37
Ibuprofen20-Nov-07 3:37 
AnswerRe: Webconfig + SQL Server 2003 Pin
Michael Sync20-Nov-07 4:43
Michael Sync20-Nov-07 4:43 
GeneralRe: Webconfig + SQL Server 2003 Pin
Ibuprofen21-Nov-07 4:26
Ibuprofen21-Nov-07 4:26 
QuestionReport Problem Pin
macca2420-Nov-07 3:30
macca2420-Nov-07 3:30 
AnswerRe: Report Problem Pin
Michael Sync20-Nov-07 4:54
Michael Sync20-Nov-07 4:54 
AnswerRe: Report Problem Pin
Gandalf_TheWhite20-Nov-07 18:19
professionalGandalf_TheWhite20-Nov-07 18:19 
GeneralRe: Report Problem Pin
macca2420-Nov-07 22:15
macca2420-Nov-07 22:15 
Questionjavascript problem in simulate tab menu???? Pin
mr.mohsen20-Nov-07 3:25
mr.mohsen20-Nov-07 3:25 
AnswerRe: javascript problem in simulate tab menu???? Pin
Michael Sync20-Nov-07 4:22
Michael Sync20-Nov-07 4:22 
Questiondelegates Pin
Sonia Gupta20-Nov-07 3:10
Sonia Gupta20-Nov-07 3:10 

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.