PNRT
asked on
ASP.Net, MVC, Razor, Button in Webgrid not firing
Hi Experts
ASP.Net, MVC, Razor, Webmatrix
I have a button in a webgrid and need to get the page and line when the button is clicked.
I get it with the text option below but it doesn't work with the button.
This works
grid.Column("", format:=@@<text>@item.GetS electLink( "View")</t ext>),
@if (grid.HasSelection)
Dim abc As WebMatrix.Data.DynamicReco rd
abc = grid.rows(grid.selectedind ex).value
aa = abc("id")
@RenderPage("~/updateprodu ct.vbhtml" ,aa)
This doesn't work
grid.Column("", format:=@@<button>@item.Ge tSelectLin k("View Order")</button>),
@if (grid.HasSelection)
Dim abc As WebMatrix.Data.DynamicReco rd
abc = grid.rows(grid.selectedind ex).value
aa = abc("id")
@RenderPage("~/updateprodu ct.vbhtml" ,aa)
Many Thanks
ASP.Net, MVC, Razor, Webmatrix
I have a button in a webgrid and need to get the page and line when the button is clicked.
I get it with the text option below but it doesn't work with the button.
This works
grid.Column("", format:=@@<text>@item.GetS
@if (grid.HasSelection)
Dim abc As WebMatrix.Data.DynamicReco
abc = grid.rows(grid.selectedind
aa = abc("id")
@RenderPage("~/updateprodu
This doesn't work
grid.Column("", format:=@@<button>@item.Ge
@if (grid.HasSelection)
Dim abc As WebMatrix.Data.DynamicReco
abc = grid.rows(grid.selectedind
aa = abc("id")
@RenderPage("~/updateprodu
Many Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.