New Message on dotNET User Group Hyd

2 ways to write code in asp.net

Reply
  Reply to Sender   Recommend Message 1 in Discussion
From: Jignesh Desai

There are essentially two ways that you can write code for an ASP.NET application.
 
Inline code Style
---------------------------------------------------------------
<html>
  <script language="vb" RUNAT="server">
  Private Sub Page_Load()
    Response.Write("This is Inline ASP.NET Application")
    End Sub
  </script>
</html>
---------------------------------------------------------------
This type of coding is essentially the same as the old ASP code
 
 
Code behiend Style.
(IN HTML PAGE) ".aspx"
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="profile.aspx.vb" Inherits="LW.profile"%>
 
(IN CODE BEHIEND PAGE) ".vb"
Public Class profile
    Inherits System.Web.UI.Page
 
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
    End Sub
 
End Class
 
Regards
Jignesh Desai
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="profile.aspx.vb" Inherits="LW.profile"%><%@ Page Language="vb" AutoEventWireup="false" Codebehind="profile.aspx.vb" Inherits="LW.profile"%>

View other groups in this category.

Click her
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to