Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 07-30-2009, 10:03 PM   #1 (permalink)
Junior Member
 
Join Date: 07-19-09
Location: peking
Posts: 6
iTrader: 0 / 0%
itags.org is liked by many
Send a message via Yahoo to itags.org Send a message via Skype™ to itags.org
Wink asp.net 2.0: class file and .aspx page concept question

How can you get a class such as myClass.cs, to create a control such as a listbox that wil be used in a placeholder control on an .aspx page where the .aspx page has yet to be created so the class doesn't know about it yet. (e.g so there are no dependencies in the class)..

So if there are 10 .aspx pages, page1.aspx, page2.aspx, etc. , and each one has a control
Code:
<asp:placeholder ID="PlaceHolder1".....>
, how do you.

1. code a class, myClass.cs to create a listbox that will be placed on any one of the above .aspx pages but in the <PlaceHolder1> control. (I know how to do it with a user control e.g. default.aspx and default.aspx.cs -- but how to do it with default.aspx, default.aspx.cs AND myClass.cs).

2. instantiate this code from myClass.cs from the page1.aspx.cs, page2.aspx.cs, etc.

Thanks!
__________________
I'm good at Dotnet,Database,Microsoft Technology,Java,Mail,Programming,Network,Software. ..
I'm Microsoft, I'm Sun, I'm Apple, I'm Oracle, I'm Google...want to know me??:www.itags.org/blogs/techer/

Last edited by htmlbasictutor; 07-30-2009 at 10:36 PM..
itags.org is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

 

Tags
asp


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gun Control Natural Elements Controversial Social Issues 63 11-05-2008 07:06 AM
What is a C-class IP? comcenter SEO Forum 16 09-21-2008 08:04 AM
Wordpress Archives in Dropdown Listbox DaHLiA Coding Forum 0 05-05-2008 03:04 AM
css and td class Fusion Coding Forum 3 06-11-2004 11:28 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 03:43 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.