Click here to Skip to main content
15,886,258 members
Articles / Web Development / ASP.NET
Tip/Trick

opening a window with parameters

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
8 Jun 2010CPOL 13.8K   1  
Opening a radwindow with parameters
I needed to open a Telerik RadWindow with querystring parameters. A simple task with lots of bad advice - hopefully this tip is not in this category :)

I yoinked the parse querystring using javascript from http://www.bloggingdeveloper.com/post/JavaScript-QueryString-ParseGet-QueryString-with-Client-Side-JavaScript.aspx[^]

<asp:Button runat="server" ID="btnQualification" OnClientClick="radopen('QualificationEdit.aspx?InstitutionId=' + getQuerystring('InstitutionId'), 'EntityEdit'); return false;" Text="Add New"></asp:Button>

XML
<telerik:RadWindowManager ID="rwmQualificationEdit" OnClientShow="InitWindow" runat="server">
    <Windows>
        <telerik:RadWindow ID="EntityEdit" runat="server" Left="50px" Width="600px" Height="200px" Top="" AutoSize="true" Behaviors="Close,Reload,Move" />
    </Windows>
</telerik:RadWindowManager>

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --