We have a bunch of usercontrols we are using on our site. One of them calls
functions in a compiled DLL (is that a 'resource' in VS.net terminology?)
The pages that contains all of these controls work just fine. We've made a
new page, error.aspx that we're going to use for our custom 404 page. If we
load/navigate directly to this page, no problem. If we get to this page via
IIS redirect (for page not found) the one control that depends on this
external DLL breaks. I think the issue has to do with it wanting to grab a
querystring/URL. But I'm not sure exactly, WHAT to look for. It appears that
the redirect process 'breaks' the url and the function can't 'see' it?
Does that sound familiar, or am I just making stuff up here? ;o)
Worse case scenario, we'll just put in an if page=error then ignore, but I
thought I'd check to see if there are any common issues with redirected
pages via .net and specific functions.
-Darrel 2 1083
Hi Darrel:
Can you define "breaks"? Is there an exception message?
--
Scott http://www.OdeToCode.com
On Tue, 10 Aug 2004 09:20:22 -0500, "darrel" <no*****@hotmai l.com>
wrote: We have a bunch of usercontrols we are using on our site. One of them calls functions in a compiled DLL (is that a 'resource' in VS.net terminology?)
The pages that contains all of these controls work just fine. We've made a new page, error.aspx that we're going to use for our custom 404 page. If we load/navigate directly to this page, no problem. If we get to this page via IIS redirect (for page not found) the one control that depends on this external DLL breaks. I think the issue has to do with it wanting to grab a querystring/URL. But I'm not sure exactly, WHAT to look for. It appears that the redirect process 'breaks' the url and the function can't 'see' it?
Does that sound familiar, or am I just making stuff up here? ;o)
Worse case scenario, we'll just put in an if page=error then ignore, but I thought I'd check to see if there are any common issues with redirected pages via .net and specific functions.
-Darrel
> Can you define "breaks"? Is there an exception message?
I think it was one of the genric 'instance of object not...' type of errors.
It wasn't specific at all.
This isn't actually a page I was working on but a co-developer. They just
gave up and wrote the page by hand instead of using the control, but I was
wondering if there was a common issue with error pages.
A bit of research indicates that a 404 error page isn't handled the same
way, but it's not very clear and doesn't really explain the issue we were
having.
Apologies for the vagueness of the question. ;o)
-Darrel This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark Friedman |
last post by:
I can't seem to figure out how to get a reference to a UserControl in the
code-behind for the page that contains the control. All the examples I've
seen show how to pass property values from the containing page's HTML to the
UserControl but nothing I've seen shows how to reference the UserControl's
properties (or subcontrols) from the containing page's server-side code.
Note that I'm not creating the UserControl prgrammatically via...
|
by: Raed Sawalha |
last post by:
Hi,
I have a strange problem with a usercontrol on a page. The usercontrol
dispalyes three categories (From a database) when the user clicks a category
they see all the products in a shop for that category, the results are paged
10 to a page and the user can page them.
As this "Category" usercontrol hardly ever changes I wanted to setup up
caching for it. However I realised that when the user clicks a ctageory it
is selected and...
|
by: Sascha |
last post by:
Hi there,
I searched carefully through the web before finally deciding to post
this message, because I could not find a solution for my problem.
Hopefully someone will have a hint or explanation for me! I apologize
for the length of this posting, but I wanted to make sure that I get an
answer other than "Hey man, just use LoadControl!", because this is not
what I want.
The Task: Isolate a collection of web forms which are created as
|
by: Patrick.O.Ige |
last post by:
I created a USERCONTROL and i want to call a LABEL from an ASPX page.
The USERCONTROL is in the ASPX page
I have the label :-
Label lblstr = new Label();
And displaying using:-
lblstrp.Text=lblstr.Text;
<asp:label id="lblstrp" BorderColor="#ff3333" BorderStyle="Dashed"
BorderWidth="3" ForeColor="#0033cc"
Font-Size="25" Runat="server" Width="55%" BackColor="#ffff00"></asp:label>
|
by: Mythran |
last post by:
I upgraded a VB.Net 1.1 project to 2.0b2 and now I can't seem to figure out
how to fix my user controls. I have a user control named SecurityControl
that contains a few static methods and properties (as well as instance
methods and properties). Now that I've upgraded the project to 2.0b2, my
User Controls can't be accessed from the new App_Code files (my code files
from before the upgrade). I've tried to do the same thing with a new web...
| |
by: N. Demos |
last post by:
Hello,
I have a custom usercontrol, of which I have two instances of in my aspx
page. Both the usercontrol and page have codebehind. In the page
codebehind, I want a member variable for each usercontrol. My problem is
that I keep getting a compiler error on the usercontrol variables in my
page codebehind (BC30002: Type 'CityGeoPosSelectClass' is not defined.)
For whatever reason, my usercontrol class is not being declared in the
page...
|
by: Joe |
last post by:
Hello All:
Do I have to use the LoadControl method of the Page to load a UserControl?
I have a class which contains three methods (one public and two private).
The class acts as a control server. It "serves" back the required control
(either WebControl or UserControl) based on the contents of an xml file. The
code in the webform places each control in a TableCell.
My problem is that the control server works as far as returning the...
|
by: Marcelo Cabrera |
last post by:
Hi,
I have a user control that in turn creates a bunch of webcontrols
dynamically and handles the events these webcontrols raise. It used to work
fine on ASP .Net 1.1 but when compiled on 2.0 it does not. The problem is
that the webcontrols get created on the OnLoad event of the usercontrol and
the event handlers are assigned at the same time. I have to click twice on
the controls for the events to be raised, the first time nothing...
|
by: Benton |
last post by:
Hi there,
I have a UserControl with a couple of textboxes and a couple of buttons
("Save" and "Cancel"). The Click event for this buttons is in the
UserControl's codebehind of course, so here's my question.
Once the UserControl is dropped onto the container page, how can I perform
some action on the codebehind of the container page from the codebehind of
the UserControl? For instance, suppose that the UserControl is dropped
inside one...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |