Home All Groups Group Topic Archive Search About

Adding WebControl using a Button....

Author
25 Jun 2006 3:23 AM
Esqueleto
Hello

I'm developing a WebSite that will have several Lists and Details and I
want to access the detail of the records just clicking in the record in
DataGrid (for example).
The detail will appear in the botton (or top) of the list.

All of this will be managed with events and will not pass in the Query
String (for security reasons I don't want to use the query string).

With all this, when I click a link button in the data grid, if I load a
WebUserControl with the detail (from a DropDownList, CheckBox with
auto-postback or anohter button), we need to click twice to raise the
right event. Why? Yes, I know why. The first time we loaded
WebUserControl was in the Event fase of the life cycle and the second
was in the Page_Load.

There is lot's of WebSites that have this implemented and the question
is: How? How can load (or fake the load) in the Buttton click a
WebUserControl and all the events been catch when the WebUserControl is
loaded in the Page_Load? All of this without using the Query String.

What is the best approche? WebUserControl or IFrame?

Hope that someone could help me.
tkx in advance

Paulo Aboim Pinto
Odivelas - Portugal

Author
26 Jun 2006 7:39 AM
Vadivel Kumar
Nice question.

I will suggest you to use nested datagrids. I mean, nest a datagrid
inside an datagrid and bind data nested datagrid thru the parent
datagrid's ItemDataBound event.

-
Vadivel Kumar
http://vadivelk.net
Author
26 Jun 2006 10:33 AM
Esqueleto
tkx for the response.

I have lot's of application for this feature like a search panel and
the hitlist panel that I want to perform the search after click the
"Search" link (or button); Have the collapse button for a certain part
of the screen, etc.

This problem can be use in all of this features. I don't want to
pre-load the WebUserControl and make the Visible = true when I want him
to show. I want to only load want I need and I need when I click one
link (or button).

There is no other way to resolve this?

Paulo Aboim Pinto
Odivelas - Portugal

Vadivel Kumar wrote:
Show quoteHide quote
> Nice question.
>
> I will suggest you to use nested datagrids. I mean, nest a datagrid
> inside an datagrid and bind data nested datagrid thru the parent
> datagrid's ItemDataBound event.
>
> -
> Vadivel Kumar
> http://vadivelk.net
Author
26 Jun 2006 11:12 AM
Alessandro Zifiglio
hi Paulo, yes, make sure you set an explicit id for your dynamic control,
and also make sure that it is rebuilt the same way it was built previously
after a postback.
Try some of the suggestions in the following post :
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet.buildingcontrols/browse_frm/thread/74537d30f5337999/23ed93f9941ae970?lnk=st&q=alessandro+zifiglio&rnum=3&hl=en#23ed93f9941ae970

Regards,
Alessandro Zifiglio
Show quoteHide quote
"Esqueleto" <esquel***@tusofona.com> ha scritto nel messaggio
news:1151317991.796540.218030@p79g2000cwp.googlegroups.com...
> tkx for the response.
>
> I have lot's of application for this feature like a search panel and
> the hitlist panel that I want to perform the search after click the
> "Search" link (or button); Have the collapse button for a certain part
> of the screen, etc.
>
> This problem can be use in all of this features. I don't want to
> pre-load the WebUserControl and make the Visible = true when I want him
> to show. I want to only load want I need and I need when I click one
> link (or button).
>
> There is no other way to resolve this?
>
> Paulo Aboim Pinto
> Odivelas - Portugal
>
> Vadivel Kumar wrote:
>> Nice question.
>>
>> I will suggest you to use nested datagrids. I mean, nest a datagrid
>> inside an datagrid and bind data nested datagrid thru the parent
>> datagrid's ItemDataBound event.
>>
>> -
>> Vadivel Kumar
>> http://vadivelk.net
>