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

problem to access user control(.acsx)

I am in a problem to access user control(.ascx) on a .aspx page

the following is my scenario

I have following directory structure -

Autoboom
- workshop
-- WSFirst
-showroom
-help

i have a user control help.ascx in folder /autoboom/help

i have registered this control in web.config like this -
<controls>
<add tagPrefix="HELP" tagName="HELP" src="~/Help/Help.ascx" />
</controls>

my problem is the help.ascx is working in any folder with same hierarchy of
help folder
for example it is working in autoboom/Workshop and autoboom/showroom
but it is not working in one folder up like /autoboom and one folder down
like /autoboom/workshop/WSFirst

i have already tried to register help control in the same page instead of
web.config but still not working

please suggest me where i am doing wrong

Thanks in advance

-BL

Feb 4 '08 #1
4 2080
"Now working" means???????

Any errors???? Or it's just not doing laundry?
George.


"BL" <BL@discussions.microsoft.comwrote in message
news:C8**********************************@microsof t.com...
>I am in a problem to access user control(.ascx) on a .aspx page

the following is my scenario

I have following directory structure -

Autoboom
- workshop
-- WSFirst
-showroom
-help

i have a user control help.ascx in folder /autoboom/help

i have registered this control in web.config like this -
<controls>
<add tagPrefix="HELP" tagName="HELP" src="~/Help/Help.ascx"
/>
</controls>

my problem is the help.ascx is working in any folder with same hierarchy
of
help folder
for example it is working in autoboom/Workshop and autoboom/showroom
but it is not working in one folder up like /autoboom and one folder down
like /autoboom/workshop/WSFirst

i have already tried to register help control in the same page instead of
web.config but still not working

please suggest me where i am doing wrong

Thanks in advance

-BL

Feb 4 '08 #2
not any error, also i can debug it, but it is not doing his work, like on
mouse over it should display a tooltip but it is not displaying, also it is
displaying a 'X" sign instead of "?" image

Thanks for responce

-BL

"George Ter-Saakov" wrote:
"Now working" means???????

Any errors???? Or it's just not doing laundry?
George.


"BL" <BL@discussions.microsoft.comwrote in message
news:C8**********************************@microsof t.com...
I am in a problem to access user control(.ascx) on a .aspx page

the following is my scenario

I have following directory structure -

Autoboom
- workshop
-- WSFirst
-showroom
-help

i have a user control help.ascx in folder /autoboom/help

i have registered this control in web.config like this -
<controls>
<add tagPrefix="HELP" tagName="HELP" src="~/Help/Help.ascx"
/>
</controls>

my problem is the help.ascx is working in any folder with same hierarchy
of
help folder
for example it is working in autoboom/Workshop and autoboom/showroom
but it is not working in one folder up like /autoboom and one folder down
like /autoboom/workshop/WSFirst

i have already tried to register help control in the same page instead of
web.config but still not working

please suggest me where i am doing wrong

Thanks in advance

-BL


Feb 4 '08 #3
You problem is quite easy.
you are using relative path when referencing needed JavaScript and images.

And you should be using absolute path....
Here is the small tutorial

Page url: http://www.mysite.com/autoboom/workshop/mypage.aspx

has a reference to <img src="image/myimage.gif">
this is relative path and browser will make a request for
http://www.mysite.com/autoboom/works...ge/myimage.gif
which will probably not be found.

If you had <img src="/image/myimage.gif"(Notice first slash)

browser will look for http://www.mysite.com/image/myimage.gif
which is probably what you wanted....

George.


"BL" <BL@discussions.microsoft.comwrote in message
news:0C**********************************@microsof t.com...
not any error, also i can debug it, but it is not doing his work, like on
mouse over it should display a tooltip but it is not displaying, also it
is
displaying a 'X" sign instead of "?" image

Thanks for responce

-BL

"George Ter-Saakov" wrote:
>"Now working" means???????

Any errors???? Or it's just not doing laundry?
George.


"BL" <BL@discussions.microsoft.comwrote in message
news:C8**********************************@microso ft.com...
>I am in a problem to access user control(.ascx) on a .aspx page

the following is my scenario

I have following directory structure -

Autoboom
- workshop
-- WSFirst
-showroom
-help

i have a user control help.ascx in folder /autoboom/help

