CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 3/16/2004 2:42:09 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 27 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
AnjinG
Asp.Net User
Re: User Control not displaying background3/16/2004 2:42:09 AM

0/0

Hi,
i have created a web user control which contains 2 tables and 5 imagebuttons.
i have specificied the file location of the images in this format : "..\blablabla.blablabla.gif"
however, my pages are in a different folder from my user controls
Web forms : main\group1 folder
User controls : main folder

when my webforms are in my main folder loads the user controls, i can see everything.
but after i shifted then to main\group1 folder, and changed the html tag's src, im unable to see the table's background gif file.
on further debugging, i found that the tables no longer have a background field in it's properties panel.
but the html codes still maintain the background property.

i did somemore testing, and i found that my webform in the same folder as my usercontrols have no problems viewing the background of the table, but once they are in different folders, only the image buttons show up.

is there any explainations on why the table properties suddenly change?
and is there any solutions?
Theres always a better way of doing things,
Cheers,
stevenbey
Asp.Net User
Re: User Control not displaying background3/16/2004 9:35:30 AM

0/0


The path (to the image) that you specify is used by the browser (not ASP.NET) to request that image. As it is the Page that sends the information to the browser, all relative addresses are from the directory of the Page (how would the browser know that part of the Page was in one directory, on the server, and another part of the Page in a different directory!?!). That is why I always recommend that your paths should be relative to the root directory (by using a forward slash at the beginning of the path, e.g. /images/xxx.gif).


Steven Bey

Recursion: see Recursion
AnjinG
Asp.Net User
Re: User Control not displaying background3/19/2004 8:03:45 AM

0/0

Hi,
i have tried out what you said, however, now i cant even see the background during run time.
i can see the background now because the code : ".\images\abc.gif" will bring me back to 1 folder level, and therefore links directly to my images folder.
but due to the 3 different levels of folder forms in my project, i need to dymanically create the location string.
the current method im using is to stored a integer in a session object in every page, which denotes what folder level the current page it at.
but as the table, being a html control, not having a 'background' property, im unable to do it for the background.
is there any way to do that?

btw im also looking for a shorter way to dymanic 'tell' my webcontrol what folder level im at.=
Theres always a better way of doing things,
Cheers,
stevenbey
Asp.Net User
Re: User Control not displaying background3/26/2004 9:59:49 AM

0/0


The example that I provided previously only works if the images folder is in the root web folder. If this didn't work then your images folder must be in another subfolder. If you include this subfolder in the path (e.g. /subfolder/images/xxx.gif) then the background will be displayed.

It would make it easier, for us to provide a solution, if you included the directory structure from the root web folder. For example:
    wwwroot/

webapp1/
images/
webapp2/
images/
...


Steven Bey

Recursion: see Recursion
master4eva
Asp.Net User
Re: User Control not displaying background3/26/2004 12:04:48 PM

0/0

:: The example that I provided previously only works if the images folder is in the root web folder.

One more critera: the base folder must be pointed out by a domain. For example, the following URL will work:

http://somesite.com/

However, it will not work for virtual directories:

http://somesite.com/somevirtualdir/
-- Justin Lovell
AnjinG
Asp.Net User
Re: User Control not displaying background3/30/2004 12:38:21 AM

0/0

Hi,
err... im kind of confused...
i currently have a directory structure as follows :

main/
module1/
module2/
usercontrols/
images/

i think the problem is, because of my default.aspx is in the main folder, that's the only page that gives me the image not found problem.
is it possible to have a default.aspx inside a folder?
meaning there are no webforms in the main folder.

Theres always a better way of doing things,
Cheers,
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Windows XP Home Edition: The Missing Manual Authors: David Pogue, Pages: 571, Published: 2002
Microsoft Office SharePoint Server 2007: The Complete Reference Authors: David Matthew Sterling, David Sterling, Pages: 788, Published: 2007
Beginning SUSE Linux: From Novice to Professional Authors: Keir Thomas, Pages: 514, Published: 2005
1984 Conference Proceedings: Third Annual International Phoenix Conference on Computers and Communications Authors: Institute of Electrical and Electronics Engineers, IEEE Computer Society, IEEE Communications Society, Pages: 283, Published: 1984
AutoCAD 2002 Inside and Out: Lynn Allen Authors: Lynn Allen, Pages: 283, Published: 2002
Windows Vista Annoyances: Tips, Secrets, and Solutions Authors: David A. Karp, Pages: 641, Published: 2008
Digital Character Design and Painting: The Photoshop CS Edition Authors: Don Seegmiller, Pages: 377, Published: 2004
Professional Visual Studio 2005 Authors: Andrew Parsons, Nick Randolph, Pages: 869, Published: 2006
Adobe Photoshop 7.0 Web design: With GoLive 6 Authors: Michael Baumgardt, Pages: 336, Published: 2002

Web:
midrange.com -- RPG400-L -- RE: Keep background screen on display ... Control file not only use to display posible sort selections but also controls .... Prev by Author: RE: Keep background screen on display when using window ...
Background colour not displaying in Firefox... CSS problem ... Background colour not displaying in Firefox... CSS problem? .... User Control Panel, Private Messages, Subscriptions, Who's Online ...
User Control with transparent background - .NET C# Suppose to be transparent, but display a dark grey as background // note dark grey is not ... Re: User Control with transparent background ...
iPhone not displaying custom wallpaper. - Mac Forums I have my iPhone set in WinterBoard to display a User Wallpaper, but the background is still black. I then tried to set a custom wallpaper ...
CodeProject: Chat User Control with WebBrowser Control as ... Oct 15, 2008 ... Creating User Control with WebBrowser as output display .... I try the above code on my chat control, but it is still not working. ...
Firefox not displaying body background - Dev Shed Sep 21, 2008 ... Discuss Firefox not displaying body background in the XML Programming forum on .... Please select one, User Control Panel, Private Messages ...
Firefox not displaying background image properly; IE does though ... I am unable to see why the site i am working on does not display properly in FF. ... User Control Panel, Private Messages, Subscriptions ...
background images not displaying in ff3 - SitePoint Forums background images not displaying in ff3 Web Page Design. ... User Control Panel, Private Messages, Subscriptions, Who's Online ...
Silverlight Tutorial Part 6: Using User Controls to Implement ... Make sure you remove the default background color that is assigned to the Grid you're using in the user control. For me it defaulted to "Background=White" ...
[2008] Display Excel File in Form Background - VBForums I want to display their layout in the background of the form and have my own controls (indicating sensors and what-not) in the foreground. ...

Videos:
4D µVGA-PICASO-MD1 VGA Controller - BricoGeek.com The µVGA-PICASO-MD1 is a compact & cost effective ready to go 'drop in' embedded graphics engine. The 'simple to use' embedded commands not only con...
ZohoCreator Problems With Lookup Fields ZohoCreator Problems With Lookup Fields General YouTube - ZohoCreator relationships between forms youtube.com/watch?v=WJ4222pCbI0 ZohoCreator relati...
Zoho Creator UI suggestions ZohoCreator UI suggestions General YouTube - ZohoCreator relationships between forms youtube.com/watch?v=WJ4222pCbI0 ZohoCreator relationships betw...
H.A.F. - Mirage 2000 ####Reuploaded#### DOWNLOAD LINK http://www.patricksaviation.com/in/6426?i=INx The Mirage 2000 is a French-built multirole fighter jet manufactured b...
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming environmen...
osbourne executive The Executive is the successor of the Osborne 1, from which it keeps the good points and correct its flaws. More memory, bigger screen, more powerful...
Installing Ubuntu with Windows Dual-Boot This screencast shows how to install Ubuntu on a system that already has Windows installed.
Computers versus Common Sense Google TechTalks May 30, 2006 Douglas Lenat Dr. Douglas Lenat is the President and CEO of Cycorp. Since 1984, he and his team have been constructi...
Tech_Show Episode 7 Tech_Show Episode 7 ASSOC we did not say. Command Prompt Commands: ASSOC-Displays or modifies file extension associations. ATTRIB-Displays or change...
Literate functional testing Google London Test Automation Conference (LTAC) Google Tech Talks September 7th, 2006 Presenters: Robert Chatley and Tom White




Search This Site:










looking for the best web hosting site....

adding a one-time client script from a control

windows cannot access the object ou=ou name, dc=domain name, dc=domain, dc=com in active directory

what is the property setdesignmodestate on the control class?

customcontrol : system.web.ui.webcontrols.panel -> childcontrol.id = customcontrol_childcontrol.id

expressions of interest

event handler on dynamicly created buttons not fired

prevent double method call

best approach for cross-browser rendering

property grid verb triggers windows form

add web control

help required writing controldesigner for container/panel control.

arraylist & custom controls

how-to: bind custom control to xml

how to get response object in the server control?

want to use datagrid in composite custom control

get application path in designtime

help.... anyone have an answer to this...

getting submitted value from composite control

hosting asp.net sites

database deployment problems

finding a suitable web host ...

custom designer & getting website project references (vs05b2)

no data coming back

custom server control does not cause validation

adding child controls to a custom control

composite server controls and performance

render at desing time in webcontrol

strange access denied error

composite control designer question

  Privacy | Contact Us
All Times Are GMT