Skip to content

Instantly share code, notes, and snippets.

@RobbiNespu
Created June 15, 2015 20:28
Show Gist options
  • Save RobbiNespu/2b17447e879e42c4e6be to your computer and use it in GitHub Desktop.
Save RobbiNespu/2b17447e879e42c4e6be to your computer and use it in GitHub Desktop.
ASPX Page.Request.Form
<%@ 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