Gridview's cell values and PageMethods
-
Hi all, I am newbie in web development. I am using vs 2005, ASP.NET with c#.Currently i am using UpdatePanel(AJAX) to update textbox value from gridview by adding a commandfield(SELECT) the DataKeyNames(values to be pass when event selectIndexChanged fired) in gridview. But it seem very slow in displaying/updating textbox. So,may i know is a possible to do it by using PageMethods?If yes, please direct me to the correct way :(( Any tips/helps are welcome, Thanks in advance. Regards cocoonwls
-
Hi all, I am newbie in web development. I am using vs 2005, ASP.NET with c#.Currently i am using UpdatePanel(AJAX) to update textbox value from gridview by adding a commandfield(SELECT) the DataKeyNames(values to be pass when event selectIndexChanged fired) in gridview. But it seem very slow in displaying/updating textbox. So,may i know is a possible to do it by using PageMethods?If yes, please direct me to the correct way :(( Any tips/helps are welcome, Thanks in advance. Regards cocoonwls
cocoonwls wrote:
But it seem very slow in displaying/updating textbox.
Moving to PageMethods won't change the performance drastically. At the first first place, you need to know which action is so much taking time. As far as I think you need to optimise you SQL statement.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
cocoonwls wrote:
But it seem very slow in displaying/updating textbox.
Moving to PageMethods won't change the performance drastically. At the first first place, you need to know which action is so much taking time. As far as I think you need to optimise you SQL statement.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
Hi Manas Bhardwaj, Thanks for reply.I think my SQL is not a problem here. I had tried not to use updatepanel to update textbox, its looked fast than used updatepanel. My purpose to use updatepanel is aim to update certain data without refresh whole page.
Manas Bhardwaj wrote:
Moving to PageMethods won't change the performance drastically.
I had read other resource that if using page methods will improve the performance instead of using updatepanel.Any comment/suggestion? Thanks in advance regards cocoonwls
-
Hi Manas Bhardwaj, Thanks for reply.I think my SQL is not a problem here. I had tried not to use updatepanel to update textbox, its looked fast than used updatepanel. My purpose to use updatepanel is aim to update certain data without refresh whole page.
Manas Bhardwaj wrote:
Moving to PageMethods won't change the performance drastically.
I had read other resource that if using page methods will improve the performance instead of using updatepanel.Any comment/suggestion? Thanks in advance regards cocoonwls
-
Create a web service to process the business logic and call it in javascript. But you can update the textbox in javascript based on the returned content from webservice.
-
Hi,Ramesh Is there a good example?And is possible to use it to pass a row data and display in textbox? thanks in advance regards cocoonwls
Yes. you can pass any datatype supported in javascript to the web service. Look into the following links: Remote scripting - Calling a WebService with JavaScript and C#[^] http://www.codeguru.com/vb/vb_internet/webservices/article.php/c7781[^]