i have registered this control in web.config like this -
<controls>
<add tagPrefix="HELP" tagName="HELP"
src="~/Help/Help.ascx"
/>
</controls>

my problem is the help.ascx is working in any folder with same
hierarchy
of
help folder
for example it is working in autoboom/Workshop and autoboom/showroom
but it is not working in one folder up like /autoboom and one folder
down
like /autoboom/workshop/WSFirst

i have already tried to register help control in the same page instead
of
web.config but still not working

please suggest me where i am doing wrong

Thanks in advance

-BL



Feb 4 '08 #4
George,

Thank you for your support, now it is working

Thanks again

BL

"George Ter-Saakov" wrote:
You problem is quite easy.
you are using relative path when referencing needed JavaScript and images.

And you should be using absolute path....
Here is the small tutorial

Page url: http://www.mysite.com/autoboom/workshop/mypage.aspx

has a reference to <img src="image/myimage.gif">
this is relative path and browser will make a request for
http://www.mysite.com/autoboom/works...ge/myimage.gif
which will probably not be found.

If you had <img src="/image/myimage.gif"(Notice first slash)

browser will look for http://www.mysite.com/image/myimage.gif
which is probably what you wanted....

George.


"BL" <BL@discussions.microsoft.comwrote in message
news:0C**********************************@microsof t.com...
not any error, also i can debug it, but it is not doing his work, like on
mouse over it should display a tooltip but it is not displaying, also it
is
displaying a 'X" sign instead of "?" image

Thanks for responce

-BL

"George Ter-Saakov" wrote:
"Now working" means???????

Any errors???? Or it's just not doing laundry?
George.


"BL" <BL@discussions.microsoft.comwrote in message
news:C8**********************************@microsof t.com...
I am in a problem to access user control(.ascx) on a .aspx page

the following is my scenario

I have following directory structure -

Autoboom
- workshop
-- WSFirst
-showroom
-help

i have a user control help.ascx in folder /autoboom/help

i have registered this control in web.config like this -
<controls>
<add tagPrefix="HELP" tagName="HELP"
src="~/Help/Help.ascx"
/>
</controls>

my problem is the help.ascx is working in any folder with same
hierarchy
of
help folder
for example it is working in autoboom/Workshop and autoboom/showroom
but it is not working in one folder up like /autoboom and one folder
down
like /autoboom/workshop/WSFirst

i have already tried to register help control in the same page instead
of
web.config but still not working

please suggest me where i am doing wrong

Thanks in advance

-BL



Feb 4 '08 #5

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

Similar topics

0
by: choihead | last post by:
Hi all, My system setup ios W2k3 + ASP.NET+C#=MCMS Server as code behind I have a console <aaa.ascx> will popup a new window for then to choose some function when user right click, I want to add...
1
by: James Glover | last post by:
I need to be able to reference a variable that is set in the code behind of an aspx page in a user control embedded on the page. An example: The code behind sets a position number; say ,1...
3
by: Dave | last post by:
Greetings, I have a web application that has a folder with a section of my web application. How can I reference a user control that is one level up in the directory structure? <%@ Register...
5
by: Dranreb | last post by:
Hello, I use a template whereby my default page contains various user controls - i.e. "Header", "Footer", "Navigation", "Content". On some occaisions I'd like to manipulate the other controls...
4
by: rmccinc | last post by:
Hello- I am missing something very easy here I think. I have 3 files test.master.vb (Master) content.aspx.vb (content) Control.ascx.vb (user Control)
2
by: kens | last post by:
I've found some odd behavior in dynamically loaded user controls under ASP.NET 2.0. Specifically, if I load a control dynamically, in the "Page_Load" event, the code-behind for the user control is...
0
by: mivhaelveloz | last post by:
Hiya Im trying to get a user control working in mono/ASP.NET. ....I have no problem getting a basic control up and working and using it declaratively in a hosting page's .aspx file. But for...
0
by: mivhaelveloz | last post by:
Hiya Im trying to get a user control working in mono/ASP.NET. ....I have no problem getting a basic control up and working and using it declaratively in a hosting page's .aspx file. But for...
1
by: Jared | last post by:
Hi I have been looking for a few hours and couldn't find much in these groups, so I thought I would post it here in case anybody else is trying to figure it out. I have an ascx User control...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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...

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.