问题一:
在TreeView(VS2005中的控件)树中有一节点为'退出管理',TreeView放在一框架网页中,点击退出管理后怎么退出这个框架网页?
打开一个没框架的网页!(不是打开新的窗口,而是本窗口变为一个无框架的窗口行吗?)问题二:
下表怎么在SQL中实现行例互换?
stuId  stuName  address  
1  张三   长沙   
2  李四   贵阳
3  王二     昆明用一条sql语句,使输出成下面这个表!
1         2          3
张三 李四    王二
长沙 贵阳    昆明问题三:
在default页中有一个用户登陆控件,和搜索商品控件,在用户登陆控件中输入用户名和密码,
按回车登陆时,焦点总是跑到搜索按钮上去!
问题四:
看不懂下面这个存储过程,请大虾们解释一下,存储过程是用吴旗娃分页控件里的一个工具生成的。
ALTER procedure [dbo].[prSerachMerc]
(@searchKey VarChar(100),
@pagesize int,
@pageindex int,
@docount bit)        --这个参数是什么意思干嘛用的?
as
set nocount on
if(@docount=1)
select count(mercId) from tMerchandise where mercname like '%'+@searchkey+'%'
else
begin
declare @indextable table(id int identity(1,1),nid int)
declare @PageLowerBound int
declare @PageUpperBound int
set @PageLowerBound=(@pageindex-1)*@pagesize
set @PageUpperBound=@PageLowerBound+@pagesize
set rowcount @PageUpperBound
--下面这句插入看不懂,还有下面的0.*又是什么意思?
insert into @indextable(nid) select mercId from tMerchandise where (mercname like '%'+@searchkey+'%') or (mercDescription like '%'+@searchkey+'%') order by mercId desc
select O.* from tMerchandise O,@indextable t where O.mercId=t.nid
and t.id>@PageLowerBound and t.id<=@PageUpperBound order by t.id
end
set nocount off问题五:
用户自定义控件中所定义的属性能否在使用控件的页面中使用?
问题六:
<div>层怎么做到相对位置不变?就是无论窗口大小怎么改变,div层上的位置相对网页上其它控件或表格,
位置始终保持不变!

解决方案 »

  1.   

    问题一:
    用javascript
    top.location.href="你要开的页面"
      

  2.   

    1 window.open()????
    2 还在写
    3 假设:
    <asp:TextBox id="tbInput" runat="server" Width="240px"></asp:TextBox>
    <asp:Button id="btnOK" runat="server" BorderWidth="1px" BorderColor="Purple" BorderStyle="Solid" Text="Search Site"></asp:Button>在.aspx页面中添加:
    <SCRIPT LANGUAGE="j***ascript">
    function SubmitKeyClick(button) 
    {    
     if (event.keyCode == 13) 
     {        
      event.keyCode=9;
      event.returnValue = false;
      document.all[button].click(); 
     }
    }
    // -->
    </SCRIPT> 在Page_Load事件中添加:
    tbInput.Attributes.Add("onkeydown","SubmitKeyClick('btnOK');");4 tMerchandise O,O是tMerchandise 的别名,*表示所有列5可以6 http://topic.csdn.net/t/20041011/17/3445258.html
      

  3.   

    2 看看这个
    http://djks.xuevb.net/Article/535207
      

  4.   

    感觉用sql还不好写,如果在代码里处理就不难,把原表写到一个table里,再给另一个table循环赋值就很简单了.还要考虑类型的转换
      

  5.   

    谢谢楼上的几位,问题二是我上次面试时的机试题!他就叫我在sql2000的查询分析器里实现就行了,可我一直不会:(
      

  6.   

    zljblue(随便逛逛) ( )  
     
    问题一:
    用javascript
    top.location.href="你要开的页面"
    -----------------------
    请问怎么让treeview控件执行上面这个脚本?  
     
      

  7.   

    问题三,一般情况下,要用两个form。
    但必须是HTML,而不是runat=server的。手写<form action=处理页面1.aspx>与<form action=处理页面2.aspx>
      

  8.   

    请问怎么让treeview控件执行上面这个脚本?
    可以在click事件中写
    Response.Write("<script>top.location.href='url';</script>");
    Response.End();
      

  9.   

    问题三:
    用一个panel把几个控件都包含进去,然后panel有个DefaultButton
    如:
    <asp:Panel ID="Panel1" runat="server" Height="190px" Width="204px" DefaultButton="btn_ok">
                    <asp:Button ID="btn_no" runat="server" Text="Button" />
                    <asp:Button ID="btn_ok" runat="server" Text="Button" />
                </asp:Panel>