Hi,
I have a repeater based on a stored procedure. It pulls the following:
catDesc Image
The user sees the category description (catDesc) , and then clicks on
the image (Image) which is bound to the catID. This catID (@catID ---
an integer) is then to be passed to the next page, sculpture2.aspx for
use in a datagrid with a stored procedure.
I understand how to pass a parameter using response.redire ct. I've
done so with a dropdownlist in the past by using OnSelectedIndex Changed
and just using dropdownlist.se lecteditem.valu e as the parameter (an
integer in this case) which I use with response.redire ct.
Is there an equivalent techinque for using a repeater?
Here is my code:
<asp:repeater runat="server" ID=repeaterOdd>
<itemtemplate >
<p align="left"><% #DataBinder.Eva l(Container.Dat aItem,
"catDesc") %></p>
<p align="left">
<a href="sculpture 2.aspx?catDesc= <%#DataBinder.E val(Container.D ataItem,
"catID")%>"
<img src="<%# DataBinder.Eval (Container.Data Item, "image") %>"></p>
</itemtemplate>
</asp:repeater>
If I pass this parameter as CatID, then I can't retrieve it using a
querysting, and the whole goal is to use a querystring to pass the
parameter. (e.g int passedValue = Request.Queryst ring["catID"].
Is there some way to pull the selected value of catID out of the
repeater, put it in some kind of variable, and then run a method to
attach it to a response.redire ct?
Is there another way to do this? Using a LinkButton?
Thanks in advance.