<ul id="banner" runat="server" class="bxslider"> </ul>
[WebMethod] public static void bind_Banner(string day, string month) { try { string list = "<li><img src='images/birthday.jpg' width='310px' height='297px'/></li>"; int width = 310, height = 297; string str = "select logo,companyname from logos where status='True' AND type='Birthdays' AND day='"+day+"' AND month='"+month+"'"; DataSet ds = Class1.myTable(str); if (ds.Tables[0].Rows.Count > 0) { list = ""; for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { string image = ds.Tables[0].Rows[i][0].ToString().Substring(2); string name = ds.Tables[0].Rows[i][1].ToString(); list += "<li><img src='" + image + "' width=" + width + " height=" + height + "/><p class='caption'>" + name + "</p></li>"; } } _Default obj = new _Default(); obj.banner.InnerHtml = list; //object reference not set to an instance of an object } catch (Exception ex) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)