© 2014 Firstsoft Technologies (P) Limited. login
Hi 'Guest'
Home SiteMap Contact Us Disclaimer
Quick Links
Easy Studies

  HomeSource Code DotNet ► Asp.Net ▼

Get Input / Use Input

         To get an input from your user and then to use this input elsewhere (Example: to display that input somewhere on your page)

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!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>Untitled Page</title>
     Text before user input!
      < HR >
          input=window.prompt( "Type the number of attachments here" , "5" );
          document.write( "<H3>Number of files to be attached: " +input+ "</H3>" )
     //--> </SCRIPT >
     < HR >
      Text after user input!

    <form id="form1" runat="server">



SLogix Student Projects