.Net有几年没接触了,做了几年C++嵌入式开发,最近又得开始搞.Net网站开发,在调试单位的网站的时候遇到了些问题请教下路过的大神们使用开发工具VS 2008 。
第一个问题:
在MasterPage.master中
<ul class="pngBg">
<li><a href="Survey.html"> 中心简介 </a></li>
<li><a href="Organization.html"> 机构设置 </a></li>
<li><a href="Teachers.html"> 实验队伍 </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" /> 当前位置:首页 >> 中心概况 >> <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反编译工具哪个好啊。感激涕零!!!
第一个问题:
在MasterPage.master中
<ul class="pngBg">
<li><a href="Survey.html"> 中心简介 </a></li>
<li><a href="Organization.html"> 机构设置 </a></li>
<li><a href="Teachers.html"> 实验队伍 </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" /> 当前位置:首页 >> 中心概况 >> <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反编译工具哪个好啊。感激涕零!!!
解决方案 »
- 网页错乱问题!!!!
- asp.net MVC 模式中Model模型中一定要用Model2.edmx这种文件吗???
- 导入Excel的问题,大家来看看啊。。
- 如何接受post过来的字符串~~~
- 后台button onclick 事件 里如何调用JS方法。
- 一个XML+XSL显示论坛帖子层数的问题
- 请教一般网站上的通过密码保护来重设密码,这个功能是怎么实现的?
- 请帮忙:两个dropdownlist相互关联问题?
- 初学ASP.NET 想做一下象CSDN这个论坛一样的左右结构界面,请问是什么实现的?
- 大家帮忙看看做这样的一个网站要多少钱?(一个人做)谢谢!
- 关于asp.net里web控件的理解?
- 在将 varchar 值 'KC01003' 转换成数据类型 int 时失败。
第二个问题, dll.BLL.B_lcd lcd_b = new dll.BLL.B_lcd();
Literal1.Text = lcd_b.GetModel(statecount).lcd_content;
这个数据应该是你这个 dll.BLL.B_lcd中的GetModel获取得到的数据,至于它是从数据库还是文本文件还是其他地方找到的就不知道了呀;