我要用
<form id= 'frm ' action= 'Search.aspx?menu_id=frm.seloption.value&keyword=frm.txtoption.value ' method= 'post '>
获得表单提交的值
原代码如下:
public partial class cds_Search : System.Web.UI.Page
{
private int menu_id = 0;
private int con_id = 0;
private int selectpage = 1;
private string selectvalue = " ";
private string searchstring = " ";
protected void Page_Load(object sender, EventArgs e)
{
new OgilvyOne.ProcessFlow.StaffInfoController().getStaffSession();
VarInit();
Response.Write( "menu_id= " + menu_id+ " <br> ");
Response.Write( "key= " + searchstring);
ContentController icon = new ContentController();
if (con_id > 0 && menu_id != ConfigUtil.GetIntValue( "EventFocuss "))
{
ConInfo info = icon.getContentInfo(con_id);
if (info != null)
{
string linkUrl = info.LinkUrl;
if (linkUrl != null)
{
if (linkUrl.Trim().Length > 0)
{
Response.Redirect(linkUrl, true);
}
}
}
}
string htmlscript = icon.GetContent(menu_id, con_id, selectpage, selectvalue, searchstring);