Click here to Skip to main content
15,949,686 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Mid function.......... Pin
n_gchaitra27-Jun-07 2:22
n_gchaitra27-Jun-07 2:22 
AnswerRe: Mid function.......... Pin
Craster27-Jun-07 1:35
Craster27-Jun-07 1:35 
QuestionHow to sort data in datagrid? Pin
Amit Sk Sharma26-Jun-07 23:58
Amit Sk Sharma26-Jun-07 23:58 
AnswerRe: How to sort data in datagrid? Pin
rahul.net1127-Jun-07 0:31
rahul.net1127-Jun-07 0:31 
QuestionIFrames in ASP.NET Pin
J Liang26-Jun-07 23:31
J Liang26-Jun-07 23:31 
AnswerRe: IFrames in ASP.NET Pin
SHatchard27-Jun-07 0:06
SHatchard27-Jun-07 0:06 
GeneralRe: IFrames in ASP.NET Pin
J Liang28-Jun-07 17:58
J Liang28-Jun-07 17:58 
QuestionValidating TextBox with Javascript generated value Pin
ZeedijkMike26-Jun-07 22:37
ZeedijkMike26-Jun-07 22:37 
Hi All,

I am trying to make a custom TextBox (MaskedTextBox) with some JavaScript generated formatting but are having some problems validating the control.

I have done the following; In an UserControl I have a TextBox with a JavaScript function added that does the formatting on the input.

TextBox1.Attributes.Add("onkeyup", "FormatValue(this, event)");

An other (hidden) TextBox contains the 'original' value of the first TextBox set with the a JavaScript function. So the 'raw' value'
I am hiding the 2ns TextBox with a added Style (display.none).

I would like to validate that value with a RangeValidator but it seems like the validator never 'see' the JavaScript generated value.

So for me it seems like teh validator only see text that have been entered directly in the TextBox and not if it is set with JavaScript. Is the right understod? And more important, can I do anything to make it see the JavaScript generated value.

Alvast bedankt



Mike

AnswerRe: Validating TextBox with Javascript generated value Pin
Eduard Keilholz26-Jun-07 22:42
Eduard Keilholz26-Jun-07 22:42 
GeneralRe: Validating TextBox with Javascript generated value Pin
ZeedijkMike26-Jun-07 22:48
ZeedijkMike26-Jun-07 22:48 
AnswerRe: Validating TextBox with Javascript generated value Pin
ZeedijkMike26-Jun-07 23:14
ZeedijkMike26-Jun-07 23:14 
GeneralRe: Validating TextBox with Javascript generated value Pin
Eduard Keilholz26-Jun-07 23:18
Eduard Keilholz26-Jun-07 23:18 
Questionhelp plz [modified] Pin
Devkranth Kishore Vanja26-Jun-07 22:33
Devkranth Kishore Vanja26-Jun-07 22:33 
AnswerRe: help plz Pin
ZeedijkMike26-Jun-07 22:41
ZeedijkMike26-Jun-07 22:41 
GeneralRe: help plz Pin
Devkranth Kishore Vanja26-Jun-07 23:09
Devkranth Kishore Vanja26-Jun-07 23:09 
AnswerRe: help plz Pin
mohantfor.net27-Jun-07 0:37
mohantfor.net27-Jun-07 0:37 
Questioncreating object inside a loop Pin
raj_developer26-Jun-07 20:40
raj_developer26-Jun-07 20:40 
AnswerRe: creating object inside a loop Pin
Viral Upadhyay26-Jun-07 21:28
Viral Upadhyay26-Jun-07 21:28 
QuestionRe: creating object inside a loop Pin
Urs Enzler26-Jun-07 22:57
Urs Enzler26-Jun-07 22:57 
AnswerRe: creating object inside a loop Pin
raj_developer26-Jun-07 23:20
raj_developer26-Jun-07 23:20 
Questiondatagrid using combo [modified] Pin
mohantfor.net26-Jun-07 20:33
mohantfor.net26-Jun-07 20:33 
AnswerRe: datagrid using combo Pin
_AK_26-Jun-07 21:41
_AK_26-Jun-07 21:41 
QuestionSelect Case statement Pin
isaii26-Jun-07 20:14
isaii26-Jun-07 20:14 
AnswerRe: Select Case statement Pin
Eduard Keilholz26-Jun-07 22:47
Eduard Keilholz26-Jun-07 22:47 
AnswerRe: Select Case statement Pin
Urs Enzler26-Jun-07 22:59
Urs Enzler26-Jun-07 22:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.