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

How to write it??

I have an imageButton in a aspx page inside a DataList. The image on its
surface it's loaded on runtime doing this:

<asp:ImageButton id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem,
"Path")%>'

Now I'd like to make a Response.Redirect(...) when the user makes a clic on
the image but I don't know how to write it. I'm doing this:

<asp:ImageButton ... OnClick="Response.Redirect('<%#
DataBinder.Eval(Container.DataItem, "Page")%>')

but it doesn't work.
Nov 18 '05 #1
5 1534
I think ImageButtons are a little more than you need to be using. If you want to show the image when they click on it, just use an image control.

<asp:Image id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem, "Path")%>' onClick='<# DataBinder.Eval(Container.DataItem, "Path")%>' />

--Michael

"Alberto" <al*****@nospam.com> wrote in message news:e4*************@TK2MSFTNGP09.phx.gbl...
I have an imageButton in a aspx page inside a DataList. The image on its
surface it's loaded on runtime doing this:

<asp:ImageButton id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem,
"Path")%>'

Now I'd like to make a Response.Redirect(...) when the user makes a clic on
the image but I don't know how to write it. I'm doing this:

<asp:ImageButton ... OnClick="Response.Redirect('<%#
DataBinder.Eval(Container.DataItem, "Page")%>')

but it doesn't work.

Nov 18 '05 #2
Sorry. What I want is show another page with the photo bigger. What I don't
know how to do is how to write the response.redirect sentence inside de html
code.

"Raterus" <ra*****@spam.org> escribió en el mensaje
news:%2****************@TK2MSFTNGP11.phx.gbl...
I think ImageButtons are a little more than you need to be using. If you
want to show the image when they click on it, just use an image control.

<asp:Image id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem,
"Path")%>' onClick='<# DataBinder.Eval(Container.DataItem, "Path")%>' />

--Michael

"Alberto" <al*****@nospam.com> wrote in message
news:e4*************@TK2MSFTNGP09.phx.gbl...
I have an imageButton in a aspx page inside a DataList. The image on its
surface it's loaded on runtime doing this:

<asp:ImageButton id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem, "Path")%>'

Now I'd like to make a Response.Redirect(...) when the user makes a clic on the image but I don't know how to write it. I'm doing this:

<asp:ImageButton ... OnClick="Response.Redirect('<%#
DataBinder.Eval(Container.DataItem, "Page")%>')

but it doesn't work.

Nov 18 '05 #3
Oh I'm sorry, I didn't even tell you the answer!

<asp:Image id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem,
"Path")%>' onClick="location.href='<# DataBinder.Eval(Container.DataItem, "Path")%>';" />

"Alberto" <al*****@nospam.com> wrote in message news:%2***************@TK2MSFTNGP09.phx.gbl...
Sorry. What I want is show another page with the photo bigger. What I don't
know how to do is how to write the response.redirect sentence inside de html
code.

"Raterus" <ra*****@spam.org> escribió en el mensaje
news:%2****************@TK2MSFTNGP11.phx.gbl...
I think ImageButtons are a little more than you need to be using. If you
want to show the image when they click on it, just use an image control.

<asp:Image id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem,
"Path")%>' onClick='<# DataBinder.Eval(Container.DataItem, "Path")%>' />

--Michael

"Alberto" <al*****@nospam.com> wrote in message
news:e4*************@TK2MSFTNGP09.phx.gbl...
I have an imageButton in a aspx page inside a DataList. The image on its
surface it's loaded on runtime doing this:

<asp:ImageButton id=.... ImageUrl='<%#

DataBinder.Eval(Container.DataItem,
"Path")%>'

Now I'd like to make a Response.Redirect(...) when the user makes a clic

on
the image but I don't know how to write it. I'm doing this:

<asp:ImageButton ... OnClick="Response.Redirect('<%#
DataBinder.Eval(Container.DataItem, "Page")%>')

but it doesn't work.


Nov 18 '05 #4
I'm trying it but there is an error when I open the page. I suppose there is
a problem with the ' or the " but I don't know where. Thank you.

"Raterus" <su*****@hotmail.com> escribió en el mensaje
news:%2****************@TK2MSFTNGP11.phx.gbl...
Oh I'm sorry, I didn't even tell you the answer!

<asp:Image id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem,
"Path")%>' onClick="location.href='<# DataBinder.Eval(Container.DataItem,
"Path")%>';" />

"Alberto" <al*****@nospam.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Sorry. What I want is show another page with the photo bigger. What I don't know how to do is how to write the response.redirect sentence inside de html code.

"Raterus" <ra*****@spam.org> escribió en el mensaje
news:%2****************@TK2MSFTNGP11.phx.gbl...
I think ImageButtons are a little more than you need to be using. If you
want to show the image when they click on it, just use an image control.

