Hi i m using GridView with hovermenu and i want that when we click on edit button then we get TextBox to write in Gridview and also i get error when click on edit for e.commandArgument is null so please give me code for this both
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
- How to dynamically load partial view Via jquery aj
相关文章
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- “Dynamic operations can only be performed in homog
- What is the best way to create a lock from a web a
- Add to htmlAttributes for custom ActionLink helper
I ran across your post while searching for a way to get the current row in a gridview rowcommand event.
I also ran across this link and thought I'd share: http://ranafaisal.wordpress.com/2008/03/31/how-to-get-the-current-row-in-gridview-row-command-event/
This solved my problem and seems very clean.
Give your edit button command name like this,
and in
RowCommand
event of ur gridviewAny how its really difficult to tell what you are doing wrong without seeing your code..
EDIT:
i think you need to set
CommandArgument='<%# Container.DataItemIndex %>'
in your edit button...