Geeks Talk

Prepare for your Next Interview




Codebehind file in ASPx

This is a discussion on Codebehind file in ASPx within the ASP.NET forums, part of the Web Development category; Question asked by visitor thiruvarasan How many codebehind file does ASPx file have in ASP.Net? Is it possible create multiple codebehind file for single aspx file?...


Go Back   Geeks Talk > Web Development > ASP.NET

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-12-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 161 Times in 137 Posts
Geek_Guest is on a distinguished roadGeek_Guest is on a distinguished road
Codebehind file in ASPx

Question asked by visitor thiruvarasan

How many codebehind file does ASPx file have in ASP.Net?
Is it possible create multiple codebehind file for single aspx file?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-13-2007
Contributing Member
 
Join Date: May 2007
Location: bangalore
Posts: 65
Thanks: 3
Thanked 8 Times in 6 Posts
hari.nattuva is on a distinguished road
Re: Codebehind file in ASPx

Hi,

I think it is not possible to create more than one code behind file for single aspx bcoz we need to bind the code behind file in aspx using page directive like
<%@page autoeventwireup="false" codebehind="webform1.aspx.cs" %>

here not possible to give the multiple files in codebehind attribute.....

Regards,
Hari Prasad
Reply With Quote
  #3 (permalink)  
Old 06-19-2008
Junior Member
 
Join Date: Jun 2008
Location: Pakistan
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
WAQAR_BHATTI is on a distinguished road
Re: Codebehind file in ASPx

it is not possible to have more than one code behind file for an aspx page. how ever if page include control (user controls) then each control will surely has its own ascx.cs
Reply With Quote
  #4 (permalink)  
Old 06-23-2008
Expert Member
 
Join Date: Dec 2007
Location: Pune
Posts: 128
Thanks: 0
Thanked 6 Times in 6 Posts
peeyush_jain is on a distinguished road
Re: Codebehind file in ASPx

Hi,
developers will probably have one code behind page for every ASPX file, and not generally use the same code behind page for multiple pages.
I think its a limitation of ASP.net code behind feature.
Let me know if my understanding is incorrect
Reply With Quote
Reply

  Geeks Talk > Web Development > ASP.NET


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to run .aspx page stored on another system? Haitalk ASP.NET 6 02-27-2008 04:58 AM
Content of an obj file in C JobHelper C and C++ 3 08-23-2007 05:25 AM
Is it possible to link our file to another file, Geek_Guest Unix/Linux 1 04-05-2007 11:39 PM
Frigate3 File Manager: highly configurable and convenient file management environment JobHelper Geeks Lounge 0 03-30-2007 02:30 PM
Lookup on the same file using the input file JobHelper Data Warehousing 0 02-08-2007 01:45 PM


All times are GMT -4. The time now is 06:16 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved