Click here to Skip to main content
15,919,931 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRequest.QueryString problem.. Pin
RajpootRohan26-May-09 19:10
professionalRajpootRohan26-May-09 19:10 
I am stucked in to a problem. I am working on a shopping cart project. When a user selects an category from the menu, it showcases the subcategories related to that category. It is showcased like this:

first the image (in the image button control) then below it the name of the category (in the hyperlink control). Both are clickable. Now if the user further clicks on any of the sub category, the name and the category id is passed to the next page through query string. Suppose the name of the category is "Spirit Dispensers & Measures". When I am retrieving this through request.querystring, the problem arises i.e

ch_name = Request.QueryString["name"];

While debugging by using breaking point I found that the variable ch_name is showing only "Spirit Dispensers" and when I am checking the QueryString by mouseover it is showing like this "Spirit+Dispensers+&+Measures" .

But I want the full name in the variable as "Spirit Dispensers & Measures" . So please help me out. Its really urgent.

Waiting for your earliest response.

Actually I am passing it like this:
so how to do it in inline code.
<asp:ImageButton ID="ImageButton1" runat="server" Height="100px" Width="100px" ImageUrl='<%# Eval("cat_image") %>' PostBackUrl='<%# "SubCategory.aspx?name=" + DataBinder.Eval(Container.DataItem,"category_name")+ "&cat_id=" + DataBinder.Eval(Container.DataItem,"category_id")%>' /><br />
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"category_name") %>' NavigateUrl='<%# "SubCategory.aspx?name=" + DataBinder.Eval(Container.DataItem,"category_name")+ "&cat_id=" + DataBinder.Eval(Container.DataItem,"category_id")%>' Font-Underline="false" Font-Bold="true" Font-Names="verdana" Font-Size="Small" ForeColor="#336699" />


cheers,
sneha

AnswerRe: Request.QueryString problem.. Pin
padmanabhan N26-May-09 19:37
padmanabhan N26-May-09 19:37 
GeneralRe: Request.QueryString problem.. Pin
Baran M26-May-09 19:55
Baran M26-May-09 19:55 
QuestionGrid View Pin
rmaya26-May-09 18:40
rmaya26-May-09 18:40 
AnswerRe: Grid View Pin
Baran M26-May-09 20:00
Baran M26-May-09 20:00 
GeneralRe: Grid View Pin
rmaya26-May-09 20:12
rmaya26-May-09 20:12 
GeneralRe: Grid View Pin
Baran M26-May-09 20:34
Baran M26-May-09 20:34 
Questionsetting same Fonts for single line and multi line textbox Pin
sandhya1426-May-09 18:28
sandhya1426-May-09 18:28 
AnswerRe: setting same Fonts for single line and multi line textbox Pin
padmanabhan N26-May-09 19:27
padmanabhan N26-May-09 19:27 
GeneralRe: setting same Fonts for single line and multi line textbox Pin
sandhya1426-May-09 19:34
sandhya1426-May-09 19:34 
Questionpaly Flash Video Pin
jason_mf26-May-09 18:15
jason_mf26-May-09 18:15 
AnswerRe: paly Flash Video Pin
padmanabhan N26-May-09 18:42
padmanabhan N26-May-09 18:42 
GeneralRe: paly Flash Video Pin
jason_mf26-May-09 19:29
jason_mf26-May-09 19:29 
GeneralRe: paly Flash Video Pin
padmanabhan N26-May-09 19:41
padmanabhan N26-May-09 19:41 
GeneralRe: paly Flash Video Pin
Jain Vijay27-May-09 0:15
Jain Vijay27-May-09 0:15 
QuestionHow can i develope web applicatio on multilaguage? Pin
Niks775526-May-09 18:11
Niks775526-May-09 18:11 
AnswerRe: How can i develope web applicatio on multilaguage? Pin
padmanabhan N26-May-09 18:47
padmanabhan N26-May-09 18:47 
Questionhow to address the user session and the default session Pin
prasadbuddhika26-May-09 17:34
prasadbuddhika26-May-09 17:34 
QuestionGrid View Pin
hahii26-May-09 16:49
hahii26-May-09 16:49 
AnswerRe: Grid View Pin
Baran M26-May-09 19:33
Baran M26-May-09 19:33 
Questionpost-back after updateprogress? Pin
Rafferty Uy26-May-09 15:45
Rafferty Uy26-May-09 15:45 
QuestionSQL Membership PRovider Pin
Jacob Dixon26-May-09 15:14
Jacob Dixon26-May-09 15:14 
AnswerRe: SQL Membership PRovider Pin
Are Jay26-May-09 15:33
Are Jay26-May-09 15:33 
GeneralRe: SQL Membership PRovider Pin
Jacob Dixon26-May-09 15:34
Jacob Dixon26-May-09 15:34 
GeneralRe: SQL Membership PRovider Pin
Are Jay26-May-09 17:38
Are Jay26-May-09 17:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.