| ASP.Net Web Server Control |
| |
| How to Add Server Control to Web Page |
| |
| Before describing about the Html Server Control here you should know the procedure to use in a practical way. It will make easy for you to use it by reading out these steps. |
| |
| The procedure to use any server control in Web Page is given below: |
| |
Step 1. Open Visual Studio 2005, click on âFile? Menu and select âWeb Siteâ¦? in the âNew? sub items then you will get âNew Web Site? dialog box.
Step 2. In âNew Web Site? dialog box, select language and press âOK? then a default.aspx web page will be opened which is available in source view mode.
Step 3. Select âDesigner? from View Menu (press Shift+F7) to see the default.aspx web page in design view.
Step 4. Select âStandard? item in the toolbox tab (press Cltr+Alt+X if not visible) from left hand side in Visual Studio.
Step 5. Select the control from in the toolbox (or make visible by selecting tool box item if not visible).
Step 6. Keeping mouse button pressed, dragged it to the web form.
Step 7. You can set properties of the control from the Properties Window. Alternatively, press the space key in between controlâs tag and set the required attribute or property from the appeared list. Remember that you can set controlâs attributes or properties using its tag, when the web page is in source mode. |
| |
|
| |