How can I check time validation for my Query string??Karthik Ramachandran8yAsked Sep 22, 2018, 6:36 AM EDT2 answersShareLinkedInXCopy linkSavehttp://MY-pc/test/test.aspx?from_time=19:00 Please suggest me how do i control it..? 2 AnswersKnow the answer? Post it. Somebody with the same question will find it here.Brajesh KumarRank #678 · 3.5K reputation8y agoPosted Sep 22, 2018, 7:39 AM EDT0Hi KarthikI am not clear with what you want to achieve But hope it will work for You.1.with c#var time =Request.QueryString["from_time"]; //here you will get your time string //your validation code here 2.with Jquery function GetParameterValues(param) { var url = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < url.length; i++) { var urlparam = url[i].split('='); if (urlparam[0] == param) { return urlparam[1]; } } } var time = GetParameterValues('from_time'); //your validation code here Know the answer?Answer a question in the forums and earn +20 SHARP for every answer.See unanswered questionsForumsTop experts01Arun PottiAnswers in the forums20answers02Tahir AnsariAnswers in the forums5answers03Kamlesh KumarAnswers in the forums5answers04Sam HobbsAnswers in the forums4answers05Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.JoinFull leaderboard →2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
How can I check time validation for my Query string??Karthik Ramachandran8yAsked Sep 22, 2018, 6:36 AM EDT2 answersShareLinkedInXCopy linkSavehttp://MY-pc/test/test.aspx?from_time=19:00 Please suggest me how do i control it..?
Brajesh KumarRank #678 · 3.5K reputation8y agoPosted Sep 22, 2018, 7:39 AM EDT0Hi KarthikI am not clear with what you want to achieve But hope it will work for You.1.with c#var time =Request.QueryString["from_time"]; //here you will get your time string //your validation code here 2.with Jquery function GetParameterValues(param) { var url = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < url.length; i++) { var urlparam = url[i].split('='); if (urlparam[0] == param) { return urlparam[1]; } } } var time = GetParameterValues('from_time'); //your validation code here Know the answer?Answer a question in the forums and earn +20 SHARP for every answer.See unanswered questionsForumsTop experts01Arun PottiAnswers in the forums20answers02Tahir AnsariAnswers in the forums5answers03Kamlesh KumarAnswers in the forums5answers04Sam HobbsAnswers in the forums4answers05Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.JoinFull leaderboard →2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Brajesh KumarRank #678 · 3.5K reputationPosted Sep 22, 2018, 7:39 AM EDT
I am not clear with what you want to achieve
But hope it will work for You.
1.with c#
var time =Request.QueryString["from_time"]; //here you will get your time string
//your validation code here
2.with Jquery
var url = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
if (urlparam[0] == param) {
return urlparam[1];
}
}
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts