Do you wanna finish these tasks by javascript instead of coding behind in cs files?
If really, I think you can just use something like WebService or WCF to write down your logic data contents codes, and then call them to interchange with db's tables, and your Html page's jQuery or js should use something like Async to call them, and when
successfully, do what you want or when in failure, do what you wanna do……
tonywong
Member
3 Points
11 Posts
Gridview by html (not by code)
Dec 03, 2012 08:19 AM|LINK
i want the gridview (even no record) to have footer which link with "Insert command" and "javascript"
so i wish to add "a blank row" to the datasource or gridview
if i work on sqldatasource (select event - e.affectrows > 0) to check, and then rebind a new datatable
it says on "changes cannot be made in the stage (sqldatabase, datatable, datamember....
it seems sqldatasource is locked in all the sqldatasourceevents.
if i work on gridview to add a blank row, the gridview still have no footer because of empty template
i do not wish to rebuild 2nd set of command buttons and javascripts.
How should i do? thanks a lot.
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Gridview by html (not by code)
Dec 04, 2012 01:47 AM|LINK
Do you wanna finish these tasks by javascript instead of coding behind in cs files?
If really, I think you can just use something like WebService or WCF to write down your logic data contents codes, and then call them to interchange with db's tables, and your Html page's jQuery or js should use something like Async to call them, and when successfully, do what you want or when in failure, do what you wanna do……
tonywong
Member
3 Points
11 Posts
Re: Gridview by html (not by code)
Dec 06, 2012 09:15 AM|LINK
Thanks a lot for sugguestions.
Not sure my way is good
finally i use sqldatasource init event to query sql server for null result first before binding datasource to the gridview
but there would be 2 queries to database server, not 1.
</div>Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Gridview by html (not by code)
Dec 07, 2012 12:10 AM|LINK
Hello,
I come here to check whether the problem is solved or not.
As far as I see, it's hard to cope with that at pure client side because you should interface with the db on the server.