Professional Documents
Culture Documents
Day 2
Day 2
Server.Transfer - It is use to navigate to another page, it provides nagvigation facilty within your
application only.
Response.Redirect - It is also use to navigate to another page, we can also navigate to some
external site also
Button - Response.Redirect("http://www.hcl.com");
HyperLink - NavigateUrl property through which we can navigate to some other page.
2. Response Packet - which contains response data send by the server to the client.
** Bydefault if you dont specify anything then HTTP uses Get method.
There is a clean sepration between the designer and the coding part bcoz for coding there is a
seprate .cs file gets generated.
** In case of single file model , a seprate <script> block gets generated
<script runat="server">
Asp.net codes
</script>
It is very rarely used now a days almost all developers uses only Code-behind model.
Single file model is used in those situations where you are making a very small web application
or where there is a need to write very less amount of code.
Drag a Label, Textbox and a Button control, and in the button_click event
what is Crosspageposting?
Crosspage posting is a technique through which we can not only transfer from one page to
another page but we also transfer the value from one page to another page.
What is web.config?
Web.config is a configuration file in the form of xml and every web application will have atleast 1
web.config file.