473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

First time using validators problem

Hello,
I am first time using validators of apsx,

I did something like this (in the aspx file ) :

<form runat="server">
Name: <asp:TextBox id="name" runat="server" />
<br />
<asp:Button runat="server" Text="?????" />
<br />
<asp:RequiredFieldValidator
ControlToValidate="name"
Text="The name field is required!"
runat="server" />
</form>

I have included the directory aspnet_client in my root home page (now at my
computer).

What I get is that the textbox field is disabled - I cannot edit the textbox
field ?

Why ?

Thanks :)
Nov 18 '05 #1
1 927
> I did something like this (in the aspx file ) :

<form runat="server">
Name: <asp:TextBox id="name" runat="server" />
<br />
<asp:Button runat="server" Text="Commit" />
<br />
<asp:RequiredFieldValidator
ControlToValidate="name"
Text="The name field is required!"
runat="server" />
</form>

I have included the directory aspnet_client in my root home page (now at my computer).

What I get is that the textbox field is disabled - I cannot edit the textbox field ?

Why ?
Thanks :)


It seems that I have other elements in the page, and they are not in the
<form> clause.
I put them in the <form> clause, and everything works fine.

Thanks :)
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These...
0
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These...
14
by: Sinity | last post by:
Anyone knows the method/codes to disable the clicked button after first click by using .aspx-- to prevent people to click many time when waiting for the server response. I tried to do this by...
4
by: Sean | last post by:
I'm having the problem described in KB article 822734. You can see it at this URL: http://support.microsoft.com/default.aspx?scid=kb;en-us;822734 In the article it says I can get the fix by...
2
by: AndersBj | last post by:
I have a text field with three different validators, the problem is that in some cases all three validators fire at the same time. How can I create some sort of order in which they should...
4
by: Pawel Janik | last post by:
Hello! I was recently worked on building quite complicated web app. Everything was ok, it was quite good tested using most popular browsers (IE6.0, Firefox/Mozilla, Opera). I have problem with...
2
by: Shankar Mani via DotNetMonster.com | last post by:
Hi folks, I am facing a problem while using a DataGrid. I have a webform with a datagrid containing two text boxes for edit viz., countrycode and country name. Like wise I have two more text boxes...
4
by: Chris | last post by:
Hi, I am creating a webform in ASP.NET using C#. I have a drop down list control and 5 textbox controls. Each textbox control has a required field validator assigned to it. I have a save...
2
by: Stuart Whiteford | last post by:
Hi, I asked this back in January without answer and forgot about it until now. I've got a basic web form, two textboxes, a couple of radio button groups, some required field validators, and a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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...

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.