Click here to Skip to main content
15,919,931 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP.NET Provider and DAL Pin
Chrispie1232-Dec-09 8:04
Chrispie1232-Dec-09 8:04 
GeneralCustom Validation inside Repeater Pin
RaviKalyanK26-Nov-09 2:02
RaviKalyanK26-Nov-09 2:02 
GeneralRe: Custom Validation inside Repeater Pin
Gamzun26-Nov-09 4:05
Gamzun26-Nov-09 4:05 
GeneralRe: Custom Validation inside Repeater Pin
Abhishek Sur26-Nov-09 4:43
professionalAbhishek Sur26-Nov-09 4:43 
GeneralRe: Custom Validation inside Repeater Pin
RaviKalyanK26-Nov-09 18:31
RaviKalyanK26-Nov-09 18:31 
GeneralRe: Custom Validation inside Repeater Pin
Abhishek Sur26-Nov-09 22:32
professionalAbhishek Sur26-Nov-09 22:32 
GeneralRe: Custom Validation inside Repeater Pin
RaviKalyanK27-Nov-09 0:42
RaviKalyanK27-Nov-09 0:42 
GeneralRe: Custom Validation inside Repeater Pin
Abhishek Sur27-Nov-09 3:25
professionalAbhishek Sur27-Nov-09 3:25 
Ok.. so for each SSN1, SSN2 and SSN3 you will be having one button..

So do like this :

Button btn = e.Item.FindControl("yourbuttonid");
TextBox SSN1 = e.Item.FindControl("SSN1ID");
TextBox SSN2 = e.Item.FindControl("SSN2ID");
TextBox SSN3 = e.Item.FindControl("SSN3ID");
string script = "javascript:validate('" + SSN1.ClientId + "','" + SSN2.ClientId + "','" + SSN3.ClientId + "');";
btn.Attributes.Add("onclick", script);



Now in the page designer, place a script tag and add a function validate:

function validate(ssn1id, ssn2id, ssn3id){
   var ssn1 = document.getElementById(ssn1id);
   var ssn2 = document.getElementById(ssn2id);
   var ssn3 = document.getElementById(ssn3id);

   // do the logic here.
   
}


I home this is what you wanted. Thumbs Up | :thumbsup:

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

QuestionDynamic creation of GridView Pin
Anil Kumar.Arvapalli26-Nov-09 1:53
Anil Kumar.Arvapalli26-Nov-09 1:53 
AnswerRe: Dynamic creation of GridView Pin
Vimalsoft(Pty) Ltd26-Nov-09 2:21
professionalVimalsoft(Pty) Ltd26-Nov-09 2:21 
AnswerRe: Dynamic creation of GridView Pin
Abhishek Sur26-Nov-09 5:01
professionalAbhishek Sur26-Nov-09 5:01 
QuestionGet Value from GridView Pin
sjs4u26-Nov-09 1:32
sjs4u26-Nov-09 1:32 
AnswerRe: Get Value from GridView Pin
Blikkies26-Nov-09 2:10
professionalBlikkies26-Nov-09 2:10 
AnswerRe: Get Value from GridView Pin
Amit Patel198526-Nov-09 2:29
Amit Patel198526-Nov-09 2:29 
AnswerRe: Get Value from GridView Pin
Jignesh Varia26-Nov-09 19:22
Jignesh Varia26-Nov-09 19:22 
QuestionPage navigation Problem using Javascript Pin
kyreddy26-Nov-09 0:59
kyreddy26-Nov-09 0:59 
QuestionPrinter Friendly version [modified] Pin
geeeeeeeetha26-Nov-09 0:26
geeeeeeeetha26-Nov-09 0:26 
AnswerRe: Printer Friendly version Pin
N a v a n e e t h26-Nov-09 0:33
N a v a n e e t h26-Nov-09 0:33 
Questionrdlc report : want to export it programatically Pin
Hemant Thaker26-Nov-09 0:25
Hemant Thaker26-Nov-09 0:25 
AnswerRe: rdlc report : want to export it programatically Pin
sashidhar26-Nov-09 5:02
sashidhar26-Nov-09 5:02 
QuestionSession Object.. Pin
Sachin Dubey25-Nov-09 22:50
Sachin Dubey25-Nov-09 22:50 
AnswerRe: Session Object.. Pin
bhavnvyas25-Nov-09 23:03
bhavnvyas25-Nov-09 23:03 
AnswerRe: Session Object.. Pin
sashidhar25-Nov-09 23:05
sashidhar25-Nov-09 23:05 
AnswerRe: Session Object.. Pin
Abhijit Jana25-Nov-09 23:47
professionalAbhijit Jana25-Nov-09 23:47 
AnswerRe: Session Object.. Pin
Ashfield26-Nov-09 1:20
Ashfield26-Nov-09 1:20 

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.