I have a page: Site.aspx?SiteID=1
The page has Load event:
This loads the Grid with just records from the SiteID querystring.
The Grid has an EditForm which used to update correctly. I added the Querystring identifier and the UpdateCommand does not rebind with the new data from the database. Only after pressing F5 will I see the changes made via the EditForm/UpdateCommand.
Is there something I should be doing with the grid PreRender? I have looked :
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/programaticlinqupdates/defaultcs.aspx
And It does not help me in my scenario.
Any ideas or suggestions to pass QueryString variables to the SQL which in turn fills the grid BUT still works with an EditForm?
Thankyou!
The page has Load event:
If
Request.QueryString(
"SiteID"
) <>
""
Then
' Load based on SiteID
Dim
RequestedSiteID
As
String
= Request.QueryString(
"SiteID"
)
If
IsNumeric(RequestedSiteID)
Then
Dim
dbEntity
As
WebsiteEntities =
New
WebsiteEntities
Dim
query = (From PWPaperwork
In
dbEntity.PWPaperworks Where PWPaperwork.Site_ID = RequestedSiteID
Select
PWPaperwork)
PaperworkGrid.DataSource = query
End
If
Else
Response.Redirect(
"Sites.aspx"
)
End
If
This loads the Grid with just records from the SiteID querystring.
The Grid has an EditForm which used to update correctly. I added the Querystring identifier and the UpdateCommand does not rebind with the new data from the database. Only after pressing F5 will I see the changes made via the EditForm/UpdateCommand.
Is there something I should be doing with the grid PreRender? I have looked :
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/programaticlinqupdates/defaultcs.aspx
And It does not help me in my scenario.
Any ideas or suggestions to pass QueryString variables to the SQL which in turn fills the grid BUT still works with an EditForm?
Thankyou!