in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

WebDialog Passing values.

Last post 05-06-2008 4:34 PM by C1_AndrewM. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-03-2008 6:42 AM

    WebDialog Passing values.

    I use a dialog to enter data into the database then on javascript close function i have added

    function btnClose_onclick() {

    parent.dialog.hide();

    parent.location.reload(
    true);

    }

    This then refreshes the page with the new data.

    I have an edit button in the webgrid and i would like recall the webdialog passing accross an ID field = cint(e.item.cell(0)).

    Oh i should point out that i am using the content.url, and its VB.net.

    so using the String.Format("openWindow($get(""{0}""));", dialog.ClientID) how can i pass avalue with it.

    I also have to point out that i am using VS2008 and the webdialog control does not show up on the tabs. So the dialog was created programatically.

    Hope someone can help

    Cheers Geoff 

     

     

    Filed under:
  • 05-06-2008 4:34 PM In reply to

    Re: WebDialog Passing values.

    Hello,
     
    Since you have added the dialog window via code, it must be difficult for you to add the control to your DialogWindow at runtime. This can be avoided if you add the control in your ToolBox and then drag and drop it on the form. In this way you will also be able to add the contorls manually.
     
    To add the control to your toolbox, you may follow these steps:
     
    1. Open your project in VS2008 and go to design view of any form.
    2. Expand Toolbox and right click on blank area.
    3. Select "Add Tab" and give any name.
    4. Select "Pointer" and then right click on it.
    5. Choose "Choose Items".
    6. In the choose items window, click "Browse" tab/button.
    7. Browse to Program File\ComponentOne Studio Net 2.0\bin folder
    8. Select the C1.Web.C1WebDialog.2.dll and click open.
    9. Click ok.
     
    This will add the C1WebDialog control to your toolbox of VS2008. I hope it helps.
     
    Regards,
    Andrew
    <Telephone1> wrote in message news:204533@10.0.1.98...

    I use a dialog to enter data into the database then on javascript close function i have added

    function btnClose_onclick() {

    parent.dialog.hide();

    parent.location.reload(
    true);

    }

    This then refreshes the page with the new data.

    I have an edit button in the webgrid and i would like recall the webdialog passing accross an ID field = cint(e.item.cell(0)).

    Oh i should point out that i am using the content.url, and its VB.net.

    so using the String.Format("openWindow($get(""{0}""));", dialog.ClientID) how can i pass avalue with it.

    I also have to point out that i am using VS2008 and the webdialog control does not show up on the tabs. So the dialog was created programatically.

    Hope someone can help

    Cheers Geoff 

     

     



    http://helpcentral.componentone.com/cs/forums/p/75146/204533.aspx#204533

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.