TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ikram Shams
NA
82
0
URL Rewriting in asp.net 3.5 with multi parameters
Jun 26 2012 1:10 AM
I am using ASP.Net 3.5. I am using multi parameters in my querystring.
eg. www.abc.com/Products.aspx?id=5&scat=DecorativePaints to
www.abc.com/Products/DecorativePaints
How i will rewrite this url.
<asp:DataList ID="dlist" runat="server" RepeatColumns="3"
RepeatDirection="Horizontal" RepeatLayout="Table" CellPadding="2"
DataKeyField="PCatId" Width="685px">
<ItemTemplate>
<table border="0" width="220px" align="left" cellpadding="0" cellspacing="0" style="margin-left:0px" >
<tr>
<td align="left" width="166px" style="margin-left:0px;" valign="top">
<div class="blockcont"><!--Open block-->
<a href='ProductsCategory.aspx?id=<%#Eval("PCatId")%>&scat=%#Eval("Name")%>' >
<img src="images/Product/Category/<%#Eval("Image")%>" alt="Al-Jazeera Paints" width="156px" height="145" /></a>
<br/><br/>
<span class="imgtitle">
<asp:Label ID="lblCategoryName" CssClass="imgtitle" runat="server" Text='<%#Eval("Name")%>' ></asp:Label>
</span>
<p><!--Close block-->
<asp:Label ID="Label1" runat="server" Font-Bold="false" Width="156px" Text='<%#Eval("Contents")%>' ></asp:Label>
</p>
<a href='ProductsCategory.aspx?id=<%#Eval("PCatId")%>&scat=<%#Eval("Name")%>' >
<asp:Label ID="Label2" runat="server" Text='<%#Eval("LinkableText")%>' ></asp:Label> >></a>
</div>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
Reply
Answers (
1
)
how can i set asp.net datalist itemtemplate label value with json data
How to Integrate asp.net application with Tally Application ?..