Ask a Question related to ASP.NET General, Design and Development.
-
szabelin #1
Re: controls question
Hi Marina, I have tried DataGrid. I need to
hide/expand/show subrows, so I thought I had more control
drawing the Table myself.
Do you have any suggestions for my questions?
Thanks!
With a Datalist>-----Original Message-----
>Have you considered using a DataList or similar control?of this.>with viewstate enabled, you don't have to worry about anythe>
>"szabelin" <szabelin@szabelin> wrote in message
>news:034e01c35c3f$3ed494c0$a301280a@phx.gbl...>> Hello. In my control I dynamically create a Table with
>> custom rows which include checkboxes.
>>
>> On each postback I have to recreate the table
>> (unfortunately).
>>
>> Question 1: how does the framework remember which
>> checkboxes stay checked given that I have to recreateI>> table each time?
>>
>> Question 2: when a button is clicked I have to recreate
>> the table first in Page_Load handler, second in the
>> button's event handler. Is there any way to avoid that?next>> am having problems with this approach because on theand>> postback I try to get a list of selected checkboxes ->>> it's empty (even though I have several checked)
>>
>>
>> Thank you very much
>
>.
>szabelin Guest
-
- Dynamic controls question
I have a Table in my page. I must load some webcontrols dynamically into this table, after the click of a button. These dynamic controls can fire... -
newbie question on Custom Controls in C#
I have just started working on an ASP.Net 1.0 project as my first forray into ASP.Net (or ASP for that matter), and have a general question about... -
High-level question about ASP.NET web controls..
I'm a bit of a noob when it comes to web controls... What I want to do, is create web control that appears in the toolbox, that one could drag onto... -
Question about Custom Controls
Dear all I'm building a web application that some standard controls in many pages as "DropDownlist" this drop down list is filled from a table in a... -
Question on Server Controls
Hi to all, How would I use a public string property to use a color converter effectively? Yes, you can use a Color type for this property but... -
MS News \(MS LVP\) #2
Re: controls question
You want dynamic controls? then you have to live with this. I have to do
the same
I don't like it but that's the way it is for now
The framework can be smarter and recreate the previously created dynamic
controls on postback or something
It does not today and you have to do it yourself
Good luck and I hope you find a better solution and share it with us
J
"szabelin" <szabelin@szabelin> wrote in message
news:034e01c35c3f$3ed494c0$a301280a@phx.gbl...> Hello. In my control I dynamically create a Table with
> custom rows which include checkboxes.
>
> On each postback I have to recreate the table
> (unfortunately).
>
> Question 1: how does the framework remember which
> checkboxes stay checked given that I have to recreate the
> table each time?
>
> Question 2: when a button is clicked I have to recreate
> the table first in Page_Load handler, second in the
> button's event handler. Is there any way to avoid that? I
> am having problems with this approach because on the next
> postback I try to get a list of selected checkboxes - and
> it's empty (even though I have several checked)
>
>
> Thank you very much
MS News \(MS LVP\) Guest
-
Marina #3
Re: controls question
I am talking about the DataList, not the DataGrid.
The DataList, as part of its template, might need another DataList, to
render the subrows.
You could write custom javascript to do this if necessary.
You might want to consider looking into a 3rd party grid that supports
hierarchical data.
"szabelin" <szabelin@szabelin> wrote in message
news:013701c35c42$53f0c1f0$a401280a@phx.gbl...>
> Hi Marina, I have tried DataGrid. I need to
> hide/expand/show subrows, so I thought I had more control
> drawing the Table myself.
>
> Do you have any suggestions for my questions?
>
> Thanks!
>
>
>> With a Datalist> >-----Original Message-----
> >Have you considered using a DataList or similar control?> of this.> >with viewstate enabled, you don't have to worry about any> the> >
> >"szabelin" <szabelin@szabelin> wrote in message
> >news:034e01c35c3f$3ed494c0$a301280a@phx.gbl...> >> Hello. In my control I dynamically create a Table with
> >> custom rows which include checkboxes.
> >>
> >> On each postback I have to recreate the table
> >> (unfortunately).
> >>
> >> Question 1: how does the framework remember which
> >> checkboxes stay checked given that I have to recreate> I> >> table each time?
> >>
> >> Question 2: when a button is clicked I have to recreate
> >> the table first in Page_Load handler, second in the
> >> button's event handler. Is there any way to avoid that?> next> >> am having problems with this approach because on the> and> >> postback I try to get a list of selected checkboxes -> >> >> it's empty (even though I have several checked)
> >>
> >>
> >> Thank you very much
> >
> >.
> >
Marina Guest



Reply With Quote

