all groups > asp.net datagrid control > august 2007 >
You're in the

asp.net datagrid control

group:

PostbackURL


PostbackURL Ross Culver
8/7/2007 1:48:02 PM
asp.net datagrid control:
Is there a way to assign a postbackURL to a gridview?

Ross

Re: PostbackURL Teemu Keiski
8/13/2007 10:20:24 PM
Hi,

do you mean that clicking the GridView should cause a cross-page postback to
another page? Strictly speaking and judging your question literally, yes,
but it would need that you implement IButtonControl interface (custom
control) OR you hassle with PostBackOptions class to make ASP.NEt Page
framework generate the proper call (set ActionUrl property of
PostBackOptions and then pass instance of PostBackOptions to
Page.ClientScript.GetPostBackEventReference to get the correct script)

However, I htink what you look for is how to make that happen by clicking a
Button on the row of GridView, right?


--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net



[quoted text, click to view]

AddThis Social Bookmark Button