Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > multiple pages using the same code behind page

Reply
Thread Tools

multiple pages using the same code behind page

 
 
WebBuilder451
Guest
Posts: n/a
 
      06-26-2008
I will be generating multiple pages for an affiliate program. Thesee pages
are identical except for minor cosmetic items. The afiliates need to feel
like each page is made specificly for them. I was planning on using the exact
same code behind page for each aspx page. Are there any issues that i should
be aware of?

I don't think there will be problems?

--
(i''ll be asking a lot of these, but I find C# totally way cooler than vb
and there''s no go''n back!!!)
thanks (as always)

kes
 
Reply With Quote
 
 
 
 
Göran Andersson
Guest
Posts: n/a
 
      06-27-2008
WebBuilder451 wrote:
> I will be generating multiple pages for an affiliate program. Thesee pages
> are identical except for minor cosmetic items. The afiliates need to feel
> like each page is made specificly for them. I was planning on using the exact
> same code behind page for each aspx page. Are there any issues that i should
> be aware of?
>
> I don't think there will be problems?
>


No problems. I have done that myself a few times. Just edit the @Page
directive to use any class you like.

The class for a page can be placed anywhere you want. It only has to
inherit the System.Web.UI.Page class to work.

--
Göran Andersson
_____
http://www.guffa.com
 
Reply With Quote
 
 
 
 
clintonG
Guest
Posts: n/a
 
      06-27-2008
Actually, what you want to do is implement the 2.0 Membership, Roles and
Profiles and use the LoginView control which supports templates that are
used to customize the display of content for those assigned to a role. i.e.
AffiliateLevel1, AffiliateLevel2 and better yet show or not show content
based on a role and even a particular user right down to the paragraph or a
word in a sentence if wanted.

I have my current roles set up as Visitor(s) for anonymous visitors,
Guest(s) for those that register and Member(s) for those that registered and
pay for commercial services. I can now scale the roles for affiliates such
as MemberSilver, MemberGold, MemberPlatinum and nobody sees anything not
pertinent to their role.


"Göran Andersson" <(E-Mail Removed)> wrote in message
news:ODO$(E-Mail Removed)...
> WebBuilder451 wrote:
>> I will be generating multiple pages for an affiliate program. Thesee
>> pages are identical except for minor cosmetic items. The afiliates need
>> to feel like each page is made specificly for them. I was planning on
>> using the exact same code behind page for each aspx page. Are there any
>> issues that i should be aware of?
>>
>> I don't think there will be problems?
>>

>
> No problems. I have done that myself a few times. Just edit the @Page
> directive to use any class you like.
>
> The class for a page can be placed anywhere you want. It only has to
> inherit the System.Web.UI.Page class to work.
>
> --
> Göran Andersson
> _____
> http://www.guffa.com


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can multiple aspx pages be linked to the same code behind file? dan ASP .Net 1 03-22-2008 02:19 AM
Non-code behind to code behind John ASP .Net 2 02-19-2007 07:08 PM
Compiling multiple pages to a single code-behind page in VS2005 LiveCycle ASP .Net 1 11-21-2006 04:26 PM
Differant pages, same code behind? Beat ASP .Net 6 12-02-2003 09:43 PM
Re: Code Behind vs. no code behind: error Ben Miller [msft] ASP .Net 1 06-28-2003 01:46 AM



Advertisments