473,385 Members | 1,888 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,385 software developers and data experts.

conditionally loading a user control

Just wondering if anyone knows how to conditionally load a user control on a
page?
In other words load the user control if the page is reached with one link
and do not load it if it is reached by another link.
Thanks,
--
Paul G
Software engineer.
Nov 19 '05 #1
2 1740
For dynamic loading use LoadControl method specify a virtual path for the
user control which u wanna to load

--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
Just wondering if anyone knows how to conditionally load a user control on
a
page?
In other words load the user control if the page is reached with one link
and do not load it if it is reached by another link.
Thanks,
--
Paul G
Software engineer.

Nov 19 '05 #2
ok thanks for the information.

"Yunus Emre ALPĂ–ZEN [MCAD.NET]" wrote:
For dynamic loading use LoadControl method specify a virtual path for the
user control which u wanna to load

--

Thanks,
Yunus Emre ALPĂ–ZEN
BSc, MCAD.NET

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
Just wondering if anyone knows how to conditionally load a user control on
a
page?
In other words load the user control if the page is reached with one link
and do not load it if it is reached by another link.
Thanks,
--
Paul G
Software engineer.


Nov 19 '05 #3

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

Similar topics

1
by: Martine | last post by:
Hi there! I have a problem with programmatically adding user controls to my mobile webforms. If I load my usercontrol programmatically (in the Page_Load), the object is instantiated, I have...
2
by: Eric | last post by:
I'm trying to dynamically load a user control using on the .NET framework (not Visual Studio). The control was designed in Visual Studio and is named: Disable.ascx The first line is: <%@...
1
by: Vi | last post by:
I have a user control that I'm using programmatically on 2 web forms. On one web form it is working properly, on the second it is not displayed. I ran the form step by step, and the debugger goes...
0
by: Joe | last post by:
I've a web form that inherits from a BasePage. There is a user control on the web form. Does anyone thinks it's a problem if I've my BasePage loading a user control and my web form loading a...
5
by: footballhead | last post by:
I have a site that has MANY different clothing categories. I have a page set up for displaying the products (productsearch.aspx) when a user clicks one of the category links on the navigation menu....
1
by: Sridhar | last post by:
Hi, I have created a webpage. In that webpage I am loading a user control into a place holder. The user control has a link button in it. when I click on that I need to able to load another user...
1
by: Beegee | last post by:
Hi Happy 2006 I want to load the user control dynamically. I want to change to different usercontrol page to the same place holder accordingly. If there is no way to do so anyone please...
0
by: davidr | last post by:
Hi, I been stuck on this for a week or more. So please help! I have a menu were a user can click a button and a user control is loaded into the page. A problem occurs when trying to load a...
0
by: =?Utf-8?B?R2lvcmdpbw==?= | last post by:
Hi, I need some urgent help and your help is very much appreciated. I have a control in a directory named components and I am trying to load that control and add it to the page and when I run...
6
by: Gouri.Mahajan7 | last post by:
Hello, When I press the button on the web page I am loading the user control on the web page. This user control is invoking some methods of the web service. The control on the web page is loaded...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.