Click here to Skip to main content
15,879,535 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionloading user info after login from object Pin
liamderice12-Mar-09 9:37
liamderice12-Mar-09 9:37 
AnswerRe: loading user info after login from object Pin
Christian Graus12-Mar-09 10:04
protectorChristian Graus12-Mar-09 10:04 
GeneralRe: loading user info after login from object Pin
liamderice12-Mar-09 10:31
liamderice12-Mar-09 10:31 
GeneralRe: loading user info after login from object Pin
Jörgen Andersson12-Mar-09 12:11
professionalJörgen Andersson12-Mar-09 12:11 
GeneralRe: loading user info after login from object Pin
Christian Graus12-Mar-09 12:20
protectorChristian Graus12-Mar-09 12:20 
GeneralRe: loading user info after login from object Pin
liamderice13-Mar-09 3:42
liamderice13-Mar-09 3:42 
Questionin excel how to use mailmerge Pin
sivapran12-Mar-09 9:24
sivapran12-Mar-09 9:24 
QuestionRefresh of a seperate gridview in an ASP.NET page. Pin
shawty_ds12-Mar-09 6:53
shawty_ds12-Mar-09 6:53 
Hi All,

I've been grappling with this for a few days now, and am no further forward, here's the scenario:

I have a page that contains the following

linqDataSource : productListDS (Selects * from products table)
GridView : gridProductList (Data source is productListDS)
linqDataSource : productDetailDS (Selects * from products table where id == id)
DetailsView : detailsProduct (Data source is productDetailDS)

The gridview lists all the products in the data source, with paging and select button enabled, when the select command is clicked the details view is then updated to show all the fields of the selected product and has the 'Edit', 'Insert' and 'Delete' commands enabled.

The gridView ONLY shows 5 columns from it's data source (The AutoGenerateColumns option is false) and i'm constructing the colums manually in the columns tag. I have the DataKeys set to id, and when i click the select button everything works flawlessly.

My problem comes when i do an Insert/Delete/Update.

As an example if i add a new record by putting the details form into insert mode, fill in the fields and then click insert, it inserts the record into the underlying SQLServer database, but the gridview does not update.

I've tried doing a 'gridProductList.DataBind()' in the page load, and in the details view 'ItemInserted' event, and still no luck. If however i browse away from the page, and then back the gridView then displays the newly added products. Even pressing F5 to force an update does not work, in fact all that achieves is to resubmit the last insert and add another new record to the DB.

The linq Data SOurce is connected to a LInqToSql DBML class.

Does anyone have ANY ideas on how to force the Grid View to update and show the table changes made using the details view without having to browse away from the page and then browse back.

Cheers

Shawty
AnswerRe: Refresh of a seperate gridview in an ASP.NET page. Pin
Christian Graus12-Mar-09 9:35
protectorChristian Graus12-Mar-09 9:35 
GeneralRe: Refresh of a seperate gridview in an ASP.NET page. Pin
shawty_ds12-Mar-09 12:57
shawty_ds12-Mar-09 12:57 
GeneralRe: Refresh of a seperate gridview in an ASP.NET page. Pin
shawty_ds12-Mar-09 13:06
shawty_ds12-Mar-09 13:06 
Questionbyte[] to string Pin
M.Ambigai12-Mar-09 6:43
M.Ambigai12-Mar-09 6:43 
AnswerRe: byte[] to string Pin
shawty_ds12-Mar-09 6:57
shawty_ds12-Mar-09 6:57 
GeneralRe: byte[] to string Pin
M.Ambigai12-Mar-09 7:53
M.Ambigai12-Mar-09 7:53 
GeneralRe: byte[] to string Pin
shawty_ds12-Mar-09 8:53
shawty_ds12-Mar-09 8:53 
GeneralRe: byte[] to string Pin
M.Ambigai12-Mar-09 15:54
M.Ambigai12-Mar-09 15:54 
GeneralRe: byte[] to string Pin
shawty_ds13-Mar-09 5:35
shawty_ds13-Mar-09 5:35 
AnswerRe: byte[] to string Pin
Yusuf12-Mar-09 8:53
Yusuf12-Mar-09 8:53 
QuestionCould not able to open asp.net website application Pin
nuthan anand12-Mar-09 6:14
nuthan anand12-Mar-09 6:14 
AnswerRe: Could not able to open asp.net website application Pin
Abhijit Jana12-Mar-09 6:21
professionalAbhijit Jana12-Mar-09 6:21 
AnswerRe: Could not able to open asp.net website application Pin
johnsontroye12-Mar-09 13:47
johnsontroye12-Mar-09 13:47 
Questionadapter update using stored procedure Pin
member2712-Mar-09 5:19
member2712-Mar-09 5:19 
AnswerRe: adapter update using stored procedure Pin
fred_12-Mar-09 7:54
fred_12-Mar-09 7:54 
QuestionWebsite not working with Oracle 10g and IIS 7 Pin
Khaldris12-Mar-09 4:45
Khaldris12-Mar-09 4:45 
AnswerRe: Website not working with Oracle 10g and IIS 7 Pin
Abhijit Jana12-Mar-09 5:04
professionalAbhijit Jana12-Mar-09 5:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.