Skip to content

Instantly share code, notes, and snippets.

@niisar
Last active August 29, 2015 14:05
Show Gist options
  • Save niisar/fb00d92f57e7230ca6f5 to your computer and use it in GitHub Desktop.
Save niisar/fb00d92f57e7230ca6f5 to your computer and use it in GitHub Desktop.
no runat server tag.txt
using System;
public partial class Pkg_Doc_del : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//string n = String.Format("{0}", Request.Form["customerName"]);
//Response.Write(n);
}
protected void btn_Click(object sender, EventArgs e)
{
string n = String.Format("{0}", Request.Form["customerName"]);
Response.Write(n);
}
}
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="del.aspx.cs" Inherits="Pkg_Doc_del" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form runat="server">
<input id="customerName" name="customerName" type="Text" />
<input id="customerPhone" name="customerPhone" type="Text" />
<input value="Save" type="Submit" />
<asp:Button ID="btn" runat="server" onclick="btn_Click" />
</form>
</body>
</html>
@niisar
Copy link
Author

niisar commented Aug 26, 2014

It Handel's normal HTML element in asp.net.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment