Get Input/Use Input (ASP.NET PGROGRAM)



         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 >
     <!--================================================-->
     <SCRIPT LANGUAGE =JAVASCRIPT> <!--
          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!
</head>
<body>
    <form id="form1" runat="server">
    <div>
   
    </div>
    </form>
</body>
</html>

OUTPUT 

 
Share:

Total Pageviews

CONTACT US

Prof. Roshan P. Helonde
Mobile: +917276355704
WhatsApp: +917276355704
Email: roshanphelonde@rediffmail.com

Enter Project Title

Popular Projects

All Archive

Contact Form

Name

Email *

Message *