This question is locked. New answers and comments are not allowed.
When i run this code:
I get an error vs shows as asset.axd file on this line:
it gives me this error :
Microsoft JScript runtime error: Expected ';'
Not sure what I need to do to fix this, Please Help
<% Html.Telerik().Grid<BuyOffersTable>() .BindTo(Model) .DataKeys(datakeys => datakeys.Add(c => c.BuyOfferGUID)) .DataBinding(dataBinding => dataBinding.Ajax().Select("_BuyOffersTablesBinding", "BuyLetters")) .Name("BuyOffersTable") .Columns(columns => { columns.Bound(o => o.BuyOfferGUID).Hidden(true); columns.Bound(o => o.BuyOfferGUID).ClientTemplate("<a href='" + Url.Action("BuyLetters") + "/<# BuyOfferGUID #>Select</a>") .Template(o => { %><%=Html.ActionLink("B"+o.BuyOfferNumer, "BuyLetters", new { id = o.BuyOfferGUID })%><% }).Title(""); columns.Bound(o => o.BuyOfferNumer).ClientTemplate("B<# BuyOfferNumer #>").Template(o => { %>B<%=o.BuyOfferNumer%><% }).Title("Offer #"); columns.Bound(o => o.Createdate).Title("Created"); columns.Bound(o => o.FirstName).Title("First Name"); columns.Bound(o => o.LastName).Title("Last Name"); }) .Sortable() .Scrollable() .Pageable() .Render();%>I get an error vs shows as asset.axd file on this line:
return new Function("data",("var p=[];with(data){p.push('"+unescape(l).replace(/[\r\t\n]/g," ").replace(/'(?=[^#]*#>)/g,"\t").split("'").join("\\'").split("\t").join("'").replace(/<#=(.+?)#>/g,"',$1,'").split("<#").join("');").split("#>").join("p.push('")+"');}return p.join('');"))it gives me this error :
Microsoft JScript runtime error: Expected ';'
Not sure what I need to do to fix this, Please Help