110,539
社区成员
发帖
与我相关
我的任务
分享
String str;
String url= "company_user_c_website";
//不包含http://
if(-1==url.indexOf("http://"))
{
str = "http://"+url;
}
else
{
str=url;
}
网址:<a href="<%=url%>" target="_blank"><%=company_user_c_website%></a>
SqlDataReader dt = DB.RunProcGetReader("caozuo 1,'[com_job_view]', 'top 1 company_user_c_website',' company_job_info_id=''" + Request("company_job_info_id") + "''',''");
while (dt.Read()) {
str = dt(0).ToString();
}
//不包含http://
if (-1 == str().IndexOf("http://")) {
url = "http://" + str();
} else {
url = str();
}
SqlDataReader dt = DB.RunProcGetReader("caozuo 1,'[com_job_view]', 'top 1 company_user_c_website',' company_job_info_id=''" + Request("company_job_info_id") + "''',''");
while (dt.Read()) {
str() = dt(0).ToString();
}
//不包含http://
if (-1 == str().IndexOf("http://")) {
url = "http://" + str();
} else {
url = str();
}
网址:<a href="<%=url%>" target="_blank"><%=str%></a>
public string str;
public string url= "http://www.baidu.com";
public void Page_Load(object sender,EventArgs e)
{
if(!IsPostBack)
{
//不包含http://
if(-1==url.indexOf("http://"))
{
str = "http://"+url;
}
else
{
str=url;
}
}
}
网址:<a href='<%=url%>' target="_blank"><%=str%></a>
public string str;
public string url= "http://www.baidu.com";
//不包含http://
if(-1==url.indexOf("http://"))
{
str = "http://"+url;
}
else
{
str=url;
}
网址:<a href="<%=url%>" target="_blank"><%=str%></a>