Ask a Question related to ASP.NET General, Design and Development.
-
Steve C. Orr, MCSD #1
Re: lost all of data after postback....
Since the rows are added manually at runtime, you must keep track of the
rows and add them back again each postback.
You might use a DataSet to help with this.
Viewstate is also a useful tool for such things.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Jongmin" <aplaxas@hotmail.com> wrote in message
news:046f01c34b20$7dee1ee0$a401280a@phx.gbl...>
> Hi !!!
>
> I have three WebControls.
> Button:cmdA, Button:cmdB, Table:tblSummary
>
> I made tblSummary[System.Web.UI.WebControls.Table] in
> design time, which has no row.
>
> And cmdA modifies the tblSummary, specially adding rows.
> private void cmdA_Click()
> {
> // adds some rows in tblSummary
> ...
> tblSummary.Rows.Add(rowBody);
> }
>
> problem takes place when cmdB causes postpack.
> Even thouhg the cmdB has no code and causes just postback,
> after postback, tblSummary is cleared....
>
> How to keep the tblSummary from being cleared after
> postback.
>
> Thanks,
> Jongmin
>
>
>
>
>
>
>
Steve C. Orr, MCSD Guest
-
#38921 [NEW]: pdo lost the first row data:with firebird blob data
From: achun dot shx at gmail dot com Operating system: windows PHP version: 5.1.6 PHP Bug Type: InterBase related Bug... -
Dynamically added controls are lost on a Postback
Hi, i created a custom control overriden from HierarchicalDataBoundControl. In method PerformDataBinding I add some controls (Controls.Add(new... -
UserControl values lost on PostBack
Hi all, I have a very simple user control that contains 3 drop downs. Whenever there's a postback the values of these drop downs are lost. I've... -
Dynamic control state changes lost on Postback
I have been developing a set of custom controls that include several dynamically generated controls inside them (for example, 'SupportTextBox'... -
textbox value lost upon postback
Hi All, I have a server runnable textbox control. I also have a server side button object but I hook up javascript to it to show a modal dialog.... -
jongmin #2
Re: lost all of data after postback....
I used a dataset to solve this problem.
Thanks,
keep track of the>-----Original Message-----
>Since the rows are added manually at runtime, you mustpostback,>rows and add them back again each postback.
>You might use a DataSet to help with this.
>Viewstate is also a useful tool for such things.
>
>--
>I hope this helps,
>Steve C. Orr, MCSD
>[url]http://Steve.Orr.net[/url]
>
>
>"Jongmin" <aplaxas@hotmail.com> wrote in message
>news:046f01c34b20$7dee1ee0$a401280a@phx.gbl...>>
>> Hi !!!
>>
>> I have three WebControls.
>> Button:cmdA, Button:cmdB, Table:tblSummary
>>
>> I made tblSummary[System.Web.UI.WebControls.Table] in
>> design time, which has no row.
>>
>> And cmdA modifies the tblSummary, specially adding rows.
>> private void cmdA_Click()
>> {
>> // adds some rows in tblSummary
>> ...
>> tblSummary.Rows.Add(rowBody);
>> }
>>
>> problem takes place when cmdB causes postpack.
>> Even thouhg the cmdB has no code and causes just>>> after postback, tblSummary is cleared....
>>
>> How to keep the tblSummary from being cleared after
>> postback.
>>
>> Thanks,
>> Jongmin
>>
>>
>>
>>
>>
>>
>>
>
>.
>jongmin Guest



Reply With Quote

