页面(default.aspx)protected void Button1_Click(object sender, EventArgs e)
{
Session["dataset"] = ds1; Response.Redirect("Default2.aspx",true);
}页面(default2.aspx) protected void Page_Load(object sender, EventArgs e)
{
DataSet ds1 = (DataSet)Session["dataset"]; Doc theDoc = new Doc();
theDoc.Rect.Inset(30, 30); theDoc.Page = theDoc.AddPage();
int theID; theID = theDoc.AddImageUrl("http://localhost/websupergoo/Default2.aspx"); }我运行的时候,http://localhost/websupergoo/Default2.aspx 页面中有dataset,可我把http://localhost/websupergoo/Default2.aspx放到internet explorer中的时候,却打不开这个网页,这个时候ds1为零,我试着用Server.Tranfer("Default2.aspx",true);在internet explorer中只能打开http://localhost/websupergoo/Default.aspx 的内容,可我需要http://localhost/websupergoo/Default2.aspx 的内容,有什么办法,能让我即转换页面,又能把值传过去,请大虾帮帮忙,只有这样,我才能把html存到pdf中,在线等,多谢!!!
{
Session["dataset"] = ds1; Response.Redirect("Default2.aspx",true);
}页面(default2.aspx) protected void Page_Load(object sender, EventArgs e)
{
DataSet ds1 = (DataSet)Session["dataset"]; Doc theDoc = new Doc();
theDoc.Rect.Inset(30, 30); theDoc.Page = theDoc.AddPage();
int theID; theID = theDoc.AddImageUrl("http://localhost/websupergoo/Default2.aspx"); }我运行的时候,http://localhost/websupergoo/Default2.aspx 页面中有dataset,可我把http://localhost/websupergoo/Default2.aspx放到internet explorer中的时候,却打不开这个网页,这个时候ds1为零,我试着用Server.Tranfer("Default2.aspx",true);在internet explorer中只能打开http://localhost/websupergoo/Default.aspx 的内容,可我需要http://localhost/websupergoo/Default2.aspx 的内容,有什么办法,能让我即转换页面,又能把值传过去,请大虾帮帮忙,只有这样,我才能把html存到pdf中,在线等,多谢!!!
解决方案 »
- 高分求解答
- winform 根据指定的tag显示menutrip的菜单项
- 如何获取网页中这一连接字符串
- 请问用vb.net怎么样实现单件模式中的double check
- 根据不同的语言,代码变色如何实现,有现成的控件吗?
- 用户控件数据绑定问题?
- ADO.net连接 如何取消Access用户的以独占方式的锁定数据, 生成数据集
- 如何让.Net数据库应用程序限制在3-5个并发用户使用????
- 我的vs.net里面怎么不能引用System.EnterpriseServices 啊?
- asp.net运行,包错,**无法在web服务器上启动调试***
- C# 如何读取节点对应的文件
- C#打印图片时,怎样使比较大的图片自动缩放地打印在一张A4纸上啊,需要具体代码,谢谢了?
你这是传的DataSet对象!!
还没搞过呢!!
关注!!
{ String extent;
String themen;
if (String.IsNullOrEmpty(Session["Extend"].ToString()) || String.IsNullOrEmpty(Session["Themens"].ToString()))
{
extent = Request["extend"];
themen = Request["Themens"];
}
else
{
extent = (String)Session["Extend"]; themen = (String)Session["Themens"];
}
}protected void Button1_Click(object sender, EventArgs e)
{ Doc theDoc = new Doc();
theDoc.Rect.Inset(30, 30); theDoc.Page = theDoc.AddPage();
int theID;
theID = theDoc.AddImageUrl("http://localhost/lastone/Default2.aspx?extent=Session["(Extend)"]&themen=Session["(Themens)"]"); theDoc.Save(Server.MapPath("hahahtml.pdf"));
theDoc.Clear();
}
theID = theDoc.AddImageUrl("http://localhost/lastone/Default2.aspx?extent=Session["(Extend)"]&themen=Session["(Themens)"]");
这句话有错误,望各位帮帮忙!在线等!急!!!
界定符都乱套了..