It may be get by two way 1. Make hidden field and assign your javascript values to that field using javascript. AND then used that hidden field in code behind. 2. Use cookies to get/set values from javascript and codebehind. B'cz as you may know cookies can be operate by javascript and codebehind both side. Prakash Samariya
Samariya prakash
Posts
-
to get javactript variable value in code behind -
DatagridPaste below function into .VB file
Function IndiaRupees(ByVal rs As String) Dim str As String = "" str = Right(rs, 3) rs = Left(rs, IIf(rs.Length > 3, rs.Length - 3, 0)) While rs <> "" str = Right(rs, 2) & "," & str rs = Left(rs, IIf(rs.Length > 2, rs.Length - 2, 0)) End While IndiaRupees = "Rs. " & str End Function
In Datagrid's Item DataboundDim lbl_Amt As Label lbl_Amt = IndiaRupees(CType(e.Item.FindControl("lbl_Amount"), Label).Text)
Prakash Samariya -
Format StringFunction IndiaRupees(ByVal rs As String) Dim str As String = "" str = Right(rs, 3) rs = Left(rs, IIf(rs.Length > 3, rs.Length - 3, 0)) While rs <> "" str = Right(rs, 2) & "," & str rs = Left(rs, IIf(rs.Length > 2, rs.Length - 2, 0)) End While IndiaRupees = "Rs. " & str End Function Prakash Samariya