View Complete Post
Dear Friends
Im currently developing ecommerce web site. I reffered to some video tutorials in ASP.net website and i managed to develped basic store front for my ecommerce website. I would like give more attractive look to my categories menu using Jquery or ajax. Please someone help me to understand how to apply jquery or ajax to dynamic category menu.
I use web user control to create category menu. This is my code for that.
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CategoriesList.ascx.cs" Inherits="UserControls_CategoriesList" %> <asp:DataList ID="list" runat="server" CssClass="CategoriesList" Width="200px"> <HeaderTemplate> Choose a Category </HeaderTemplate> <HeaderStyle CssClass="CategoriesListHead" /> <ItemTemplate> <asp:HyperLink ID="HyperLink1" Runat="server" NavigateUrl='<%# Link.ToCategory(Request.QueryString["DepartmentID"], Eval("CategoryID").ToString()) %>' Text='<%# HttpUtility.HtmlEncode(Eval("Name").ToString()) %>' ToolTip='<%# HttpUtility.HtmlEncode(Eval("Description").ToString()) %>' CssClass='&l
I have an Ajax function called from JQuery that goes to a webservice to return a value. I need a SIMPLE example on how I can do this. I've been going nuts with serializing and every other aspect of this topic.
I need to return either an ArrayList with ONE string field or a DataTable of some kind. Either way, I'm populating it into a DropDownList.
I'm willing to consider alternatives to this idea. (Background info - I get a value from a textbox and I need to run it through a DB to get an associated value or set of values). I'm being really general so that someone can show a simple example. Thanks.
Hi,
I have created horizontal menu like below...
<!--<ul id="topnav"> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> <li> <a href="#">Link 4</a> <span> <a href="#">Subnav Link</a> | <a href="#">Subnav Link</a> | <a href="#">Subnav Link</a> </span> </li> <li><a href="#">Link 3</a></li></ul>-->
problem is in my css i assigned margin-left:0px for span.so all my sub navs align to left.but i want to align sub nav under the mail nav.means i need to change align-left property of css dynamically using jquery.
means first sub nav link should be below 'link4' not under 'link1'
so i added fol
My Input Field<table id="ritu"> <tr><td> Name</td> Rituranjan<td></tr> <tr><td> Father Name</td> <td>B.M.Gupta</td></tr> <tr><td> Age</td>20 <td><td>Sex<td>male<td></tr> </table> My Output is Name=Rituranjan Father name =B.M.Gupta Age=20 Sex=male
Hi everyone,
In the database I store CategoryName = "Digital Cameras" But the '&CategoryName=' + User[key].CategoryName + '>' in the URL only display &CategoryName=Digital. How can I make it display "Digital Cameras" in the URL.
Thanks,
Cecilia
for (var key in User) { $('#ListOfCategories').append (' ' + '<a href=./Products.aspx?ProductId=' + User[key].ProductId + '&CategoryId=' + User[key].CategoryId + '&CategoryName=' + User[key].CategoryName + '>' + User[key].CategoryName + '</a><br />') }
How come the following code does not work ? If you can, please make the following code to work for me.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CookiePage1.aspx.cs" Inherits="CookiePage1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript"> function SetCookie(T) { //Create (or update) the value of a cookie to expire in 2 days: $.cookie('ShoppingCartId', T, { expires: 2 }); } function ReadCookie() { var SCId = $.cookie('ShoppingCartId'); return SCId; } $(document).ready(function () { var T = "Testing Cookie"; SetCookie(T); $('.MyShoppingCartId').append(ReadCookie()); }); </script> </head> <body> <form id="form1" runat="server"> <div class="MyShoppingCartId"> <
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend