Created
June 15, 2015 20:28
-
-
Save RobbiNespu/2b17447e879e42c4e6be to your computer and use it in GitHub Desktop.
ASPX Page.Request.Form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title></title> | |
</head> | |
<body> | |
<script runat="server"> | |
Sub btnButton1_Click(sender As Object, e As EventArgs) | |
Me.lblText.Text = Page.Request.Form("txtName") | |
End Sub | |
</script> | |
<form runat="server"> | |
<input type="text" name="txtName" value='<%=Request.Form("txtName")%>' /> | |
<br /> | |
<asp:Button ID="btnButton1" OnClick="btnButton1_Click" runat="server" Text="Button"></asp:Button> | |
<hr /> | |
<asp:Label ID="lblText" runat="server"></asp:Label><br> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment