 |
| ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 3rd, 2008, 10:07 AM
|
|
Authorized User
|
|
Join Date: Jan 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
few questions for newbie please
hi everybody,
m a newbie in asp.net.m using vs2005.Please could anyone help me?
1)the browser doesnot render the images while executing thou i can see em' in design mode
2)how to program interactive button but without using "Navigation controls" provided by ASP .NET..i used javascript but no response at all yet,no error either....i guess its because of the problem 1
3)how to download the images from sql server that are uploaded earlier using insert cmd?i uploaded it to the server but when i simply try to download using simple select command,it just prints long alphanumerics..
4)how to upload files in the filesystem then?
And the real tedious problem is....i used VS 2003 before and while workin with web development,design grid used to be flexible that i could move the control easily..
But in 2005,controls are so reluctant even though i check all those align propeties
ill be thankful guys
|
|

January 7th, 2008, 10:43 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Questions 3 and 4 can be answer by some simple web searching. There are numerous tutorials and forum threads about both of these topics.
Question 1) Generally, if you aren't seeing images it's due to relative path mistakes. Take a look at the URL in the image tags and compare that against the real directory structure of your site. Often path problems can be fixed by using application root relative syntax with the "~" application placeholder. The runtime will fill it in as needed. Example: image url of "~/images/header.gif". This will resolve out to the appropriate path based on the application virtual directory. This is a very good practice to eliminate this kind of headache.
Question 2) Please explain further. What do you mean by "interactive". Generally speaking, all buttons are interactive. What are you trying to do with it?
Visual Studio .NET 2002/2003 web forms (under the default IDE settings configuration) used fixed positioning layout using div positioning. This caused lots of back lash from developers. 2005 doesn't behave that way by default. Generally, if you want to make dimensionally flexible sites (i.e. different window sizes) then you should stay away from fixed layout. You can use CSS properties to make flowing layouts that don't rely on tables but are still more flexible than fixed positioning.
-Peter
|
|

January 7th, 2008, 05:58 PM
|
|
Authorized User
|
|
Join Date: Jan 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks peter..
1) I also tot it's due to the relative path mistake...but the problem persists..
My LOGO's real path is:\inetpub\wwwroot\myproject\App_data\mylogo.gif
Relative path mentioned in property: ~/App_data/mylogo.gif
Is there any problem..
2) I meant "interactive" as button which changes its color or size when user hovers or clicked etc...
3)Thanks for the third help...
i appreciate..
ciao.peace.
|
|

January 7th, 2008, 06:03 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
You can't serve files from App_Data; it's a protected folder by default. Move them to say, Images and your problems will vanish:
~/Images/mylogo.gif
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|
|

January 7th, 2008, 07:54 PM
|
|
Authorized User
|
|
Join Date: Jan 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Phew....thats it?I misinterpreted "App_data" folder
thaks olot..
|
|
 |