|
-
Apr 25th, 2006, 02:17 AM
#1
Thread Starter
Lively Member
User Control Problem
hi
i've created user control which contains images and javascript. the images are reffering from root folder.
i tried to place the user control in subfolders aspx page. The control's image is not refering the path.
How can i use the user control inside the subfolder?
-
Apr 25th, 2006, 07:25 AM
#2
Re: User Control Problem
When specifying the path to the image, are you using ~/Images/image.jpg?
-
Apr 26th, 2006, 10:34 PM
#3
Thread Starter
Lively Member
Re: User Control Problem
 Originally Posted by mendhak
When specifying the path to the image, are you using ~/Images/image.jpg?
yes im using the ~/imagepath.. but if i put the control in subfolder aspx page some images are not displayed in page
-
Apr 27th, 2006, 11:15 AM
#4
I do like the reward system. If you find that my post was useful, rate it.
-
Apr 27th, 2006, 11:39 AM
#5
Frenzied Member
Re: User Control Problem
I believe it means start at the root directory.
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.
-
Apr 27th, 2006, 11:41 AM
#6
Frenzied Member
Re: User Control Problem
 Originally Posted by mahivr
yes im using the ~/imagepath.. but if i put the control in subfolder aspx page some images are not displayed in page
If you are hard coding pathes into your code, there isn't much you can do other than put it in the correct path. Why not make the path a property and set when you use the control?
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.
-
May 3rd, 2006, 01:17 PM
#7
Registered User
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|