Skip to content

Instantly share code, notes, and snippets.

@rionmonster
Created June 1, 2016 17:17
Show Gist options
  • Save rionmonster/90eb1a0e09f3daeb420642d2d75cbd94 to your computer and use it in GitHub Desktop.
Save rionmonster/90eb1a0e09f3daeb420642d2d75cbd94 to your computer and use it in GitHub Desktop.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExampleForm.aspx.cs" Inherits="Example.ExampleForm" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div class="col-xs-12 col-sm-6 col-md-6">
<div class="form-group">
<input type="text" name="Address1" id="Address1" runat="server" class="form-control input-lg address" placeholder="Full Address" maxlength="50" tabindex="2" />
</div>
</div>
<asp:Button ID="Done" runat="server" Text="Done!" />
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Example
{
public partial class WebForm2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// This will be populated after a PostBack occurs
var text = Address1.Value;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment