473,406 Members | 2,371 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,406 software developers and data experts.

How do I code the src= for an image to pick up value passed in URL as request string?

I am trying to pass an image value from pageA.aspx to pageB.aspx. I am very new to ASP.net and have successfully passed the image name in the URL as Printpage.aspx?Image=dsc00015-1.jpg

My question is that on PageB I would like to display dsc00015-1.jpg as an image. How to I extract this from the URL and code it in the src= of the image?
Nov 8 '10 #1
1 1424
yarbrough40
320 100+
you pull the value out of the Request object
Request.Querystring()

then set the ImageUrl property of your image
Enjoy!
Nov 15 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Suresh Ponraj | last post by:
Hi All, I have some problem in my ASP project. I'm trying to pass the multi line text value from my Client side to server side. (The string having "Return Key" value). My ASP file doesn't...
3
by: bearclaws | last post by:
I'm new to XML/XSL and need to get the last value from a string that looks like this (where the colon is the delimiter)... Computers:Drives:Firewire:Hard Drive I have an XSL file that gets...
0
by: Daniel | last post by:
how to change the value of Request.ServerVariables on the ser ver? if not possible is there some way to change it by sending back javascript to the client and having the client automaticaly do...
3
by: Oberon | last post by:
How do I deal with this? I am getting an error for each get in the Game class (see code below). In the simplified example below I have reduced this to just 3 fields, one which can be NULL. I...
1
by: td1369 | last post by:
hello, i have a string that contains the html code of a html-page. Very important is to know that in the page is a single image. That url i want to read from the page. I want to get the url...
4
by: Jason Kendall | last post by:
How do I use a curly brace within a string passed to String.Format? I want to pass a string that includes a curly brace, but that curly brace is not being used to indicate a replacable format...
2
by: André | last post by:
Hi, I want to pass a integer value to client-side via a hiddenfield created in the aspx (HiddenField1) dim myvalue as integer myvalue=5 HiddenField1=myvalue When fetching in Javascript,...
2
by: pbmanikandan | last post by:
Horrible error. I use a function called cleanse company name that "removes" some strings if present from a string that is passed to it. In a procedure, I do the following. INSERT into table1...
2
by: Michael Lang | last post by:
Is there anyway to get an anchor passed on a request string.... e.g mypage.aspx#myanch in the mypage code behind i want to be able to get the string "myanch"... Basically I want to navigate...
1
by: fretIT | last post by:
Hello, when I write web method using C# in Visual basic 2005, I can't return the string value to the client request. I got such kind of error Not all code paths return a value. Don't know how...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
agi2029
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,...

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.