Click here to Skip to main content
15,886,518 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRendering and Viewing Source in ASP.NET Pin
MarkMokris26-Sep-09 6:24
MarkMokris26-Sep-09 6:24 
AnswerRe: Rendering and Viewing Source in ASP.NET Pin
Abhishek Sur26-Sep-09 6:34
professionalAbhishek Sur26-Sep-09 6:34 
QuestionSharing same code-behind between multiple aspx pages Pin
tfaol26-Sep-09 3:01
tfaol26-Sep-09 3:01 
AnswerRe: Sharing same code-behind between multiple aspx pages Pin
Abhijit Jana26-Sep-09 3:10
professionalAbhijit Jana26-Sep-09 3:10 
AnswerRe: Sharing same code-behind between multiple aspx pages Pin
Abhishek Sur26-Sep-09 6:08
professionalAbhishek Sur26-Sep-09 6:08 
QuestionRe: Sharing same code-behind between multiple aspx pages [modified] Pin
tfaol27-Sep-09 2:09
tfaol27-Sep-09 2:09 
AnswerRe: Sharing same code-behind between multiple aspx pages Pin
Nicolas Muniere14-Mar-10 8:11
Nicolas Muniere14-Mar-10 8:11 
AnswerRe: Sharing same code-behind between multiple aspx pages Pin
tfaol14-Mar-10 23:39
tfaol14-Mar-10 23:39 
Hi Nicolas,

Yes, we use the 2ed option which is create a base class includes all common methods, and the web forms inherits from it instead of Page class System.Web.UI.Page as following:

Page1 & Page2 are web forms,
Base is class,

in Page1 [the same in Page2] code-behind:
public partial class Page1 : Base


in Base class:
public partial class Base : System.Web.UI.Page



Hope this helps.
____________
Tfaol

QuestionDeclaring variable globally Pin
srikantha_nagaraj26-Sep-09 2:42
srikantha_nagaraj26-Sep-09 2:42 
AnswerRe: Declaring variable globally Pin
Abhijit Jana26-Sep-09 2:58
professionalAbhijit Jana26-Sep-09 2:58 
GeneralRe: Declaring variable globally Pin
srikantha_nagaraj26-Sep-09 22:43
srikantha_nagaraj26-Sep-09 22:43 
GeneralRe: Declaring variable globally Pin
Abhijit Jana26-Sep-09 22:50
professionalAbhijit Jana26-Sep-09 22:50 
GeneralRe: Declaring variable globally Pin
srikantha_nagaraj26-Sep-09 23:05
srikantha_nagaraj26-Sep-09 23:05 
GeneralRe: Declaring variable globally Pin
Abhijit Jana26-Sep-09 23:16
professionalAbhijit Jana26-Sep-09 23:16 
AnswerRe: Declaring variable globally Pin
Abhishek Sur26-Sep-09 6:13
professionalAbhishek Sur26-Sep-09 6:13 
GeneralRe: Declaring variable globally Pin
Not Active26-Sep-09 13:24
mentorNot Active26-Sep-09 13:24 
GeneralRe: Declaring variable globally Pin
Abhishek Sur27-Sep-09 8:32
professionalAbhishek Sur27-Sep-09 8:32 
GeneralRe: Declaring variable globally Pin
srikantha_nagaraj26-Sep-09 22:50
srikantha_nagaraj26-Sep-09 22:50 
GeneralRe: Declaring variable globally Pin
Abhijit Jana26-Sep-09 23:07
professionalAbhijit Jana26-Sep-09 23:07 
GeneralRe: Declaring variable globally Pin
Abhishek Sur28-Sep-09 6:46
professionalAbhishek Sur28-Sep-09 6:46 
Questionpage not opening Pin
ais0725-Sep-09 23:37
ais0725-Sep-09 23:37 
AnswerRe: page not opening Pin
Christian Graus25-Sep-09 23:53
protectorChristian Graus25-Sep-09 23:53 
GeneralRe: page not opening Pin
ais0726-Sep-09 0:07
ais0726-Sep-09 0:07 
GeneralRe: page not opening Pin
Christian Graus26-Sep-09 0:12
protectorChristian Graus26-Sep-09 0:12 
QuestionDiv creating issues in browser wise Pin
llibin25-Sep-09 22:46
llibin25-Sep-09 22:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.