ASP.NET - 点击 ImageButton 的地方,btn 保持块状态
ASP.NET - Where click on ImageButton, btn stay block state
我的解决方案是 C# Class 库 我想添加 _spFormOnSubmitCalled = false;
_spSuppressFormOnSubmitWrapper = true;
,因为我的按钮在点击后一直处于阻塞状态。
这是我的代码,我将其添加到属性下方。
下面是我添加的代码:
ImageButton btnAddHelp = new ImageButton();
btnAddHelp.AlternateText = "HELP ME?";
btnAddHelp.OnClientClick = "target='blank'";
btnAddHelp.TabIndex = 2;
btnAddHelp.PostBackUrl = "http://sf-spsdev02/TestSite/Shared%20Documents/UserGiude-WayBill%20System.pdf";
btnAddHelp.ImageUrl = "~/_layouts/images/hhelp.GIF
如何使用 HyperLink 控件执行此操作:
这是我的代码:
HyperLink btnEditHelp = new HyperLink();
btnEditHelp.Text = "";
btnEditHelp.ID = "dasdasdsa";
btnEditHelp.ToolTip = "HELP ME?";
btnEditHelp.ImageUrl = "~/_layouts/images/hhelp.GIF";
btnEditHelp.Target = "_blank";
//btnEditHelp. = "_spFormOnSubmitCalled = false; _spSuppressFormOnSubmitWrapper = true; target='blank;";
btnEditHelp.NavigateUrl = "http://sf-spsdev02/TestSite/Shared%20Documents/UserGiude-WayBill%20System.pdf";
给我以下错误:
An error has occurred because a control with id 'ctl00$m$WayBillModule1$ctl01' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.
之前谢谢你.. :)
这解决了我的问题:))
HyperLink btnEditHelp = new HyperLink();
btnEditHelp.Text = "";
btnEditHelp.ID = "link";
btnEditHelp.ToolTip = "Helppp?";
btnEditHelp.ImageUrl = "~/_layouts/images/hhelp.GIF";
btnEditHelp.Target = "_blank";
btnEditHelp.NavigateUrl = "http://sf-spsdev02/TestSite/Shared%20Documents/UserGiude-WayBill%20System.pdf";
我的解决方案是 C# Class 库 我想添加 _spFormOnSubmitCalled = false;
_spSuppressFormOnSubmitWrapper = true;
,因为我的按钮在点击后一直处于阻塞状态。
这是我的代码,我将其添加到属性下方。
下面是我添加的代码:
ImageButton btnAddHelp = new ImageButton();
btnAddHelp.AlternateText = "HELP ME?";
btnAddHelp.OnClientClick = "target='blank'";
btnAddHelp.TabIndex = 2;
btnAddHelp.PostBackUrl = "http://sf-spsdev02/TestSite/Shared%20Documents/UserGiude-WayBill%20System.pdf";
btnAddHelp.ImageUrl = "~/_layouts/images/hhelp.GIF
如何使用 HyperLink 控件执行此操作:
这是我的代码:
HyperLink btnEditHelp = new HyperLink();
btnEditHelp.Text = "";
btnEditHelp.ID = "dasdasdsa";
btnEditHelp.ToolTip = "HELP ME?";
btnEditHelp.ImageUrl = "~/_layouts/images/hhelp.GIF";
btnEditHelp.Target = "_blank";
//btnEditHelp. = "_spFormOnSubmitCalled = false; _spSuppressFormOnSubmitWrapper = true; target='blank;";
btnEditHelp.NavigateUrl = "http://sf-spsdev02/TestSite/Shared%20Documents/UserGiude-WayBill%20System.pdf";
给我以下错误:
An error has occurred because a control with id 'ctl00$m$WayBillModule1$ctl01' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.
之前谢谢你.. :)
这解决了我的问题:))
HyperLink btnEditHelp = new HyperLink();
btnEditHelp.Text = "";
btnEditHelp.ID = "link";
btnEditHelp.ToolTip = "Helppp?";
btnEditHelp.ImageUrl = "~/_layouts/images/hhelp.GIF";
btnEditHelp.Target = "_blank";
btnEditHelp.NavigateUrl = "http://sf-spsdev02/TestSite/Shared%20Documents/UserGiude-WayBill%20System.pdf";