params = getParams(); firstname = unescape(params["firstname"]); lastname = unescape(params["lastname"]); age = unescape(params["age"]); document.write("firstname = " + firstname + "<br>"); document.write("lastname = " + lastname + "<br>"); document.write("age = " + age + "<br>"); var lbl = document.getElementById('<%=lbl.ClientID%>'); lbl.innerHTML=firstname.
<form id="form1" runat="server"> <asp:Label ID="lbl" runat="server" Text="Label"></asp:Label> </form>
<form type=get action="second.aspx"> <table> <tr> <td>First Name:</td> <td><input type="text" name="firstname" size="10"></td> </tr> <tr> <td>Last Name:</td> <td><input type="text" name="lastname" size="10"></td> </tr> <tr> <td>Age:</td> <td><input type="text" name="age" size="10"></td> </tr> <tr> <td colspan=2><input type="submit" value="Submit"> </td> </tr> </table> </form>
document.write("firstname" + firstname);
var lbl = document.getElementById('<%=lbl.ClientID%>'); if(lbl !=null) { lbl.innerHTML=firstname; lbl.innerText=firstname; lbl.textContent =firstname; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)