hi all,
I got the razor syntax in Web,
@grid.GetHtml(
tableStyle : "table",
alternatingRowStyle : "alternate",
selectedRowStyle: "selected",
headerStyle : "header",
columns : grid.Columns(
grid.Column("",
style: "col1",
format: @<text>
<button class="edit-book display-mode" id="@item.BookId">Edit</button>
<button class="save-book edit-mode" id="@item.BookId">Save</button>
),
grid.Column("Title",
style: "col2",
format: @<text>
@item.Title
@Html.TextBox("Title", item.Title, new {@class="edit-mode", size = 45})
),
grid.Column("AuthorName",
header : "Author",
style: "col3",
format: @<text>
@item.AuthorName
@Html.DropDownList("AuthorId", null, authors, item.AuthorId, new {@class="edit-mode"})
),
grid.Column("Category",
style: "col4",
format: @<text>
@item.Category
@Html.DropDownList("CategoryId", null, categories, item.CategoryId, new {@class="edit-mode"})
),
grid.Column("ISBN",
style: "col5",
format: @<text>
@item.ISBN
@Html.TextBox("ISBN", item.ISBN, new {@class="edit-mode", size = 20})
)
)
)
I need these code as a aspx code ,help me
Regards,
Velsamy A