The Calling aspx page contains the following:
page element logic:
<tr
> class="PROPERTYVALUEPAIR2">
> <td class="PROPERTYLABEL2">
> <asp:Label ID="labelDataSourceName" runat="server" >AssociatedControlID="textboxDataSourceName" Text="Data
> Source Name" />
> </td>
> <td class="PROPERTYVALUE2">
> <MyControls:TNRadTextBox ID="textboxDataSourceName" runat="server" MaxLength="300" Width="520"
> EnableEmbeddedSkins="false" Skin="Tienet" />
> <asp:CustomValidator ID="validate_textboxDataSourceName" runat="server"
> ControlToValidate="textboxDataSourceName" CssClass="BAD"
> Display="Dynamic"
> OnServerValidate="validate_textboxDataSourceName_ServerValidate"
> ValidateEmptyText="true" />
>
> </td>
> </tr>
然后按钮逻辑如下:
<asp:Button ID="btnConfirmMySave" runat="server"
NavigateUrl="aaconfirmsettings.aspx"
OnClientClick="return openRadWindow('aaconfirmsettings.aspx','radWindowaaConfirmSettings')"
Text="Accept" Type="Accept" OnClientShow="clientShow()"/>
脚本逻辑:
<MyControls:TNRadWindowManager ID="radWindowManager" runat="server" Behaviors="Resize, Close, Move"
Modal="True" KeepInScreenBounds="True" VisibleStatusbar="False" Skin="MySkins" EnableEmbeddedSkins="False"
OnClientClose="closingRadWindow" ShowContentDuringLoad="False" ReloadOnShow="True"
AutoSize="True" DestroyOnClose="False" InitialBehaviors="None">
<Shortcuts>
<telerik:WindowShortcut CommandName="CloseAll" Shortcut="Esc"></telerik:WindowShortcut>
</Shortcuts>
<Windows>
<tienetControls:TNRadWindow ID="radWindowaaConfirmSettings" runat="server" MinHeight="320" MinWidth="700" />
</Windows>
</tienetControls:TNRadWindowManager>
<telerik:RadCodeBlock ID="radCodeBlock" runat="server">
<script type="text/javascript">
function openRadWindow(url, windowId) {
var oManager = GetRadWindowManager();
oWnd = radopen(url, windowId);
oWnd.center();
return false;
}
function clientShow(sender, eventArgs) {
var txtInput = document.getElementById("textboxDataSourceName");
sender.argument = txtInput.value;
}
function closingRadWindow(oWnd, args) {
var oArgs = args.get_argument();
if (oArgs) {
if (oArgs.redirectUrl) {
document.location = oArgs.redirectUrl;
} else if (oArgs.windowId && oArgs.url) {
openRadWindow(oArgs.url, oArgs.windowId);
} else if (oArgs.refresh == true) {
document.location = document.location;
}
}
}
</script>
</telerik:RadCodeBlock>
调用aaconfirmsettings.aspx页面,在这里我需要使用传递的txtInput.value参数来处理和显示数据。
我能够在不传递参数的情况下加载页面,但无法将参数传递给aaconfirmsettings.aspx rad窗口。