- 爱易网页
-
ASP.NET教程
- 多个页面向一个页面传值如何判断
日期:2014-05-18 浏览次数:20710 次
多个页面向一个页面传值怎么判断
帮帮忙呀
有很多个页面传值给A页,那在A页中怎么知道是哪一个页面传给A页的呢??
A页如下
soundDataID = Request.QueryString[ "id "];
this.soundPlayLocator = new Locator.CoursewareLocator(this.DbConnect);
string prePageTitle= " ";
prePageTitle = Page.PreviousPage.Title;
switch (prePageTitle)
{
case "课件管理 ":
// case "courseware_list.aspx ":
Entity.tCourseware iniCourseware = soundPlayLocator.SelectCoursewareOne(int.Parse(soundDataID));
// Response.AddHeader( "Content-Disposition ", "attachment; filename= " + "qq.wav ");
Response.ContentType = "audio/wav ";
Response.OutputStream.Write(iniCourseware.b_sound, 0, iniCourseware.b_sound.Length);
Response.Flush();
break;
// case "句子列表管理 ":
// case "sentence_list.aspx ":
// Entity.tSentence iniSentence = soundPlayLocator.SelectSentenceOne(int.Parse(soundDataID));
// Response.ContentType = "audio/wav ";
// Response.OutputStream.Write(iniSentence.b_sound, 0, iniSentence.b_sound.Length);
// Response.Flush();
// break;
default:
break;
}
------解决方案--------------------