Welcome, Guest [LogIn] / [Register] / [Forgot Password ?]
Home > Technical Tips > ASP.Net > Create ASP.Net application by using using a Text editor ?
Create ASP.Net application by using using a Text editor ?
Posted by Saurabh Kumar on Saturday, Oct 10, 2009
| More

You can create asp.net application by using text editor. such as notepad, editpad and saving the file with a ".aspx" extension. To create a simple ASP.NET application by using Notepad, perform the following steps. :

  • Open start ->  Accessories -> Notepad.
  • write following code in notepad.

<html>
  <head>
    <title>My First WebPage</title>
    <script language="C#" runat="server">
      void Page_Load(object sender, System.EventArgs e)
      {
        if(IsPostBack)
        {
          UserMessage.Text="Welcome " + txtUName.Text +" , Your Password is: " + txtUPassword.Text;
        }
      }
    </script>
  <body>
    <form runat="server">
        Name : <asp:textbox id="txtUName" runat="server" />
        Password : <asp:textbox id="txtUPassword" textmode="password" runat="server" />
       <asp:button text="Click Here" runat="server" />
       <asp:label id="UserMessage" runat="server" />
    </form>
  </body>
</html>

 

  • save file with name of file.then after open IIS.
  • start -> programme -> administrator tools -> Internet Information services.
  • then after add file in IIS web server. then run in browser.
Add Your Comments/Suggestions :
Name:
Email:
Website:
Your Comments:
 
(required)
(will not be published) (required)


©Copyright 2010 saurabhdeveloper.com