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

ASP.NET

 
QuestionSearch Engines and Multilanguage Websites Pin
tronix018-Feb-10 21:57
tronix018-Feb-10 21:57 
QuestionAsynchronous Postback for GridView's Select Command Pin
.NET- India 8-Feb-10 21:20
.NET- India 8-Feb-10 21:20 
QuestionASP.net Chat program Pin
Arny18-Feb-10 19:53
Arny18-Feb-10 19:53 
AnswerRe: ASP.net Chat program Pin
Brij8-Feb-10 20:34
mentorBrij8-Feb-10 20:34 
GeneralRe: ASP.net Chat program Pin
Arny19-Feb-10 0:23
Arny19-Feb-10 0:23 
QuestionAccess GridView Lable using javascript Pin
sjs4u8-Feb-10 19:48
sjs4u8-Feb-10 19:48 
AnswerRe: Access GridView Lable using javascript Pin
Brij8-Feb-10 20:32
mentorBrij8-Feb-10 20:32 
GeneralRe: Access GridView Lable using javascript Pin
sjs4u8-Feb-10 20:58
sjs4u8-Feb-10 20:58 
Hi,

If i passed labels clientid through on onChange event of Text then its not working.

my code is :-

<EditItemTemplate>
<asp:TextBox ID="txtEditPassword" runat="server" TextMode="Password" OnChange="Getlblvalue(this.value,<%=lblpwd.ClientID%>);" ></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ControlToValidate="txtEditPassword" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtEditPassword" Display="Dynamic" ErrorMessage="*"
ValidationExpression="([0-9,a-z,A-Z,*,@,$,-,+,?,^,_,&amp;,=,!,%,(,),~,£,#,/,]){1,12}"></asp:RegularExpressionValidator>
<asp:Label ID="lblpwd" runat="server" ForeColor="Red" Visible ="true"></asp:Label>
</EditItemTemplate>


and my java script is:

<script language="javascript" type="text/javascript">
function Getlblvalue(str,lblid)
{
alert(lblid);
var gridViewCtlId = '<%=GVUserDataList.ClientID%>';
var grid = document.getElementById(gridViewCtlId);
var gridLength = grid.rows.length;
var sum = 0;
// //calculate sum of the prices looping through the gridview and operation in every cell
// grid.rows[5].cells[5].FindControl('lblpwd').textContent="Hello";
// sum = (grid.rows[5].cells[5].find.textContent);
// alert(grid.rows[5].cells[5].FindControl('lblpwd').textContent);
// //grid.rows[gridLength - 1].cells[5].innerHTML = sum;


}
</script>




Thanks
GeneralRe: Access GridView Lable using javascript Pin
Brij8-Feb-10 21:24
mentorBrij8-Feb-10 21:24 
GeneralRe: Access GridView Lable using javascript Pin
sjs4u8-Feb-10 21:29
sjs4u8-Feb-10 21:29 
GeneralRe: Access GridView Lable using javascript Pin
Brij8-Feb-10 21:53
mentorBrij8-Feb-10 21:53 
Questionregarding variables declared in a page Pin
vijaylumar8-Feb-10 18:15
vijaylumar8-Feb-10 18:15 
AnswerRe: regarding variables declared in a page Pin
Not Active8-Feb-10 18:45
mentorNot Active8-Feb-10 18:45 
AnswerRe: regarding variables declared in a page Pin
m@dhu8-Feb-10 18:45
m@dhu8-Feb-10 18:45 
QuestionHow to sort each row in a GridView based from a Field [RankOrder] from Database Pin
-Muc_8-Feb-10 9:39
-Muc_8-Feb-10 9:39 
AnswerRe: How to sort each row in a GridView based from a Field [RankOrder] from Database Pin
PunkIsNotDead8-Feb-10 13:13
PunkIsNotDead8-Feb-10 13:13 
GeneralRe: How to sort each row in a GridView based from a Field [RankOrder] from Database Pin
-Muc_9-Feb-10 1:44
-Muc_9-Feb-10 1:44 
AnswerRe: How to sort each row in a GridView based from a Field [RankOrder] from Database Pin
-Muc_9-Feb-10 1:48
-Muc_9-Feb-10 1:48 
Questiongetting the full file path from a FileUpload control in Mozilla Pin
ashutosh kumar jha8-Feb-10 9:33
ashutosh kumar jha8-Feb-10 9:33 
AnswerRe: getting the full file path from a FileUpload control in Mozilla Pin
Abhishek Sur8-Feb-10 10:27
professionalAbhishek Sur8-Feb-10 10:27 
GeneralRe: getting the full file path from a FileUpload control in Mozilla Pin
ashutosh kumar jha8-Feb-10 21:57
ashutosh kumar jha8-Feb-10 21:57 
GeneralRe: getting the full file path from a FileUpload control in Mozilla Pin
Abhishek Sur9-Feb-10 11:00
professionalAbhishek Sur9-Feb-10 11:00 
Questiongridview pagination Pin
FEMDEV8-Feb-10 7:28
FEMDEV8-Feb-10 7:28 
AnswerRe: gridview pagination Pin
Vimalsoft(Pty) Ltd8-Feb-10 20:48
professionalVimalsoft(Pty) Ltd8-Feb-10 20:48 
AnswerRe: gridview pagination Pin
Gaurav Dudeja India8-Feb-10 20:54
Gaurav Dudeja India8-Feb-10 20:54 

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.