473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to share web controls between pages

If you have lots of different pages , but they all have a common web
control and you'd like to some how share this code for maintainability,
re-usability reasons, how would one accomplish this in ASP.Net?
Jul 19 '06 #1
4 984
If you already have the control written, just put it on every page.

"Giraffe" <mr********@mr.giraffe.zo.o.comwrote in message
news:e9***********@custnews.inweb.co.uk...
If you have lots of different pages , but they all have a common web
control and you'd like to some how share this code for maintainability,
re-usability reasons, how would one accomplish this in ASP.Net?

Jul 19 '06 #2
Giraffe,
It *sounds* like you are describing the functionality of the ASCX
UserControl. Have you looked at this?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Giraffe" wrote:
If you have lots of different pages , but they all have a common web
control and you'd like to some how share this code for maintainability,
re-usability reasons, how would one accomplish this in ASP.Net?
Jul 19 '06 #3
* Marina Levit [MVP] wrote:
If you already have the control written, just put it on every page.
This is OK if I'd like the same control on each page and wanted it
modified specifically within each page.

What I'd actually like is a control to have the same look, feel and
appearance (properties) on each page, and would like therefore some
central mechanism for setting these common characteristics, and I'd also
like some common routine to populate the control with actual data.

So some shared-code method of setting it up and populating it.

Basically for example say I have a datagrid on lots of pages that
display stock information, but the rest of the page is completely
different (specialised) how would this best(properly) implemented.

Ta.
Jul 20 '06 #4
* Peter Bromberg [C# MVP] wrote:
Giraffe,
It *sounds* like you are describing the functionality of the ASCX
UserControl. Have you looked at this?
See my repsonse above, does this still sound like the UserControl?
Jul 20 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Newbee Adam | last post by:
anyone have any secrets or pearls about vb.net you want to share I was asked by my company to begin teach an introductory VB.Net course 2 day seminar. I had been teaching an sql server 2000...
3
by: Jon Paugh | last post by:
Hi, If I have several aspx pages that I want to share across multiple web applications, how would I organize them? Basically, a subset of the pages on a given site will be on several sites....
5
by: Raed Sawalha | last post by:
We have a web application with at least 570 Pages and 10's of user controls ....all under project name LinkDevProject ...recently we start separating the project into multiple projects ....the...
1
by: Raed Sawalha | last post by:
I have a web application with 100 pages and 30 user controls so we decided to separate some pages and controls into sub projects ( the generated subprojects was 2) the problem we have that now the...
3
by: Newbee Adam | last post by:
anyone have any secrets or pearls about vb.net you want to share I was asked by my company to begin teach an introductory VB.Net course 2 day seminar. I had been teaching an sql server 2000...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.