----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: suresh_r Message 1 in Discussion reference:-http://samples.gotdotnet.com/quickstart/util/srcview.aspx?path=/quickstart/aspplus/samples/webforms/DataBind/DataBind1.src<html> <head> <script language="C#" runat="server"> void Page_Load(Object sender, EventArgs e) { Page.DataBind(); } string custID{ get { return "ALFKI"; } } int orderCount{ get { return 11; } } </script> </head> <body> <h3><font face="Verdana">DataBinding to a Property on the Page</font></h3> <form runat=server> Customer: <b><%# custID %></b><br> Open Orders: <b><%# orderCount %></b> </form> </body> </html> This is the for Binding to Simple Properties from the above link.This page_load is written in aspx. That can also be written in code behing(usually).Writting this code in the aspx , on execution , also do a postback .And if write the same code in code behind then also there will be the postback .So what is the advantage of writting it in the aspx.I think it should be written in code behind as will remove the chances of syntax errors.Please clarify my doubt. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact 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. mailto:[EMAIL PROTECTED]
