日期:2014-05-18  浏览次数:20434 次

高手帮忙呀!!!无耐了,郁闷了,诚请求高手帮忙,在线等
Neworiental.aspx?classtype=数学
--------------------------
bmleft.ascx                                       |   gridview
(这里面是个dropdownlist控件       |初始化classtype=数学的一些数据
,读取classtype后面的参数 '数学   |
',然后根据它列出相应的列表)       |
                                                            |
                                                            |
                                                            |
---------------------------

页面具体说明:Neworiental.aspx?classtype=数学
--------------------------
初一数学                                       |1册代数
初二数学                                       |2册代数
初三数学                                       |1册几何
---------------------------

Neworiental.aspx?classtype=语文
--------------------------
初一语文                                       |1册语文
初二语文                                       |2册语文
初三语文                                       |3册语文
---------------------------

问题描述:上面的页面功能是好使,我要给它生成静态页.
                string   PageUrl   =   "http://Neworiental.aspx?classtype=数学 ";

                WebClient   wc   =   new   WebClient();
                wc.Credentials   =   CredentialCache.DefaultCredentials;

                Byte[]   pageData   =   wc.DownloadData(PageUrl);
                string   tstr   =   Encoding.GetEncoding( "gb2312 ").GetString(pageData);
//问题就是上面的那句,读出来的html代码里不知道为什么没有得到bmleft.ascx里面的列表,就是初一数学,初二数学等就那一块得不到html代码,页面其它部分里所有的html都能得到,请求高手帮忙,在线等.
                wc.Dispose();

555555555555555555痛苦,查资料也没查到为什么

------解决方案--------------------
http://Neworiental.aspx?classtype=数学
你浏览这个的时候能正常显示吗?
------解决方案--------------------
classtype参数有值吗
------解决方案--------------------