logo

From field validation...

KeithRichard posted on Thursday, July 12, 2007 9:22 PM

In a relatively recent  kb article #891816 located here:
http://support.microsoft.com/kb/891816

it says in step 5 to click "validate" in the text box properties dialog of
an Expression Web form

I have no Validation Button in my Text Box Properties Dialog???

I do have it in FrontPage 2003 though - as usual...

Am I a version behind or ahead or what?

OS: Vista Ultimate
EW ver: 12.0.4518.1014

(What has started off as a relatively simple validation project on a couple
of fields has, as is not unusual wasted irrecoverable days of our lives)

Thanks for any help or pointers...

--
____________________________
What could possibly go wrong?

Michaele BA MCSE
Systems Admin.
North Coast Computer Services.com
Onsite Computer Services
----------------------------------------

Keith,Something to keep in mind is that the validation control is an asp.

Mark Fitzpatrick posted on Thursday, July 12, 2007 10:02 PM

Keith,
Something to keep in mind is that the validation control is an asp.net
server control. Now, that's a little different than Frontpage as FP used
javascript to do it. Because the RequiredFieldValidator is an ASP.Net server
control, that means it is running on the server. In order for it to work
with text boxes, they either need to be ASP.Net TextBoxes, or they need to
be HTML TextBoxes with a special runat="server" attribute set. This enables
a normal textbox to run on the server. It will also need an ID assigned to
it, such as id="txtFirstname" in order ot work properly.

If it's possible to post the problem page somewhere where we could see the
HTML, that would help know what is going on as I'm guessing about the server
control issue.

--
Hope this helps,
Mark Fitzpatrick
Microsoft FrontPage MVP 199?-2006. 2007 and beyond

Mark,The "problem page" is on my own local PC.

KeithRichard posted on Thursday, July 12, 2007 10:52 PM

Mark,

The "problem page" is on my own local PC.  I went:

Then

Then dragged a Form followed by an Input Text box over to the page. I then
gave the Input Text box an ID of txtEmail - That's when I Right Click the
Form and I see no Validation field to Click.

Here's the code







I'm just making up the site before publishing so I can't open it on an ASP
Server yet.

This is beginning to seem like i'm missing or not understanding the
obvious....again/still!

Thanks.




--
____________________________
What could possibly go wrong?

Michaele BA MCSE
Systems Admin.
North Coast Computer Services.com
Onsite Computer Services
----------------------------------------

Oops, please find corrected body code below...

KeithRichard posted on Thursday, July 12, 2007 11:02 PM

Oops, please find corrected body code below...


id="txtEmail" /><asp:RequiredFieldValidator runat="server"
ErrorMessage="Email is Required." id="RequiredFieldValidator1">


When I right click on the Text Input Control I see no "Validate" button and,
When I click on the ControToValidate Property for the RequiredFieldValidator
- there is no list of choices for me to choose the txtEmail ID from the Text
Input control.

and those are my two silly issuiues driving me bananas!
--
____________________________
What could possibly go wrong?

Michaele BA MCSE
Systems Admin.
North Coast Computer Services.com
Onsite Computer Services
----------------------------------------

From field validation...

Clark posted on Thursday, July 12, 2007 11:52 PM

Inline:

This should create a page that has a one-line form on it


You dont want to be dragging a form from the HTML section of the toolbox.
You want to be working with asp.net controls section of the toolbox.


Again, you dont want to drage the text box from the html section. Drag the
textbox from the Standard section of the asp.net controls, and place it
inside the boundaries of the form that showed up when you created the aspx
page

Drag the validation control from the Validation section of the asp.net
controls onto the same form

You dont right-click on the form as with standard asp. You left click on the
Validation control and then go over to the tag propertiesl

It looks to me as if you are using the html form stuff instead of the
asp.net form stuff.

Thank you Clark - and Mark.

KeithRichard posted on Friday, July 13, 2007 3:00 AM

Thank you Clark - and Mark.

How embarassing - Yes, clearly I was using the HTML TextBox instead of the
ASP...

:{ <------ Spot the Newbie!

I think I'll go back to my daytime job now for a few years till I get over
this one!

Thanks so much for your help and sticking with me through this one.... I
appreciate your time and helpfulness.
--
____________________________
What could possibly go wrong?

Michaele BA MCSE
Systems Admin.
North Coast Computer Services.com
Onsite Computer Services
----------------------------------------

You are using an input control, not an asp.net textbox.You have two options.

Cowboy \(Gregory A. Beamer\) posted on Friday, July 13, 2007 9:22 AM

You are using an input control, not an asp.net textbox.

You have two options.

Best option. Replace the input (HTML form textbox) with an ASP.NET textbox
(toolbox: ASP.NET >> Standard >> Textbox). You can then name it txtEmail and
choose it for the validator.

Other option. Add a runat="server" to the input, ala


id="txtEmail" runat="server" /><asp:RequiredFieldValidator runat="server"
ErrorMessage="Email is Required." id="RequiredFieldValidator1">


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************

Don't be embarrased!

Mark Fitzpatrick posted on Friday, July 13, 2007 1:17 PM

Don't be embarrased! This is real easy to let slip by, especially when
you are working with a new app like EW.

Mark


Didn't Find The Answer You Were Looking For?

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Create Account & Ask Question In Live Forum





Pete's Resume  |  Robbe's Resume  |  Neado  |  Free Icons  |  Privacy  |   (c) 2010