📄 defaultcs.aspx.cs
字号:
using System;
using System.Web.UI;
using Telerik.QuickStart;
namespace Telerik.CallbackExamplesCSharp.Controls.Panel.RecreateScripts
{
/// <summary>
/// Summary description for _Default.
/// </summary>
public class DefaultCS: XhtmlPage
{
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.Button Button2;
protected Telerik.WebControls.CallbackPanel CallbackPanel1;
protected Telerik.WebControls.CallbackPanel CallbackPanel2;
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Button2.Click += new System.EventHandler(this.Button2_Click);
}
#endregion
protected void Button1_Click(object source, System.EventArgs e)
{
Button1.Text = "Scripts recreated!";
}
protected void Button2_Click(object source, System.EventArgs e)
{
CallbackPanel2.Controls.Add(new LiteralControl("<script type=\"text/javascript\" src=\"JavaScript1.js\"></script>"));
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -