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

buttons dont work with when required fiedl validator is added.

P: n/a
Hi,

I have an ASP.Net web page . The page was working fine until I added a
required field field validator. My page has a link button which takes the
user to another page, a submit button which takes the values of the text
boxes & puts them into an SQL database.

After adding the required field validator, when I click any button, (be it
submit button ot link button or any other button), it shows the required
field validator's TEXT i.e (* against the text box). In fact, it doesnt even
show the error message. It just shows the TEXT which is a red * against the
text box.

I tried to search for this problem on internet & got the answer as "Run
aspnet_regiis.exe -c ". But when I did run aspnet_regiis.exe -c , that didnt
help either.

Also, in case this is helpful,earlier my ASP.NET page (with validation
control )would give an error when tried to view in browser. Also, suddenly I
had started getting errors when trying to create a new project on localhost.
So I uninstalled .NET & IIS...Then reinstalled IIS & .NET again.

So now I can add the validation control but even when i hit the link button
for going to another web page, the required field validator 's text shows up.

Any help would be appreciated.
--
pmud
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi pmud,

Try setting the CausesValidation property of the LinkButton to False. Good
luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"pmud" <pm**@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.com...
Hi,

I have an ASP.Net web page . The page was working fine until I added a
required field field validator. My page has a link button which takes the
user to another page, a submit button which takes the values of the text
boxes & puts them into an SQL database.

After adding the required field validator, when I click any button, (be it
submit button ot link button or any other button), it shows the required
field validator's TEXT i.e (* against the text box). In fact, it doesnt even show the error message. It just shows the TEXT which is a red * against the text box.

I tried to search for this problem on internet & got the answer as "Run
aspnet_regiis.exe -c ". But when I did run aspnet_regiis.exe -c , that didnt help either.

Also, in case this is helpful,earlier my ASP.NET page (with validation
control )would give an error when tried to view in browser. Also, suddenly I had started getting errors when trying to create a new project on localhost. So I uninstalled .NET & IIS...Then reinstalled IIS & .NET again.

So now I can add the validation control but even when i hit the link button for going to another web page, the required field validator 's text shows up.
Any help would be appreciated.
--
pmud

Nov 19 '05 #2

P: n/a
There is a bug in ASP.NET 1.1 SP1 that breaks the buttons.
See this thread for solutions:
http://www.asp.net/Forums/ShowPost.a...&PostID=739537

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"pmud" <pm**@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.com...
Hi,

I have an ASP.Net web page . The page was working fine until I added a
required field field validator. My page has a link button which takes the
user to another page, a submit button which takes the values of the text
boxes & puts them into an SQL database.

After adding the required field validator, when I click any button, (be it
submit button ot link button or any other button), it shows the required
field validator's TEXT i.e (* against the text box). In fact, it doesnt
even
show the error message. It just shows the TEXT which is a red * against
the
text box.

I tried to search for this problem on internet & got the answer as "Run
aspnet_regiis.exe -c ". But when I did run aspnet_regiis.exe -c , that
didnt
help either.

Also, in case this is helpful,earlier my ASP.NET page (with validation
control )would give an error when tried to view in browser. Also, suddenly
I
had started getting errors when trying to create a new project on
localhost.
So I uninstalled .NET & IIS...Then reinstalled IIS & .NET again.

So now I can add the validation control but even when i hit the link
button
for going to another web page, the required field validator 's text shows
up.

Any help would be appreciated.
--
pmud

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.