-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: contact4manoj
Message 2 in Discussion

Hi Shwetha.   In the ASPX Page File, you should find the @Page directive on the 
top.  You can use this to define your base class file.   Assuming your ASPX 
Page File is named "Home.aspx" and the language you wish to use is C#, create a 
file by the name of "Home.aspx.cs".  In this file type out the following lines. 
 
using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls; 
public class Home : System.Web.UI.Page
{  
protected void Page_Load(object sender, EventArgs e)
{

} 
}   Then in the Home.aspx file, you will have to add the CodeFile and Inherits 
attributes to the @Page directive. So your @Page Directive should read 
something like this:  
<%@ Page Language="C#" CodeFile="Home.aspx.cs" Inherits="Home" %>     This 
should do the trick.   Hope this was helpful to you.   Yours truly,   MANOJ 
KUMAR SHARMA.          Hi All,   I have a scenario where the code-file that the 
aspx page usually inherits from is not available.I have to create a base class 
file that inherits from the System.Web.UI.Page class and the aspx page would 
then inherit from this base class.Is it possible to accomplish this 
functionality? If yes can anyone send me some code samples or links where I can 
get similar functionality been implemented..   Thanks in advance.   Regards, 
Shwetha 

-----------------------------------------------------------

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]

Reply via email to