Click here to Skip to main content
15,887,596 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSearch Engines and Multilanguage Websites Pin
tronix018-Feb-10 20:57
tronix018-Feb-10 20:57 
QuestionAsynchronous Postback for GridView's Select Command Pin
.NET- India 8-Feb-10 20:20
.NET- India 8-Feb-10 20:20 
QuestionASP.net Chat program Pin
Arny18-Feb-10 18:53
Arny18-Feb-10 18:53 
AnswerRe: ASP.net Chat program Pin
Brij8-Feb-10 19:34
mentorBrij8-Feb-10 19:34 
GeneralRe: ASP.net Chat program Pin
Arny18-Feb-10 23:23
Arny18-Feb-10 23:23 
QuestionAccess GridView Lable using javascript Pin
sjs4u8-Feb-10 18:48
sjs4u8-Feb-10 18:48 
AnswerRe: Access GridView Lable using javascript Pin
Brij8-Feb-10 19:32
mentorBrij8-Feb-10 19:32 
GeneralRe: Access GridView Lable using javascript Pin
sjs4u8-Feb-10 19:58
sjs4u8-Feb-10 19: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 20:24
mentorBrij8-Feb-10 20:24 
GeneralRe: Access GridView Lable using javascript Pin
sjs4u8-Feb-10 20:29
sjs4u8-Feb-10 20:29 
GeneralRe: Access GridView Lable using javascript Pin
Brij8-Feb-10 20:53
mentorBrij8-Feb-10 20:53 
Questionregarding variables declared in a page Pin
vijaylumar8-Feb-10 17:15
vijaylumar8-Feb-10 17:15 
AnswerRe: regarding variables declared in a page Pin
Not Active8-Feb-10 17:45
mentorNot Active8-Feb-10 17:45 
AnswerRe: regarding variables declared in a page Pin
m@dhu8-Feb-10 17:45
m@dhu8-Feb-10 17:45 
QuestionHow to sort each row in a GridView based from a Field [RankOrder] from Database Pin
-Muc_8-Feb-10 8:39
-Muc_8-Feb-10 8:39 
AnswerRe: How to sort each row in a GridView based from a Field [RankOrder] from Database Pin
PunkIsNotDead8-Feb-10 12:13
PunkIsNotDead8-Feb-10 12:13 
GeneralRe: How to sort each row in a GridView based from a Field [RankOrder] from Database Pin
-Muc_9-Feb-10 0:44
-Muc_9-Feb-10 0:44 
AnswerRe: How to sort each row in a GridView based from a Field [RankOrder] from Database Pin
-Muc_9-Feb-10 0:48
-Muc_9-Feb-10 0:48 
Questiongetting the full file path from a FileUpload control in Mozilla Pin
ashutosh kumar jha8-Feb-10 8:33
ashutosh kumar jha8-Feb-10 8:33 
AnswerRe: getting the full file path from a FileUpload control in Mozilla Pin
Abhishek Sur8-Feb-10 9:27
professionalAbhishek Sur8-Feb-10 9:27 
GeneralRe: getting the full file path from a FileUpload control in Mozilla Pin
ashutosh kumar jha8-Feb-10 20:57
ashutosh kumar jha8-Feb-10 20:57 
GeneralRe: getting the full file path from a FileUpload control in Mozilla Pin
Abhishek Sur9-Feb-10 10:00
professionalAbhishek Sur9-Feb-10 10:00 
Questiongridview pagination Pin
FEMDEV8-Feb-10 6:28
FEMDEV8-Feb-10 6:28 
AnswerRe: gridview pagination Pin
Vimalsoft(Pty) Ltd8-Feb-10 19:48
professionalVimalsoft(Pty) Ltd8-Feb-10 19:48 
AnswerRe: gridview pagination Pin
Gaurav Dudeja India8-Feb-10 19:54
Gaurav Dudeja India8-Feb-10 19: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.