473,508 Members | 2,207 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

validation control status?

js
Hi, I have a text box and DropDownList control and a validation control,

When user entering a number in the text box, based on the entered number,
the dropdrownlist value will change
(document.getElementById('dnn_ctr-1_Register_ddReferral').value =
document.getElementById("dnn_ctr-1_Register_txtReferral").value;) and the
validation control will valify the dropdownlist if it's empty.

I found there is a problem the server side Page.IsValid will always return
false and ?ddReferral.selectValue is empty. But it works fine if I manually
pick a item from the dropdownlist.

What's the problem, do I need to chagne some value status after I use
javascript to assign value to the dropdrownlist control? Please help. Many
thanks.

Apr 27 '06 #1
1 1284
js wrote:
Hi, I have a text box and DropDownList control and a validation control,

When user entering a number in the text box, based on the entered number,
the dropdrownlist value will change
(document.getElementById('dnn_ctr-1_Register_ddReferral').value =
document.getElementById("dnn_ctr-1_Register_txtReferral").value;) and the
validation control will valify the dropdownlist if it's empty.

I found there is a problem the server side Page.IsValid will always return
false and ?ddReferral.selectValue is empty. But it works fine if I manually
pick a item from the dropdownlist.

What's the problem, do I need to chagne some value status after I use
javascript to assign value to the dropdrownlist control? Please help. Many
thanks.


You can't assign a value to a dropdownlist. You have to set the
selectedIndex property to select one of the items.
Apr 28 '06 #2

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

Similar topics

4
2960
by: David Colliver | last post by:
Hi all, I am having a slight problem that hopefully, someone can help me fix. I have a form on a page. Many items on the form have validation controls attached. Also on this form are...
3
2721
by: Sean Tynan | last post by:
I want to find out the best way for a method to notify calling code of situations such as validation errors, etc. that may occur during method execution. e.g. say I have a method (business...
11
2961
by: Rik | last post by:
Hello guys, now that I'm that I'm working on my first major 'open' forms (with uncontrolled users I mean, not a secure backend-interface), I'd like to add a lot of possibilities to check wether...
3
6207
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
0
7132
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
7336
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
7504
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
5640
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,...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4720
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
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
432
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.