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
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