By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,654 Members | 1,811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,654 IT Pros & Developers. It's quick & easy.

Not able to popup the calendar due to PostBack untill al the validations have been met

P: n/a
I successfully implemented this poup calendar control in C#. But the problem I am having is that the button click is posting back and the validator is getting fired which is asking all the required fields on the page to be first entered in with some data. Once all the validations are satisfied for other fields then the popup calendar pops up. But I would like the user to be able to fill in the date before he wants to fill in other fields. How is this possible? My button calling the popup calendar is a server control and I tried it with HTML button control but either I do not know how to do that or it is not the way. Thanks in advance for any one who can help.

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

the button which you don't want to cause validation can be specified with
CausesValidation="False" attribute.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
"DotNetJunkies User" <User@-NOSPAM-DotNetJunkies.com> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl...
I successfully implemented this poup calendar control in C#. But the problem
I am having is that the button click is posting back and the validator is
getting fired which is asking all the required fields on the page to be
first entered in with some data. Once all the validations are satisfied for
other fields then the popup calendar pops up. But I would like the user to
be able to fill in the date before he wants to fill in other fields. How is
this possible? My button calling the popup calendar is a server control and
I tried it with HTML button control but either I do not know how to do that
or it is not the way. Thanks in advance for any one who can help.

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine
supports Post Alerts, Ratings, and Searching.
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.