一个非常简单的c#的问题~~~ fid=this.Request.QueryString["fid"];this.ViewState["fid"]=fid; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 namespace AnccOa.inc{ /// <summary> /// ShowPic 的摘要说明。 /// </summary> public class ShowPic : BasePage { private void Page_Load(object sender, System.EventArgs e) { // 在此处放置用户代码以初始化页面 int fid; fid=this.Request.QueryString["fid"]; this.ViewState["fid"]=fid; //this.JsIsNull("tstsat",test); } #region Web 窗体设计器生成的代码 override protected void OnInit(EventArgs e) { // // CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。 // InitializeComponent(); base.OnInit(e); } /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); } #endregion }} this.Request.QueryString("fid");->this.Request.QueryString["fid"];this.ViewState("fid")->this.ViewState["fid"] 谢谢各位阿以前老用vb.net写,这次改c#,以后还有麻烦大家的。谢了。 asp.net用模板生成.html页面 求C#掉用C的参数类型对应关系 提示:“无法将类型为“SQLServerDAL.houseinfoDAL”的对象强制转换为类型“IDAL.Ihouseinfo”。 修改SQL表中数据的问题 怎么判断输入的一个网页地址有RSS订阅并找到RSS的地址 如何做效果:弹出个对话框,“是否删除”,YES 和 NO 可以选择 MD5的严重问题 请高手相助 请教邮件发送问题 如何将数据库事务处理AOP化? 用VB.NET写ASP.NET程序怎么才不会把代码编译到DLL文件里? 一个非常简单的c#的问题~~~ ASP.NET 模式对话框问题
{
/// <summary>
/// ShowPic 的摘要说明。
/// </summary>
public class ShowPic : BasePage
{
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
int fid;
fid=this.Request.QueryString["fid"];
this.ViewState["fid"]=fid;
//this.JsIsNull("tstsat",test);
} #region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load); }
#endregion
}
}
->this.Request.QueryString["fid"];this.ViewState("fid")
->this.ViewState["fid"]