Input forms
Download
1 / 19

INPUT FORMS - PowerPoint PPT Presentation


  • 380 Views
  • Updated On :

INPUT FORMS BOOK DEFINITIONS WEB PAGE A PAGE MARKED UP WITH HTML ONLY HTML FORM INPUT FORM TO SEND DATA TO SERVER CAN BE DONE USING ONLY HTML (AS IN ASP) WEB FORM TWO SEGMENTS HTML TEMPLATE PAGE LAYOUT ASP.NET SERVER CONTROLS ASP.NET CODE INCLUDES PROCESSING LOGIC

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'INPUT FORMS' - ostinmannual


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

Book definitions l.jpg
BOOK DEFINITIONS

  • WEB PAGE

    • A PAGE MARKED UP WITH HTML ONLY

  • HTML FORM

    • INPUT FORM TO SEND DATA TO SERVER

    • CAN BE DONE USING ONLY HTML (AS IN ASP)

  • WEB FORM

    • TWO SEGMENTS

      • HTML TEMPLATE

        • PAGE LAYOUT

        • ASP.NET SERVER CONTROLS

      • ASP.NET CODE

        • INCLUDES PROCESSING LOGIC

        • GENERATES DYNAMIC CONTENT

        • DISPLAY THROUGH ASP CONTROLS IN HTML TEMPLATE


Difference l.jpg
DIFFERENCE

  • HTML

    • ONLY HTML TAGS WERE PROCESSED

    • IF IT DID NOT RECOGNISE A TAG, IT IGNORED

  • ASP.NET FORM

    • SERVER CONTROLS INCLUDED BETWEEN <HTML> TAGS


Form tag l.jpg
<form> TAG

  • OLD HTML (RENDERED)

    • <FORM METHOD=POST ACTION=RECEIVE.ASP>

    • .

    • .

    • . </FORM>

  • NEW ASP.NET (DYNAMICALLY CREATED)

    • <FORM ID=“MYFORM” RUNAT=“SERVER”>

    • </FORM>


Reasons l.jpg
REASONS

  • MAINTAIN STATE

  • NEW CONTROLS

    • CALENDARS

    • GRIDS

  • SOME STANDARD DATA VALIDATION


Asp net server controls p 75 l.jpg
ASP.NET SERVER CONTROLS (P. 75)

  • DISPLAY TEXT

    • <ASP:LABEL>

  • CHOOSE FROM LIST OF ITEMS

    • <ASP:LISTBOX>

  • DROPDOWN LIST

    • <ASP:DROPDOWNLIST>

  • TYPED INPUT

    • <ASP:TEXTBOX>


More server controls l.jpg
MORE SERVER CONTROLS

  • RADIO BUTTONS

    • <ASP:RADIOBUTTON>

    • <ASP:RADIOBUTTONLIST>

  • CHECKBOX

    • <ASPCHECKBOX>

    • <ASP:CHECKBOXLIST>

  • SUBMIT

    • <ASP:BUTTON>


Asp label l.jpg
<ASP:LABEL>

  • <HTML>

    • <ASP:LABEL ID=“MSG” RUNAT=“SERVER” TEXT = “JOE” />

  • <HTML>

  • JOE

  • _________________________________________________________

  • <SCRIPT>

    • SUB PAGE_LOAD( )

      • MSG.TEXT = “SINCLAIR LEWIS”

    • END SUB

  • </SCRIPT>

  • <HTML>

    • <ASP:LABEL ID=“MSG” RUNAT=“SERVER” TEXT = “JOE” />

  • <HTML>

  • SINCLAIR LEWIS


Asp dropdownlist l.jpg
<ASP:DROPDOWNLIST>

  • <FORM RUNAT=“SERVER”>

    • CHOOSE CITY: <br>

      • <asp:dropdownlist id=“city” runat=“server”>

        • <asp:listitem>NewYork </asp:listitem>

        • <asp:listitem>NewBoston </asp:listitem>

        • <asp:listitem>NewDallas </asp:listitem>

      • </asp:dropdownlist>


View source l.jpg
VIEW SOURCE

  • <FORM NAME = “CTR10”

  • METHOD = “POST”

  • ACTION =“DROPDOWNLIST_X.ASPX”

  • ID=“CTR10”>

  • <INPUT TYPE = HIDDEN

  • NAME = “_VIEWSTATE”

  • VALUE = ………. />


Asp listbox l.jpg
<asp:listbox>

  • <asp:listbox

    runat = “server”

    id=“city”

    selectionmode=“multiple”>

    <asp:listitem>London</asp:listitem>

    <asp:listitem>Moscow</asp:listitem>

    </asp:listbox>

    Question: can we use selectionmode = “multiple” in <asp:dropdownlist>



Asp textbox13 l.jpg
<asp:textbox>

  • <asp:textbox id=“txtName” runat=“server: />

  • <asp:textbox id=“txtMore” runat = “server” textmode = “multiline” rows = 5 />

  • <asp:textbox runat=“server” id=txtPW textmode = “password” />


Asp textbox14 l.jpg
<ASP:TEXTBOX>

  • DEFAULT VALUES

  • (WHY ARE WE NOT ABLE TO PUT DEFAULT VALUES IN MULTILINE TEXTBOX?)


Asp radiobutton l.jpg
<ASP:RADIOBUTTON>

  • (FOR A SINGLE BUTTON

  • SORT OF LIKE CHECKBOX?)


Asp radiobuttonlist l.jpg
<ASP:RADIOBUTTONLIST>

  • CAN SELECT ONLY ONE


Asp checkbox l.jpg
<ASP:CHECKBOX>

  • <ASP:CHECKBOX ID=“CHK_QUICKSHIP” RUNAT = “SERVER”>

  • WHAT IS THE VALUE THAT IS TRANSMITTED?

  • HOW DO WE MAKE “SELECTED” A DEFAULT?




ad