您的位置:程序门 -> .net技术 -> c#



c#中一种特殊的窗体调用并传参数的问题!!


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


c#中一种特殊的窗体调用并传参数的问题!!
发表于:2007-09-20 10:33:55 楼主
我的意思是说通过前台和后台的配合,来实现多张页面调用同张页面,并从中得到一个参数返回到调用他的页面中去!!
可问题就出在:编译器错误信息:   cs0103:   名称“bindinfo”不存在!!
我是这样写的,请高手们多多指教:
前台:
  <asp:repeater   id= "rep_show "   runat= "server ">
<itemtemplate>
<tr>
<td   align= "center "> <%=bindinfo()%> </td>
</tr>
</itemtemplate>
</asp:repeater>

后台:
public   string   bindinfo()
{  
session[ "pagename "]   = "addlatentclients.aspx ";

cr_users   user   =new   cr_users();
user.loadall();

datatable   dt   =   user.getfromusers();  
int   t   =   0;
string   href   =   " ";
if   (dt.rows.count   >   0)
{
t   =   dt.rows.count;
for(int   i=0;i <dt.rows.count;i++)
{
href   +=   " <a   href= ' "   +dt.rows[i][ "infopicpath "]     +     " '   > "   +   dt.rows[i][ "infotopic "]+   " <br   /> "   +   " </a> ";
href   +=   " <a   href= ' "   +session[ "pagename "].tostring()   +   " ' "   + "?name   = "+ " ' "+   dt.rows[i][ "name "]     + " '> "   +   dt.rows[i][ "name "]   +   " </a> ";
}

}
return   href;
}
********数据是用存储过程来调用的***********
各位高手多多帮忙啊!!谢谢
发表于:2007-09-20 15:06:301楼 得分:0
......................怎么就没人回答..........
发表于:2007-09-20 15:51:172楼 得分:0
问题已经ok


快速检索

最新资讯
热门点击