Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Comments
F-ES Sitecore 4-Sep-15 10:31am    
webforms aspx or mvc aspx?
avelsamy 7-Sep-15 0:38am    
Dear F-ES,
Sorry for the delay, i am asking about MVC aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900