Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / web / ASP.NET

opening a window with parameters

0.00/5 (No votes)
8 Jun 2010CPOL 13.9K  
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)