.Net有几年没接触了,做了几年C++嵌入式开发,最近又得开始搞.Net网站开发,在调试单位的网站的时候遇到了些问题请教下路过的大神们使用开发工具VS 2008 。
第一个问题:
在MasterPage.master中
<ul class="pngBg">
<li><a href="Survey.html">&nbsp;&nbsp;中心简介&nbsp;</a></li>
<li><a href="Organization.html">&nbsp;&nbsp;机构设置&nbsp;</a></li>
<li><a href="Teachers.html">&nbsp;&nbsp;实验队伍&nbsp;</a></li>
</ul></li>这段代码是网页跳转的,但是我在源代码里面找不到Survey.html的页面,却有Survey.aspx页面,而且调试过程中这个确实也是源码所在。
这是什么原因呢??是因为URL地址重定向了么?但是浏览器里面的地址依然是Survey.html。如果是URL地址重定向了,那是在哪里实现的呢?
而且我在VS中调试的时候发现,它会提示找不到Survey.html,而IIS中发布的网站是可以显示的,两者代码是同一份。
vs调试时候
IIS网站发布时候在MasterPage.master.cs中只有
public partial class MasterPage : System.Web.UI.MasterPage
{    public dll.Model.M_type m_type = new dll.Model.M_type();
    public dll.BLL.B_type pic = new dll.BLL.B_type();
    public static string cid = "72";
    public string cid_jj = "1";
    public string cid_tea = "1";
    public string cid_stu = "1";    protected void Page_Load(object sender, EventArgs e)
    {
        DataSet ds = pic.GetList(" par_id=5 ");
        lists.DataSource = ds;
        lists.DataBind();    }
}第二个问题
这个页面中中心简介的具体内容哪里获取来的?我在数据库中没有搜到具体内容
Survey.aspx中的相关代码
<div class="cen_ri">
<div class="han_bie">
<strong class="han_dang"><img src="images/han_ui.gif" />&nbsp;当前位置:首页&nbsp;&nbsp;>>&nbsp;&nbsp;中心概况&nbsp;&nbsp;>>&nbsp;&nbsp;<font class="han_yie">中心简介</font></strong>
<div class="han_yong"><asp:Literal ID="Literal1" runat="server"></asp:Literal>
</div>
</div>
</div>
Survey.aspx.cs中代码public partial class Survey : System.Web.UI.Page
{    public dll.BLL.B_type pic = new dll.BLL.B_type();
    public int i = 0;
    public int statecount = 1;
    dll.BLL.B_lcd lcd_b = new dll.BLL.B_lcd();
    dll.Model.M_lcd lcd_m = new dll.Model.M_lcd();
    dll.BLL.B_news news_b = new dll.BLL.B_news();
    public dll.BLL.B_link link_b = new dll.BLL.B_link();
    public string titleshow = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request["id"] != null)
            {
                statecount = Convert.ToInt32(Request["id"].ToString());
            }
            titleshow = dll.Function.channel.lcd_channel_two(statecount);
            Literal1.Text = lcd_b.GetModel(statecount).lcd_content;
        }
    }
}
问题可能很小白,不要鄙视我。
望知道的大神指点一二,或者解释下各种可能的情况。
另外帮我推荐下dll反编译工具哪个好啊。感激涕零!!!

解决方案 »

  1.   

    看看在global.asax中有没有重新定向的代码的
      

  2.   

    在vs中按ctrl+f,全局查找Survey.html,看哪里有引用以及Survey.html的真实路径。
      

  3.   

    第一个问题,你调试用的是自己的IIS(localhost:),自己项目下应该没有Survey.html,正式发布后那个域名下存在的Survey.html,你可以到那个服务器去找找这个Survey.html文件拷过来,这个没有技术问题吧,就是当前域找见找不见文件;
    第二个问题, dll.BLL.B_lcd lcd_b = new dll.BLL.B_lcd(); 
                            Literal1.Text = lcd_b.GetModel(statecount).lcd_content;
    这个数据应该是你这个 dll.BLL.B_lcd中的GetModel获取得到的数据,至于它是从数据库还是文本文件还是其他地方找到的就不知道了呀;
      

  4.   

    可能注册了HttpModule或者HttpHandler, 这些拦截的东西做了一些手脚。