Hi Pravin,
From your description, you have an ASP.NET 1.1 page that display some
database record through DataGrid control, and you'll use a popup page to
add new record or editing existing record. Currently, you're wondering how
to make the added or changed record info passed to the parent page so as to
update the DataGrid, correct?
According to this issue, here are some of my understanding:
First, when adding new row or editing exist row, if you want to get the
updated/inserted new values, you should get the primarykey identity of the
certain record so that you can perform query to get the updated value
later. For editing row, this should not be a problem. For new inserted
record, the DBMS engine should provide statement for retrieving new
inserted record's identity(such as the @@Identity of SQL Server) or you can
manually control the PK of table record.
Here is a former thread discussing on retrieve new inserted
value(sqlserver)'s auto generated identity:
#Retrieving Identity Values after DetailsView Insert More options
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/brow
se_thread/thread/8a228fb82461ec04/60bc5c390c0542b2
Second, after you get the updated value, how would you like to update the
main DataGrid's displayed data? ASP.NET template databound controls
populate data(rows) through databinding. Therefore, if you want to update
DataGrid's UI, the expected ways is to redo the databinding on DataGrid to
the new datasource. Do you think this is what you want?
In addition, for AJAX, so far ASP.NET 1.1 hasn't provide sufficient
built-in support on it. Do you think postback the page to updating the
DataGrid is acceptable?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.