473,503 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

buttons dont work with when required fiedl validator is added.

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
2 2339
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2308
by: johnleemk | last post by:
I download the source for W3C's validator from http://validator.w3.org/source/ to validate pages on my own server. I commented a block of code that checks for non-public hosts so the validator...
40
3433
by: Greg G | last post by:
http://risky-biz.com/new/risky.html I finally got DSL service recently, but I haven't forgotten the agony of waiting for the 64th image to load before I can see ANYTHING on a page. So I will...
7
1756
by: Jairo Nieto | last post by:
Hi, I've had this extremely weird problem for a week or so, and havent been able to solve it. My solution works fine on the production server. Once I deploy it, all buttons stop posting back...
3
2267
by: pmud | last post by:
Hi, I have an ASP.NET application using C# code. I am using a datagrid to display records from a database based on a user input, i.e a user enters a compnay name in text box & when he clicks a...
11
8609
by: Alan Silver | last post by:
Hello, I am using this validator on a textbox, and have discovered that if I set the InitialValue property, then the validator correctly fires if the user does not change the initial value of...
5
1525
by: Edwinah63 | last post by:
Hi everyone, i was wondering if anyone else had observed this and if there is any workaround or patch. i have some screens (an mdi child forms) with the buttons &Add, &Edit, &Save and E&xit,...
6
3174
by: AJBopp | last post by:
I'm wrestling with CSS variations between Firefox and IE. I'm trying to create rollover buttons in a menu frame. It is working perfectly in Firefox but in IE only the first button is properly...
6
4841
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
0
1667
by: c.w.browne | last post by:
Hi, Ive had a bit of a look around for other people with this problem and cant find anything that solves it in my case, so I'm afraid im going to have to bother you all with a post of my own. ...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
382
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.