Pages

Web hosting
Showing posts with label asp controls. Show all posts
Showing posts with label asp controls. Show all posts

Friday, 4 April 2014

Asp.Net Basic Controls - Check Boxes

Check Box Control :

A check box displays a single option that the user can either check or unchecked. Check box provide more then one option and user can select more then one option at a time.


ASP Code :
          <asp:CheckBox ID="CheckBox1" runat="server" Text="Maruti" />

Property :
Property Description
Text The text displayed next to the check box
Checked Specifies whether it is selected or not, default is false
ForeColor Set font color of text in checkbox
TextAlign Set position of text left or right
Event :
Events Description
CheckedChanged Event occurs when selection change in checkbox

Other Control :
 
Label TextBox Button HyperLink
CheckBox CheckBoxList RadioButton RadioButtonList
Image ImageButton ImageMap Calender
DropDownList ListBox FileUpload

Monday, 24 March 2014

Asp.Net Basic Controls - Button

Button Control:

ASP .Net provides three types of button controls: buttons, link buttons and image buttons. As the names suggest a button displays text within a rectangular area, a link button displays text that looks like a hyperlink. And an Image Button displays an image.


 ASP Code:
                   <asp:Button ID="Button1" runat="server" Text="Button" />

Property:
Property Description
Text The text displayed by the button. This is for button and link button controls only.
Height Set height of button in px
Width Set width of button in px
PostBackUrl Set Page name on which go after button click
OnClientClick Set your own function which active on button click
Events:
Events Description
Click Button_click event generate on code page. This part use for coding
Command Button_Command event generate on code page. This part use for Database command

Other Control :

Label TextBox Button HyperLink
CheckBox CheckBoxList RadioButton RadioButtonList
Image ImageButton ImageMap Calender
DropDownList ListBox FileUpload

Sunday, 23 March 2014

Asp.Net Basic Controls - TextBox

TextBox Control:

  • Text box controls are typically used to accept input from the user. A text box control can accept one or more lines to text depending upon the setting of the TextMode attribute.

Asp Code:
        <asp:TextBox ID="txtstate" runat="server" ></asp:TextBox>
Property:
Property Description
Height Set height of label in px
Width Set width of label in px
TextMode SingleLine :
MultiLine :
Password :
ForeColor Set font color as your need
Font Set font style and attribute
BackColor Set label back ground color

Other Control :

Label TextBox Button HyperLink
CheckBox CheckBoxList RadioButton RadioButtonList
Image ImageButton ImageMap Calender
DropDownList ListBox FileUpload

Friday, 21 March 2014

Asp.Net Basic Controls - Label

Label Control:

  • Label controls provide an easy way to display text which can be changed from one execution of a page to the next. If you want to display a text that does not change, you use the literal text.

Asp code:
               <asp:Label ID="Label1" runat="server" Text="Your Name :"></asp:Label>
Property:
Property Description
Text Set Label text to display
Height Set height of label in px
Width Set width of label in px
ForeColor Set font color as your need
Font Set font style and attribute
BackColor Set label back ground color

Other Control :

Label TextBox Button HyperLink
CheckBox CheckBoxList RadioButton RadioButtonList
Image ImageButton ImageMap Calender
DropDownList ListBox FileUpload

Friday, 25 October 2013

Difference between GET and POST

Ch- 6 DWD
Difference between GET and POST


Sr. No
GET
POST
1
GET request is sent via the URL string (appended to the URI with a question-mark as separator), which is visible.
POST request is encapsulated in the body of the HTTP request and can't be seen.
2
GET request goes via URL, so it has a limitation for its length. It can't be more than 255 characters long.
POST request becomes a part of the body of the HTTP request and there is no size limitation.
3
GET request is comparatively faster as it's relatively simpler to create a GET request.
The time spent in the encapsulation of the POST request in the HTTP body is saved in this case.
4
Only ASCII characters allowed. GET request is sent via URL string and as we all know that URL can be text-only, so GET can carry only text data.
No restrictions. Binary data is also allowed. POST has no such restriction and it can carry both text as well as binary data.
5
GET is less secure compared to POST because data sent is part of the URL. Never use GET when sending passwords or other sensitive information!
POST is a little safer than GET because the parameters are not stored in browser history or in web server logs
6
Data is visible to everyone in the URL.
Data is not displayed in the URL.

Thursday, 12 April 2012

How to start ASP.Net with Visual Studio 2008

Step: 1 Click on Start --> Microsoft Visual Studio 2008

Step: 2 Click on File --> New --> Web Site

            It open new window.
Step: 3 In new window  set Language : Visual C#
                                      set path : C:\ASP.Net\WebSite1
                                      click Ok


Step: 4 It open your first web site in Source mode.

          Now click on Design mode it open blank page.