Click here to Skip to main content
15,847,427 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Mid function.......... Pin
n_gchaitra27-Jun-07 3:22
n_gchaitra27-Jun-07 3:22 
AnswerRe: Mid function.......... Pin
Craster27-Jun-07 2:35
Craster27-Jun-07 2:35 
QuestionHow to sort data in datagrid? Pin
Amit Sk Sharma27-Jun-07 0:58
Amit Sk Sharma27-Jun-07 0:58 
AnswerRe: How to sort data in datagrid? Pin
rahul.net1127-Jun-07 1:31
rahul.net1127-Jun-07 1:31 
QuestionIFrames in ASP.NET Pin
J Liang27-Jun-07 0:31
J Liang27-Jun-07 0:31 
AnswerRe: IFrames in ASP.NET Pin
SHatchard27-Jun-07 1:06
SHatchard27-Jun-07 1:06 
GeneralRe: IFrames in ASP.NET Pin
J Liang28-Jun-07 18:58
J Liang28-Jun-07 18:58 
QuestionValidating TextBox with Javascript generated value Pin
ZeedijkMike26-Jun-07 23:37
ZeedijkMike26-Jun-07 23: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 23:42
Eduard Keilholz26-Jun-07 23:42 
GeneralRe: Validating TextBox with Javascript generated value Pin
ZeedijkMike26-Jun-07 23:48
ZeedijkMike26-Jun-07 23:48 
AnswerRe: Validating TextBox with Javascript generated value Pin
ZeedijkMike27-Jun-07 0:14
ZeedijkMike27-Jun-07 0:14 
GeneralRe: Validating TextBox with Javascript generated value Pin
Eduard Keilholz27-Jun-07 0:18
Eduard Keilholz27-Jun-07 0:18 
Questionhelp plz [modified] Pin
Devkranth Kishore Vanja26-Jun-07 23:33
Devkranth Kishore Vanja26-Jun-07 23:33 
AnswerRe: help plz Pin
ZeedijkMike26-Jun-07 23:41
ZeedijkMike26-Jun-07 23:41 
GeneralRe: help plz Pin
Devkranth Kishore Vanja27-Jun-07 0:09
Devkranth Kishore Vanja27-Jun-07 0:09 
AnswerRe: help plz Pin
mohantfor.net27-Jun-07 1:37
mohantfor.net27-Jun-07 1:37 
Questioncreating object inside a loop Pin
raj_developer26-Jun-07 21:40
raj_developer26-Jun-07 21:40 
AnswerRe: creating object inside a loop Pin
Viral Upadhyay26-Jun-07 22:28
Viral Upadhyay26-Jun-07 22:28 
QuestionRe: creating object inside a loop Pin
Urs Enzler26-Jun-07 23:57
Urs Enzler26-Jun-07 23:57 
AnswerRe: creating object inside a loop Pin
raj_developer27-Jun-07 0:20
raj_developer27-Jun-07 0:20 
Questiondatagrid using combo [modified] Pin
mohantfor.net26-Jun-07 21:33
mohantfor.net26-Jun-07 21:33 
AnswerRe: datagrid using combo Pin
_AK_26-Jun-07 22:41
_AK_26-Jun-07 22:41 
QuestionSelect Case statement Pin
isaii26-Jun-07 21:14
isaii26-Jun-07 21:14 
AnswerRe: Select Case statement Pin
Eduard Keilholz26-Jun-07 23:47
Eduard Keilholz26-Jun-07 23:47 
AnswerRe: Select Case statement Pin
Urs Enzler26-Jun-07 23:59
Urs Enzler26-Jun-07 23: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.