点击链接取不到数据,提示:找不到系统资源
<table width="229" border="0" cellpadding="0" cellspacing="0"><asp:Repeater ID="Repeater1" runat="server" DataSourceID="AccessDataSource1">
<ItemTemplate>
<tr>
<td width="225" height="35" background="images/index_47-1.jpg" style="padding-left: 35px;
font-weight: bolder; background-repeat: no-repeat; cursor: hand;">
<a href="about<%# Eval("id")%>.aspx" style="text-decoration: none; font-size: 12px;
color: #000; cursor: hand;">
<%# Eval("title")%></a>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
public partial class MasterPage : System.Web.UI.MasterPage
{
public ArrayList arr = new ArrayList();
public ArrayList arr2 = new ArrayList();
public ArrayList arr3 = new ArrayList();
string currurl = sqlhelper.cupage().ToString();
public int i = 0;
protected void Page_Load(object sender, EventArgs e)
{
Page.Title = sqlhelper.getwebtitle();
if (currurl.IndexOf("about") > -1)
{
Panel1.Visible = true;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
if (r1.Checked) {
Response.Redirect("pro2" + kw.Value + ".aspx");
}
if (r2.Checked) {
Response.Redirect("news"+kw.Value+".aspx");
}
}
public int getname(int a1){
arr.Add(Convert.ToString(a1));
return a1;
}
public string getcode(string b1)
{
arr2.Add(Convert.ToString(b1));
return b1;
}
public string GetValueByKey(string wKey, string fTable, string wStr)
{
try
{
return sqlhelper.GetDataTable(CommandType.Text, "select " + wKey + " from " + fTable + " where " + wStr, null).Rows[0][0].ToString();
}
catch (Exception)
{
return "";
}
}
}
我不知代码问题出现在哪 ,点击链接取不到数据,提示:找不到系统资源 找不到系统资源 --------------------编程问答-------------------- 页面不存在? 瞧瞧网页源代码呢? --------------------编程问答-------------------- 提示:找不到系统资源
这个提示信息是从那获取到的? --------------------编程问答-------------------- 楼主调试下 if (r1.Checked) {
Response.Redirect("pro2" + kw.Value + ".aspx");
}
if (r2.Checked) {
Response.Redirect("news"+kw.Value+".aspx");
}
看看有没有取到相应的值啊 --------------------编程问答-------------------- 用浏览器自带的调试器(F12),调试下界面,看看你点击的部分的Html代码是否正确,以及目标链接是否正常,是否存在
补充:.NET技术 , .NET Framework