<asp:GridView ID="GridView1" runat="server"
DataSourceID="SqlDataSource1"
AutoGenerateColumns="false">
<Columns>
<asp:BoundField ShowHeader="true" DataField="ID"
HeaderText="ID" />
<asp:TemplateField HeaderText="Name">
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Text='<%# CheckNull(Eval("Name")) %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Location">
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Text='<%# CheckNull(Eval("Location")) %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
--------------------------------------------------------------------------
.CS PAGE
protected string CheckNull(object objGrid)
{
if (object.ReferenceEquals(objGrid, DBNull.Value))
{
return "No Record Found";
}
else
{
return objGrid.ToString();
}
}
http://www.questpond.com/
ReplyDeletehttp://www.dotnetobject.com/expage.php?exurl=http://simasc.com/attachments/046_SampleInterviewQuestionBook%281%29.pdf
ReplyDeletehttp://www.kau.edu.sa/Files/830/Files/55533_C_Sharp_Programming.pdf
ReplyDeletehttp://stackoverflow.com/questions/8473671/mvc3-validation-check-if-property-values-differ
ReplyDeletehttp://stackoverflow.com/questions/10586007/how-to-add-maxlength-for-textareafor-in-view-using-razor-engine
ReplyDeletehttp://miroprocessordev.blogspot.in/2012/04/generic-checkboxlist-in-aspnet-mvc-3.html
ReplyDeletehttp://azadehkhojandi.blogspot.in/2011/07/when-you-have-list-of-enum-in-your.html
ReplyDeletehttp://avidyarthi.blogspot.in
ReplyDeletehttp://blog.weareon.net
ReplyDeletehttp://www.aboutonlinetips.com/how-to-split-csv-file/
ReplyDeletehttp://www.dotnet-tricks.com/Tutorial/mvc/9KHW190712-ViewData-vs-ViewBag-vs-TempData-objects-in-mvc3-razor.html
ReplyDeletehttp://msdn.microsoft.com/en-us/library/gg508808%28v=vs.98%29.aspx
ReplyDeletehttp://www.codeproject.com/Articles/260177/Custom-Validation-Attribute-in-ASP-NET-MVC3
ReplyDeletehttp://www.upscaleandposh.com/products/A-Love-Dynamic-Duo.html
ReplyDeletehttp://www.smartdigitizers.com/general/reading-data-from-excel-by-using-sql-statements-odbc/
ReplyDeletehttp://www.mssqltips.com/sqlservertip/1540/insert-update-or-delete-data-in-sql-server-from-excel/
public ActionResult Index()
ReplyDelete{
ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";
return View();
}
public ActionResult About()
{
ViewBag.Message = "Your app description page.";
return View();
}
public ActionResult Contact()
{
ViewBag.Message = "Your contact page.";
return View();
}