473,324 Members | 2,214 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,324 software developers and data experts.

Textbox validation problem

Hi I have written code to validate a textbox and if that textbox is valid I
would
like to make the submit button on the page enabled otherwise leave it
disabled,
which is what its default value is.
I have tried doing this in my code however it remains disabled and I am new
to
this so I am looking for certain ideas or hints.

Excuse my ignorance and thank you for your help
Oct 17 '07 #1
2 1391
Well, perhaps if you show some of your code, it would help. You say
page, which makes me inclined to think it is an ASP.NET page, but I can't
tell. If that's the case, then I expect you would be doing something
involving javascript.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Durango2008" <el********@yah00.c0mwrote in message
news:Z0*****************@nlpi070.nbdc.sbc.com...
Hi I have written code to validate a textbox and if that textbox is valid
I would
like to make the submit button on the page enabled otherwise leave it
disabled,
which is what its default value is.
I have tried doing this in my code however it remains disabled and I am
new to
this so I am looking for certain ideas or hints.

Excuse my ignorance and thank you for your help

Oct 17 '07 #2
On Wed, 17 Oct 2007 01:33:27 -0500, "Durango2008"
<el********@yah00.c0mwrote:
>Hi I have written code to validate a textbox and if that textbox is valid I
would
like to make the submit button on the page enabled otherwise leave it
disabled,
which is what its default value is.
I have tried doing this in my code however it remains disabled and I am new
to
this so I am looking for certain ideas or hints.

Excuse my ignorance and thank you for your help
Sounds to me like an ASP.NET problem.

What sort of validation are you doing? I suggest you take a look at
ASP.NET's validation controls ... they might be able to solve your
problem

--
http://bytes.thinkersroom.com
Oct 18 '07 #3

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

Similar topics

2
by: Pham Nguyen | last post by:
Has anyone seen an example of a textbox server control that has built-in client-side validation? I'd like to build a server control that extends the System.Web.UI.WebControls.TextBox class to allow...
2
by: Xendor | last post by:
Hi, i am a noobie in asp.net and i have the following problem. I use an Form with a textbox to enter a mail-adress. In this textbox a valid email-adress should be entered. But when i leave the...
6
by: JIM.H. | last post by:
How can I grantee that user enter only number in the textbox. If possible accept ","and "." in the number. Can I do this?
21
by: Darin | last post by:
I have a form w/ a textbox and Cancel button on it. I have a routine to handle textbox.validating, and I have the form setup so the Cancel button is the Cancel button. WHen the user clicks on...
14
by: teddysnips | last post by:
WINDOWS FORMS I've a form that has a textbox that allows the user to enter a string. On the LostFocus event, the textbox formats the string into a preferred format. However, if the user...
3
by: Patrick [MSFT] | last post by:
Let me preface this with the goal I'm trying to achieve is mimic a feature of another language (Dexterity used by Microsoft Dynamics) and so while a filling a drop down list is a workable solution...
1
by: bsm | last post by:
I have created one User controls which contains 1. Textbox and 2. ImageButton (to display calendar) (I tried to create my own datetime control). I have created "onblur" event on textbox event,...
0
by: Mike | last post by:
So here's the situation (.NET 2.0 btw): I have a form, and on this form is a textbox among many other databound controls. The textbox is bound to a field in a data table via the Text property. ...
4
by: HenrikL | last post by:
Hi. I have a textbox that have a binding on it with converter and validationrules. When a validation error ouccur the foreground of the textbox will change to red cause it has a style.triggers...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.