<%#(((RepeaterItem)Container).ItemIndex+1).ToString() %>Refer this Link http://derekreynolds.wordpress.com/2009/12/03/how-to-print-the-current-row-number-in-an-asp-net-repeater-control/ <%#(((RepeaterItem)Container).ItemIndex+1).ToString() %>Refer this Link http://derekreynolds.wordpress.com/2009/12/03/how-to-print-the-current-row-number-in-an-asp-net-repeater-control/ WHERE expire_date >= CAST(FLOOR(CAST( getdate() AS float)) AS datetime)SELECT CAST(FLOOR(CAST( getdate() AS float)) AS datetime)System.Web.HttpBrowserCapabilities browser = Request.Browser
Then render the page accordingly:<% if (browser.Browser == "IE" && browser.MajorVersion == 6) { %>
<link rel="stylesheet" type="text/css" href="style/ie6.css" media="screen" />
<% } else if (browser.Browser == "IE" && browser.MajorVersion == 7) { %>
<link rel="stylesheet" type="text/css" href="style/ie7.css" media="screen" />
<% } else if (browser.Browser == "IE" && browser.MajorVersion == 8) { %>
<link rel="stylesheet" type="text/css" href="style/ie8.css" media="screen" />
<% } %>
I believe you have to set the runat="server" attribute within the <head> element of the page for this to work.
string appPath = Request.ApplicationPath; if (appPath.Length == 0) appPath = "/"; else if (!appPath.EndsWith("/")) appPath += "/"; String themeDir = Page.Theme; if (themeDir == null || themeDir.Length == 0) themeDir = Page.StyleSheetTheme; String conditionalCode = @"<!--[if IE 6]><link rel='stylesheet' href='" + appPath + @"app_themes/" + themeDir + @"/style.css.ie6' type='text/css' /><![endif]--> <!--[if IE 7]><link rel='stylesheet' href='" + appPath + @"app_themes/" + themeDir + @"/style.css.ie7' type='text/css' /><![endif]--> "; Page.ClientScript.RegisterClientScriptBlock ("".GetType(), "iespecific", conditionalCode);