Click here to Skip to main content
15,909,445 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: How to modify the namespace name? Pin
Paul Riley28-Sep-02 14:19
Paul Riley28-Sep-02 14:19 
GeneralRe: How to modify the namespace name? Pin
Martin Haesemeyer28-Sep-02 22:33
Martin Haesemeyer28-Sep-02 22:33 
GeneralRe: How to modify the namespace name? Pin
Martin Haesemeyer28-Sep-02 22:45
Martin Haesemeyer28-Sep-02 22:45 
GeneralRe: How to modify the namespace name? Pin
zhoujun28-Sep-02 23:09
zhoujun28-Sep-02 23:09 
GeneralDeclare Global Constants Pin
sybux200027-Sep-02 7:45
sybux200027-Sep-02 7:45 
GeneralRe: Declare Global Constants Pin
Paul Riley27-Sep-02 8:05
Paul Riley27-Sep-02 8:05 
Questionwrite acces on the server - safe or not? Pin
Rickard Andersson2027-Sep-02 4:02
Rickard Andersson2027-Sep-02 4:02 
GeneralCustomvalidator, javascript and focus() Pin
Uncle Monkey27-Sep-02 3:05
Uncle Monkey27-Sep-02 3:05 
I have a datagrid containing an EditItemTemplate column.

The column contains a textbox and a customvalidator control. The ClientValidationFunction on the customvalidator is calling the javascript function correctly and I can check the value entered into the textbox ok, however if the validation fails I need to set the document focus back to the textbox 'tdValue'. Does anyone know how this can be done?

The 'source.controltovalidate' javascript property will return me a value in the form - controlname_dgDatagridName__ctl3_tdValue but I do not know how to use this name value to call the tdValue.focus() method.

Any suggestions?

<edititemtemplate>
<asp:textbox id="tdValue" runat="server" text="<%# DataBinder.Eval(Container.DataItem, "tdvalue", "{0Blush | :O .00}") %>">
<asp:customvalidator id="validate_tdValue" enableclientscript="true" runat="server" controltovalidate="tdValue" errormessage="My Error" clientvalidationfunction="CheckCurrency">



function CheckCurrency(source, arguments)
{
//Do my validation here
alert(source.controltovalidate)
}

Thanks


It ain't what you know that matters.
Uncle Monkey

GeneralRe: Customvalidator, javascript and focus() Pin
Uncle Monkey27-Sep-02 3:08
Uncle Monkey27-Sep-02 3:08 
QuestionError when consuming a web service? Pin
zhoujun26-Sep-02 21:14
zhoujun26-Sep-02 21:14 
AnswerRe: Error when consuming a web service? Pin
SimonS28-Sep-02 4:00
SimonS28-Sep-02 4:00 
GeneralRe: Error when consuming a web service? Pin
zhoujun28-Sep-02 13:59
zhoujun28-Sep-02 13:59 
GeneralCast from string generate exception Pin
sybux200026-Sep-02 10:27
sybux200026-Sep-02 10:27 
GeneralRe: Cast from string generate exception Pin
sybux200026-Sep-02 11:06
sybux200026-Sep-02 11:06 
GeneralProblem with setting style Pin
leppie26-Sep-02 9:08
leppie26-Sep-02 9:08 
QuestionOK wtf is going on? Pin
leppie26-Sep-02 4:39
leppie26-Sep-02 4:39 
AnswerRe: OK wtf is going on? Pin
leppie26-Sep-02 5:04
leppie26-Sep-02 5:04 
GeneralProblem gone Pin
leppie26-Sep-02 8:59
leppie26-Sep-02 8:59 
GeneralSaving Form-data to Database Pin
Knappen26-Sep-02 2:49
Knappen26-Sep-02 2:49 
GeneralRe: Saving Form-data to Database Pin
Richard Deeming26-Sep-02 8:51
mveRichard Deeming26-Sep-02 8:51 
GeneralRe: Saving Form-data to Database Pin
Knappen26-Sep-02 8:59
Knappen26-Sep-02 8:59 
GeneralMicrosoft JET Database Engine error '80040e10' Pin
e c l i p t o i d . 3 3 026-Sep-02 2:23
e c l i p t o i d . 3 3 026-Sep-02 2:23 
Generalscrollbar colors Pin
Rickard Andersson2025-Sep-02 21:12
Rickard Andersson2025-Sep-02 21:12 
GeneralRe: scrollbar colors Pin
Paul Watson25-Sep-02 22:48
sitebuilderPaul Watson25-Sep-02 22:48 
GeneralRe: scrollbar colors Pin
Rickard Andersson2025-Sep-02 23:36
Rickard Andersson2025-Sep-02 23:36 

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.