0
我的這個ajax ConfirmButtonExtender在我的頁面中,ConfirmText設置爲一個靜態值你確定要取消這個命令嗎?現在動態設置Ajax ConfirmButtonExtender ConfirmText值
<ajaxToolKit:ConfirmButtonExtender ID="cbe_btnVoid" runat="server" ConfirmText="Are you sure you want to void this order?" Enabled="True" TargetControlID="btnTarget" /> '
,我創建了代替confirmtext的靜態值的所謂返回字符串的函數如下:
public static string setConfirmTextValue()
{
return "Note:\n\nThis will void your order.\n\nProceed?";
}
以上功能的按鈕內一起使用時, gridview並相應地顯示confirmtext,但是當在頁面上的按鈕中使用時,確認文本是空白的。我在gridview中設置Button的confirmtext值如下:
ConfirmText='<%# Utils.setConfirmTextValue() %>'
我在gridview外面使用了相同的按鈕。對此有任何建議/想法...
我以爲我承認過這一點。謝謝。 – 2012-12-06 13:17:18
@jaytapaoan哦,我忘了這件事,很高興它幫助 – 2012-12-06 13:53:14