<asp:Image id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem,
"Path")%>' onClick='<# DataBinder.Eval(Container.DataItem, "Path")%>' />

--Michael

"Alberto" <al*****@nospam.com> wrote in message
news:e4*************@TK2MSFTNGP09.phx.gbl...
I have an imageButton in a aspx page inside a DataList. The image on its
surface it's loaded on runtime doing this:

<asp:ImageButton id=.... ImageUrl='<%#

DataBinder.Eval(Container.DataItem,
"Path")%>'

Now I'd like to make a Response.Redirect(...) when the user makes a clic

on
the image but I don't know how to write it. I'm doing this:

<asp:ImageButton ... OnClick="Response.Redirect('<%#
DataBinder.Eval(Container.DataItem, "Page")%>')

but it doesn't work.


Nov 18 '05 #5
You gotta make use the URL you're going to is well-formed, it can be
alsolute or relative.
"Alberto" <al*****@nospam.com> escribió en el mensaje
news:%2****************@TK2MSFTNGP11.phx.gbl...
I'm trying it but there is an error when I open the page. I suppose there is a problem with the ' or the " but I don't know where. Thank you.

"Raterus" <su*****@hotmail.com> escribió en el mensaje
news:%2****************@TK2MSFTNGP11.phx.gbl...
Oh I'm sorry, I didn't even tell you the answer!

<asp:Image id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem,
"Path")%>' onClick="location.href='<# DataBinder.Eval(Container.DataItem,
"Path")%>';" />

"Alberto" <al*****@nospam.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Sorry. What I want is show another page with the photo bigger. What I

don't
know how to do is how to write the response.redirect sentence inside de

html
code.

"Raterus" <ra*****@spam.org> escribió en el mensaje
news:%2****************@TK2MSFTNGP11.phx.gbl...
I think ImageButtons are a little more than you need to be using. If you want to show the image when they click on it, just use an image control.

<asp:Image id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem,
"Path")%>' onClick='<# DataBinder.Eval(Container.DataItem, "Path")%>' />

--Michael

"Alberto" <al*****@nospam.com> wrote in message
news:e4*************@TK2MSFTNGP09.phx.gbl...
I have an imageButton in a aspx page inside a DataList. The image on its surface it's loaded on runtime doing this:

<asp:ImageButton id=.... ImageUrl='<%#

DataBinder.Eval(Container.DataItem,
"Path")%>'

Now I'd like to make a Response.Redirect(...) when the user makes a
clic on
the image but I don't know how to write it. I'm doing this:

<asp:ImageButton ... OnClick="Response.Redirect('<%#
DataBinder.Eval(Container.DataItem, "Page")%>')

but it doesn't work.



Nov 18 '05 #6

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

Similar topics

10
by: Greg Hurlman | last post by:
I've got what I'm sure is a very simple problem. In an ASP page, I am trying to write out 4 fields from a recordset in succession: Response.Write rs("LastName") Response.Write rs("Suffix")...
1
by: techy techno | last post by:
Hii Just wanted to know how can I decorate my texboxes and Listmenu which is called from a JS file using the following code below: document.write("<SELECT NAME='cur2' ONCHANGE='cconv1();'>");...
2
by: Brett Baisley | last post by:
Hello I have a block of html code that I want to run by calling a javascript function to print it. Its basically a table with menu items in it that is the same for many pages, and instead of...
0
by: hari krishna | last post by:
hi all, My requirement is to generate xl reports throu Asp.Net without installing xl on web server computer. i am using Response object and wrtifile method as below. i dont know whether it is...
8
by: Ben | last post by:
Hi all, Just wondering how to write (using document.write) to a table cell. I have table with 3 rows and 3 colums. I want to write from within the Javascript to say third column of a first row....
4
by: Prowler | last post by:
In the application we are currently building, we need to write positioning code on-the-fly, based upon the screen offset of the element in the AS/400 application which drives the Web app. The 400,...
11
by: Vmusic | last post by:
Hi, I am trying to write out an array of string variables to Notepad. I can't get SendKeys to accept the string variable only literal quoted strings. I DO NOT want the hassle of writing to a...
4
by: cbtechlists | last post by:
I have an ASP app that we've moved from a Windows 2000 to a Windows 2003 server (sql server 2000 to sql server 2005). The job runs fine on the old servers. Part of the app takes a recordset and...
0
by: kuguy | last post by:
Hi all, I'm new to the forums, so I hope this isn't in the wrong place... I have that "Software caused connection abort: socket write error" exception error that i've never meet before. ...
8
by: Mateusz Viste | last post by:
Hi, I am trying make some multimedia files playable from my website. So far, I am able to generate dynamically a new page containing the right <embed> section. However, when I load my script, it...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.