http://travel.163.com/position_travel.html
http://news.163.com/util/position1.html
<%#DataBinder.Eval(Container.DataItem,"id")%>
http://dict.cn/mini.php?q=%D3%EF%B7%A8//网络词典
string constr="Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source="+Server.MapPath
(System.Configuration.ConfigurationSettings.AppSettings["mymdb"])+";";
OleDbConnection con_acess=new OleDbConnection(constr);
OleDbCommand cmd_acess=new OleDbCommand();
public string GetBaseURL()
{
if (HttpContext.Current.Request.ApplicationPath == "/")
{
return @"http://" + HttpContext.Current.Request.Url.Host;
}
else
{
return @"http://" + HttpContext.Current.Request.Url.Host +
HttpContext.Current.Request.ApplicationPath;
}
}
public string CutString(string str)
{
return str.Length>Convert.ToInt32(TitleLength)?str.Substring(0,Convert.ToInt32
(TitleLength)):str;
}
public string GetPic(string str)
{
if(str.Length==0)
return "~/images/noimg.gif";
else
return "~/"+str;
}
SqlConnection con=new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings
["ConnectionString"]);
SqlCommand cmd=new SqlCommand("",con);
con.Open();
SqlDataReader dr=cmd.ExecuteReader(CommandBehavior.CloseConnection);
<asp:Literal id="Literal1" runat="server" Visible="<%#(bool)((Container.ItemIndex+1)%ColCount==0)%
>" Text="</tr><tr>"/>