Solved

Passing Argument using RadWindow

Posted on 2009-03-29
3
5,570 Views
Last Modified: 2012-05-06
I am struggling on the best method for passing an arguemnet to a RadWindow.  I want to get the stocknumber form the databinder .eval expression to the rad window.  Any help is appreciated.
<script type="text/javascript">
    //Function to open Rad window with button
    function ShowDialog(StockNumber) 
    {
 
        var oWnd = window.radopen(null, "radWindow1");
        oWnd.setUrl(oWnd.get_navigateUrl());
 
    }
 
 
    </script>
<body>
 <telerik:radwindowmanager runat="server" Animation="FlyIn" 
        ID="radWindowManager" Skin="Vista" Height="325px" Width="625px" 
        Left="250px" OffsetElementID="btnInstant" Title="Instant Quote Request" 
        Top="150px" onclientshow="onClientShow" KeepInScreenBounds="True" >
    
         <Windows>
        <telerik:radwindow runat="server" 
        ID="radWindow1" 
        NavigateUrl="webforms/InstantQuoteWindow.aspx" 
         >
        </telerik:radwindow>
        </Windows> 
    </telerik:radwindowmanager>
 
<asp:Button ID="btnInstant" runat="server" Text="Click for Too Low to Publish $" Visible='<%# System.Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "InstantQuote").Equals(1)?"True":"False") %>'   OnClientClick="javascript:ShowDialog('<%# DataBinder.Eval(Container.DataItem, "StockNumber") %>');" /><br />
</body>

Open in new window

0
Comment
Question by:spradsrv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
carlnorrbom earned 500 total points
ID: 24016697
Hi,

I don't have access to my dev environment but will give this a go anyway, have you tried changing the javascript function to:

    function ShowDialog(StockNumber)
    {
 
        var oWnd = window.radopen(null, "radWindow1");
        oWnd.setUrl(oWnd.get_navigateUrl() + "?StockNumber=" + StockNumber);
 
    }

And then in Your "InstantQuoteWindow.aspx" window's page load eventhandler do request for the stock number?

Page_Load:

If Not String.IsNullOrEmpty(Request("StockNumber") Then
    Dim StockNumber As Integer = Convert.ToInteger32(Request("StockNumber"))
    'Other logic to build the page...
End If

Just an idea.

/Carl.
0
 
LVL 18

Expert Comment

by:carlnorrbom
ID: 24175642
Hi,

Did this solve Your problem?

/Carl.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question