c#(asp.net) updatepanel 局部刷新实例收藏
1
<asp:UpdatePanelID="UpdatePanel1"
UpdateMode="Conditional"
runat="server">
<ContentTemplate>
<asp:Button ID="Button1"
Text="RefreshPanel"
runat="server"/>
</ContentTemplate>
</asp:UpdatePanel>
2
<%@ Register Assembly="Microsoft.Web.Atlas" Namespace="Microsoft.Web.UI" TagPrefix="cc1" %>
<cc1:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True">
</cc1:ScriptManager>
<asp:DropDownList ID="aaa" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlthumbnail_SelectedIndexChanged">
</asp:DropDownList>
<cc1:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="lblatnail" runat="server" Text="" Visible=false></asp:Label>
<asp:LinkButton ID="lbtnatnail" runat="server" Visible=false>View</asp:LinkButton>&
相关文档:
1.using gizp compress page ,gif file can't be compressed.
2.put script at the bottom,and put css at the top.
3.make the css and js external.
4.load-on-demand.(If a UI block need to show by control.Set visibable=false. and enableviewstate=true,override the saveviewstate method.)
5.remove the dupl ......
环境:asp.net +oracle9+windows2003
在本地测试网站完全没有问题。但是一上传到服务器就出问题了,数据库无法连接。由于远程没有VS环境,所以无法调试。真是费了牛劲才找到解决方案:
Problem Description ------------------- When running an application that connects to Oracle and uses the Authenticated ......
需求
如下面的项目结构,我们会在Default.aspx页面中需要传递两个值到SilverlightTestPage.aspx页面,并且需要在SilverlightTestPage.aspx页面所宿主的Silverlight应用程序中获取并显示:
1.先修改page 的构造函数
public Page(string passText)
{
InitializeComponent();
& ......
1.首先得先了解下面的知识:
了解一个名词:表达式语法
表达式语法格式:<%$ ... %>
它是ASP.NET2.0新增了一种声明性表达式语法,可在分析页之前将值替换到页中.
ASP.NET表达式是基于运行时计算的信息设置控件属性的一种声明性方式.
&n ......