Click here to Skip to main content
15,898,134 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: using a class in another webform Pin
Michael Sync7-Dec-07 7:06
Michael Sync7-Dec-07 7:06 
GeneralRe: using a class in another webform Pin
J$7-Dec-07 7:12
J$7-Dec-07 7:12 
GeneralRe: using a class in another webform Pin
nigel20007-Dec-07 8:25
nigel20007-Dec-07 8:25 
QuestionHow To Select Only One Radio Button in GridView Control in C# Pin
mrgaddam7-Dec-07 4:41
mrgaddam7-Dec-07 4:41 
AnswerRe: How To Select Only One Radio Button in GridView Control in C# Pin
Michael Sync7-Dec-07 6:03
Michael Sync7-Dec-07 6:03 
GeneralRe: How To Select Only One Radio Button in GridView Control in C# Pin
Michael Sync7-Dec-07 6:05
Michael Sync7-Dec-07 6:05 
GeneralException when calling web service: The underlying connection was closed Pin
Talal Sultan7-Dec-07 3:49
Talal Sultan7-Dec-07 3:49 
GeneralJavascript Error Pin
M_Menon7-Dec-07 3:43
M_Menon7-Dec-07 3:43 
Hi Friends,

I am using two method onclick of my button.
OnClientClick="ValidateDates() (Client Side Validation Method)
function ValidateDates()
{
//Get both datesvar startDate = eo_GetObject("OpenDatePicker").getSelectedDate();
var startDate = eo_GetObject("ArrivalDatePicker").getSelectedDate() ;
var endDate = eo_GetObject("DepartureDatePicker").getSelectedDate() ;

//Check if both dates are provided
if ((startDate == null) || (endDate == null))
{
alert("Please enter both Arrival and Departure dates.");
return false;
}
if (startDate.valueOf() > endDate.valueOf())
{
alert("The Arrival date must be before the Departure date.");
return false;
}
}

OnClick="addItinerary" Server Side Method

Now i am getting Alert on the Condition But my Server side Method is also being called at same time.
I want it to return when it Gets alert on Client side Validation.

Any suggestions or help would be highly appreciated

Thanks

Menon

Cheers

Menon

GeneralRe: Javascript Error Pin
Michael Sync7-Dec-07 4:03
Michael Sync7-Dec-07 4:03 
GeneralRe: Javascript Error Pin
M_Menon7-Dec-07 4:35
M_Menon7-Dec-07 4:35 
GeneralWho vote 1 for the correct answer? Pin
Michael Sync7-Dec-07 6:13
Michael Sync7-Dec-07 6:13 
GeneralRe: Javascript Error Pin
Pushpendra patwal8-Dec-07 3:28
Pushpendra patwal8-Dec-07 3:28 
GeneralDifference Between Div and Table Pin
Khan.Bangash7-Dec-07 3:22
Khan.Bangash7-Dec-07 3:22 
GeneralRe: Difference Between Div and Table Pin
Michael Sync7-Dec-07 3:52
Michael Sync7-Dec-07 3:52 
GeneralGridView Sorting Pin
PranavThakur7-Dec-07 3:16
PranavThakur7-Dec-07 3:16 
GeneralRe: GridView Sorting Pin
Jim Taylor7-Dec-07 3:30
Jim Taylor7-Dec-07 3:30 
QuestionHow to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Bluebamboo7-Dec-07 2:47
Bluebamboo7-Dec-07 2:47 
AnswerRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Paddy Boyd7-Dec-07 2:52
Paddy Boyd7-Dec-07 2:52 
GeneralRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Bluebamboo7-Dec-07 3:04
Bluebamboo7-Dec-07 3:04 
GeneralRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Bluebamboo7-Dec-07 3:07
Bluebamboo7-Dec-07 3:07 
GeneralRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Michael Sync7-Dec-07 4:07
Michael Sync7-Dec-07 4:07 
GeneralRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Paddy Boyd7-Dec-07 4:09
Paddy Boyd7-Dec-07 4:09 
AnswerRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Michael Sync7-Dec-07 4:10
Michael Sync7-Dec-07 4:10 
GeneralRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Bluebamboo7-Dec-07 4:21
Bluebamboo7-Dec-07 4:21 
GeneralRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Michael Sync7-Dec-07 5:01
Michael Sync7-Dec-07 5:01 

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.