Click here to Skip to main content
15,903,385 members

Comments by yeshgowda (Top 33 by date)

yeshgowda 7-Nov-13 5:52am View    
hi pradipta,
i used the code as u suggested but give a "Microsoft JScript runtime error: Object expected" at $(currControl) line
here is my view
@model List<mvcapplication1.models.favouritegivenname>

<!DOCTYPE html>

<html>
<head>
<title>Index</title>
<script language="javascript">
function submitForm(currControl) {
$(currControl).closest('form').submit();
}
</script>
<style type="text/css">
.webGrid { margin: 4px; border-collapse: collapse; width: 300px; }
.header { background-color: #E8E8E8; font-weight: bold; color: #FFF; }
.webGrid th, .webGrid td { border: 1px solid #C0C0C0; padding: 5px; }
.alt { background-color: #E8E8E8; color: #000; }
.person { width: 200px; font-weight:bold;}
</style>
</head>
<body>
@using (Html.BeginForm("Assign","Home"))
{
var grid = new WebGrid(Model, canPage: true, rowsPerPage: 2);
grid.Pager(WebGridPagerModes.NextPrevious);
@grid.GetHtml(tableStyle: "webGrid",
htmlAttributes: new { id = "DataTable" },
headerStyle: "header",
alternatingRowStyle: "alt",
columns: grid.Columns(
grid.Column("Name"),
grid.Column(header: "Assign?", format: @<input class="check-box" id="assignChkBx" name="assignChkBx" type="checkbox" value="@item.Id" önclick="submitForm(this)"/>)

));
}
</body>
</html>

what mistake i done ?
yeshgowda 8-Oct-13 5:27am View    
Hi checked those links but none explained how to use packaged zip generated from visual studio 2010 in iis5.1.

Iam asking in visual studio .zip it creates under obj /debug is this is a physical path ?How to point this through IIS 5.1 as it doesnt support import application
yeshgowda 20-Jun-13 7:51am View    
no i got it !!!! Thanks u so much
yeshgowda 20-Jun-13 7:16am View    
ok then i need to check whether string contains null character
yeshgowda 20-Jun-13 4:36am View    
yes correct without typecasting also it works.but my question is i have to check a null byte in any of encoding formats? how to perform that