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

Page.IsValid is false?

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, did I need to chagne some value status after I use
javascript to assign value to the dropdrownlist control? Please help. Many
thanks.

Apr 23 '06 #1
1 2081
js
Hi, no one help? please shed some light to this. many thanks...

"js" <js@so*****@hotmail.com> wrote in message
news:uc**************@TK2MSFTNGP04.phx.gbl...
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, did I need to chagne some value status after I use
javascript to assign value to the dropdrownlist control? Please help. Many
thanks.

Apr 24 '06 #2

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

Similar topics

0
by: Mike P | last post by:
I have a form with a Serial No and Pin text box which are validated with required field validators. Once they are validated my code goes to a btn_Click event and if Page.IsValid then checks to see...
1
by: Paul | last post by:
Hi Guys and Girls I am trying to disable the clientside validation (Required Fields) by using the ValidatorEnable(id,false), which works find from the point of view that the client side script...
0
by: Peter.Albertsson | last post by:
Hi! I'm new to this group. I have a page with a few Validators, DetailsViews and GridViews. I have understood that eg. the ItemInserting event On a DetailsView is not fired if Page.IsValid is...
0
by: Jason | last post by:
I'm reading that this is by design.. but It's just killing me. I see all sorts of nice events - onclick, onupdating, onupdating .. I can cancel the update with e.cancel etc... Great. So why...
6
by: Mike Chen | last post by:
We know in server code, we can check the page validated by using Page.IsValid where we put some validator controls on aspx page. I want to set some value after validating user input values on...
5
by: dean_wilson | last post by:
Hello, I am using a regular expression validator for a textbox where numerics should only be entered. The error message appears when non numerics are entered, as it should. After clicking the...
3
by: Andrew Jocelyn | last post by:
Hi I have couple of dropdown controls each with a requiredfieldvalidator. I clear the dropdownlist in the button click event. When the page is rendered the dropdown validator already flags it's...
2
by: =?Utf-8?B?R2FyeSBMYXJpbWVy?= | last post by:
I an asp.net web page with a simple form and a Submit button. Form entries are validated client side, but as a back up I would also like to validate server side, but not sure where to do it code....
1
by: COHENMARVIN | last post by:
I have a page that has several validators, and they are organized into validation groups. I want to check the 'Page.IsValid' flag, but I don't think I can make it restrict itself to one validation...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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,...

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.