I am displaying subcategories in my datalist, and now I have a
bizarre thing happen when I add a new subcategory record in my sql
database, the new subcategory link does not click into the next page:
Here is the code surrounding my dynamic 'subcategory':
<a href="prov-results1.aspx?c ounty=<
%#Server.UrlEnc ode(Request.Que ryString("count y")) & "&subcat=" &
Server.UrlEncod e((Eval("SubCat egory").ToStrin g())) & "&category= " &
Server.UrlEncod e((Eval("Catego ry").ToString() )) & "&uregion=" &
Server.UrlEncod e((Eval("uregio n").ToString()) )%>"><%#
Eval("SubCatego ry")%></a>
In the page source code , the subcategory that works has + signs
after the Category value. I have used
Server.UrlEncod e((Eval("Catego ry").ToString() .trim())) to eliminate
these erroneous + signs, but that disables ALL the links from
working :
<a href="prov-results1.aspx?
county=Clark&su bcat=Asbestos&c ategory=Attorne ys+++++++++++++ +++++++++++
++&uregion=lv"> Asbestos</a>
The subcategory that I have just added to the database doesnt work
when trying to click:
<a href="prov-results1.aspx?
county=Clark&su bcat=CriminalLa w&category=Atto rneys&uregion=" >CriminalLaw</
a>
....i've used NavigateURL in the datalist in the past, but with
problems
??
Ed