ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.What is the execution order of Filters in ASP.NET MVC 5<p>Hai,</p> <p>There are five types of filters in MVC 5.</p> <p>What is the execution order of these Filters? and</p> <p>Can you give me the clear explanation about these filters?</p> <p>Thanks in advance.</p>http://www.aspforums.net/Threads/944349/What-is-the-execution-order-of-Filters-in-ASPNET-MVC-5/http://www.aspforums.net/Threads/944349/What-is-the-execution-order-of-Filters-in-ASPNET-MVC-5/Thu, 09 Feb 2017 01:44:43 GMTWhat is the difference between ViewData ViewBag and TempData in ASP.Net MVC<p>What is the difference between ViewData, ViewBag and TempData?</p>http://www.aspforums.net/Threads/214089/What-is-the-difference-between-ViewData-ViewBag-and-TempData-in-ASPNet-MVC/http://www.aspforums.net/Threads/214089/What-is-the-difference-between-ViewData-ViewBag-and-TempData-in-ASPNet-MVC/Thu, 22 Sep 2016 01:52:46 GMTWhat is the difference between ASP.Net and MVC<p>Hi! What is the difference between asp.net and mvc. Actually I want to learn asp mvc but I do not know if it has more advantages than asp.net (webform) or not ? Thnk you</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/195155/What-is-the-difference-between-ASPNet-and-MVC/http://www.aspforums.net/Threads/195155/What-is-the-difference-between-ASPNet-and-MVC/Wed, 03 Aug 2016 02:51:09 GMTWhat is MVC<p>what is &nbsp;MVC .Why we use MVC.</p> <p>&nbsp;</p> <p>how to use MVC...</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/154551/What-is-MVC/http://www.aspforums.net/Threads/154551/What-is-MVC/Tue, 08 Jul 2014 05:24:40 GMTWhat is ASP.Net MVC<p>I want to know what is called ASP.NET MVC</p>http://www.aspforums.net/Threads/114135/What-is-ASPNet-MVC/http://www.aspforums.net/Threads/114135/What-is-ASPNet-MVC/Sat, 22 Sep 2012 10:20:34 GMTWeb services in mvc<p>Hi,</p> <p>I had done web services successfully in my mvc project.But i don't know how to set access permission for this web service?</p> <p>Thank you.</p>http://www.aspforums.net/Threads/619143/Web-services-in-mvc/http://www.aspforums.net/Threads/619143/Web-services-in-mvc/Wed, 07 May 2014 03:22:30 GMTValidate DropDownList using Client Side and Server Side Validation in ASP.Net MVC<p>Hi I am new to Asp.Net MVC&nbsp;</p> <p>How to create a page like this and Validation using both on server side and Client side.</p> <p>And how The dropdown can be retrieved from DB and Similarly how to get all the radio buttons values from the DB.</p> <p>Afteer Entering the details how to store it in the DB.<br />Kindly help on it...</p> <p><img src="http://i1240.photobucket.com/albums/gg496/vigneshva/1_zps1381f609.jpg" alt="" width="471" height="316" /></p>http://www.aspforums.net/Threads/456769/Validate-DropDownList-using-Client-Side-and-Server-Side-Validation-in-ASPNet-MVC/http://www.aspforums.net/Threads/456769/Validate-DropDownList-using-Client-Side-and-Server-Side-Validation-in-ASPNet-MVC/Fri, 03 Oct 2014 04:27:03 GMTValidate DropDownList in ASP.Net MVC<p>hi,</p> <p>I'm filling my dropdown using viewbag like as under</p> <pre class="brush: csharp">@Html.DropDownList(&#34;ArticleType&#34;, null, &#34;select&#34;, new { @class = &#34;ddl&#34; }) @Html.ValidationMessageFor(model =&gt; model.ArticleType) [Required(ErrorMessage = &#34;Please enter article category&#34;)] [DisplayName(&#34;Category&#34;)] public string ArticleType { get; set; }</pre> <p>But i'm unable to get required feild error message.Is i'm going wrong?</p> <p>Thank you.</p>http://www.aspforums.net/Threads/198849/Validate-DropDownList-in-ASPNet-MVC/http://www.aspforums.net/Threads/198849/Validate-DropDownList-in-ASPNet-MVC/Wed, 02 Apr 2014 23:44:42 GMTUsing TinyMCE RichTextEditor in ASP.Net MVC Framework<p>hi mudassar,</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;am trying to add rich text box in my application using mvc4(razor).&nbsp;it working fine in IE browser . but &nbsp;in firefox and chrome &nbsp;the rich text box is not displaying in place of test box it displaying empty space. could u tell me the how to slove the problem</p> <p>&nbsp;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p>http://www.aspforums.net/Threads/529762/Using-TinyMCE-RichTextEditor-in-ASPNet-MVC-Framework/http://www.aspforums.net/Threads/529762/Using-TinyMCE-RichTextEditor-in-ASPNet-MVC-Framework/Fri, 11 Jan 2013 00:14:33 GMTUser Registration and login with phone number instead email address in ASP.Net MVC 4 Razor<p>How to do registration based on phone number and sign in with phone number ,upto now i did using with email id now i need to change the functionality ,like face book i have to register with phone number then i need send confirmation code to email after i need to sign in based on phone number how to do this in mvc4 razor?</p>http://www.aspforums.net/Threads/105407/User-Registration-and-login-with-phone-number-instead-email-address-in-ASPNet-MVC-4-Razor/http://www.aspforums.net/Threads/105407/User-Registration-and-login-with-phone-number-instead-email-address-in-ASPNet-MVC-4-Razor/Thu, 05 Sep 2013 04:57:59 GMTUse WebGrid control or standard Table in ASP.Net MVC<p>Hi Experts,</p> <p>Can u pls tell me whether it is good to use table or webgrid control to display the list of details in MVC application.. pls provide ur golden answers.. i am waiting..</p> <p>Thanks</p>http://www.aspforums.net/Threads/916381/Use-WebGrid-control-or-standard-Table-in-ASPNet-MVC/http://www.aspforums.net/Threads/916381/Use-WebGrid-control-or-standard-Table-in-ASPNet-MVC/Thu, 29 Aug 2013 07:16:08 GMTThe model item passed into the dictionary is of type xxx but this dictionary requires a model item of type yyy.<p>I am developing a Blog application wherein users can post mutliple posts for a blog using model first approach in MVC3.</p> <p>I have created a blog with Edit, Details, Delete and Posts for Post feature I am trying to post to a blog, however I'm facing a challenge in doing so. Getting the below error when I click on Post.</p> <p>"The model item passed into the dictionary is of type 'System.Data.Entity.DynamicProxies.Post_B87C75979DC030A3A554DA135032EB32E63C7DCD0D5CC9E499F8BD62FCF57923', but this dictionary requires a model item of type 'App.Models.Blog'."</p> <p>&nbsp;</p> <pre class="brush: csharp">//PostController public class PostController : Controller { WWAppModelContainer db = new WWAppModelContainer(); public ActionResult Index([Bind(Prefix = &#34;id&#34;)] int BlogId) //[Bind(Prefix = &#34;id&#34;)] int BlogId { var blog = db.Posts.Find(BlogId); return View(blog); } protected override void Dispose(bool disposing) { db.Dispose(); base.Dispose(disposing); } }</pre> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp">//BlogController public class BlogController : Controller { private WWAppModelContainer db = new WWAppModelContainer(); // // GET: /Blog/ public ActionResult Index() { return View(db.Blogs.ToList()); } // // GET: /Blog/Details/5 public ViewResult Details(int id) { Blog blog = db.Blogs.Find(id); if (blog == null) { return View(&#34;Not found&#34;); //return HttpNotFound(); } return View(blog); } // // GET: /Blog/Create public ActionResult Create() { return View(); } // // POST: /Blog/Create [HttpPost] public ActionResult Create(Blog blog) { if (ModelState.IsValid) { db.Blogs.Add(blog); db.SaveChanges(); return RedirectToAction(&#34;Index&#34;); } return View(blog); } // // GET: /Blog/Edit/5 public ActionResult Edit(int id) { Blog blog = db.Blogs.Find(id); return View(blog); } // // POST: /Blog/Edit/5 [HttpPost] public ActionResult Edit(Blog blog) { if (ModelState.IsValid) { db.Entry(blog).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction(&#34;Index&#34;); } return View(blog); } // // GET: /Blog/Delete/5 public ActionResult Delete(int id) { Blog blog = db.Blogs.Find(id); return View(blog); } // // POST: /Blog/Delete/5 [HttpPost, ActionName(&#34;Delete&#34;)] public ActionResult DeleteConfirmed(int id) { Blog blog = db.Blogs.Find(id); db.Blogs.Remove(blog); db.SaveChanges(); return RedirectToAction(&#34;Index&#34;); } protected override void Dispose(bool disposing) { db.Dispose(); base.Dispose(disposing); } }</pre> <p>&nbsp;</p> <pre class="brush: xml">//Blog --&gt;Index.cshtml @model IEnumerable&lt;App.Models.Blog&gt; @{ ViewBag.Title = &#34;Index&#34;; } &lt;h2&gt; Index&lt;/h2&gt; &lt;p&gt; @Html.ActionLink(&#34;Create New&#34;, &#34;Create&#34;) &lt;/p&gt; &lt;table&gt; &lt;tr&gt; &lt;th&gt; Title &lt;/th&gt; &lt;th&gt; BloggerName &lt;/th&gt; &lt;th&gt; &lt;/th&gt; &lt;/tr&gt; @foreach (var item in Model) { &lt;tr&gt; &lt;td&gt; @Html.DisplayFor(modelItem =&gt; item.Title) &lt;/td&gt; &lt;td&gt; @Html.DisplayFor(modelItem =&gt; item.BloggerName) &lt;/td&gt; &lt;td&gt; @Html.ActionLink(&#34;Edit&#34;, &#34;Edit&#34;, new { id = item.Id }) | @Html.ActionLink(&#34;Details&#34;, &#34;Details&#34;, new { id = item.Id }) | @Html.ActionLink(&#34;Post&#34;, &#34;Index&#34;, &#34;Post&#34;, new { id = item.Id }, null) | @Html.ActionLink(&#34;Delete&#34;, &#34;Delete&#34;, new { id = item.Id }) &lt;/td&gt; &lt;/tr&gt; } &lt;/table&gt;</pre> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: xml">//Post --&gt;Index.chtml @model App.Models.Blog @{ ViewBag.Title = &#34;Index&#34;; } &lt;h2&gt;Posts for @Model.Posts&lt;/h2&gt; @Html.Partial(&#34;_Posts&#34;,@Model.Posts) &lt;p&gt; @Html.ActionLink(&#34;Create New&#34;, &#34;Create&#34;) &lt;/p&gt;</pre> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: xml">//Post--&gt;_Posts.cshtml @model IEnumerable&lt;App.Models.Post&gt; &lt;table&gt; &lt;tr&gt; &lt;th&gt; @Html.DisplayNameFor(model =&gt; model.Title) &lt;/th&gt; &lt;th&gt; @Html.DisplayNameFor(model =&gt; model.DateCreated) &lt;/th&gt; &lt;th&gt; @Html.DisplayNameFor(model =&gt; model.Content) &lt;/th&gt; &lt;th&gt; @Html.DisplayNameFor(model =&gt; model.Title) &lt;/th&gt; &lt;th&gt; &lt;/th&gt; &lt;/tr&gt; @foreach (var item in Model) { &lt;tr&gt; &lt;td&gt; @Html.DisplayFor(modelItem =&gt; item.Title) &lt;/td&gt; &lt;td&gt; @Html.DisplayFor(modelItem =&gt; item.DateCreated) &lt;/td&gt; &lt;td&gt; @Html.DisplayFor(modelItem =&gt; item.Content) &lt;/td&gt; &lt;td&gt; @Html.DisplayFor(modelItem =&gt; item.Blog.Title) &lt;/td&gt; &lt;td&gt; @Html.ActionLink(&#34;Edit&#34;, &#34;Edit&#34;, new { id = item.Id }) | @* @Html.ActionLink(&#34;Details&#34;, &#34;Details&#34;, new { id = item.Id }) | @Html.ActionLink(&#34;Delete&#34;, &#34;Delete&#34;, new { id = item.Id })*@ &lt;/td&gt; &lt;/tr&gt; } &lt;/table&gt; </pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/161973/The-model-item-passed-into-the-dictionary-is-of-type-xxx-but-this-dictionary-requires-a-model-item-of-type-yyy/http://www.aspforums.net/Threads/161973/The-model-item-passed-into-the-dictionary-is-of-type-xxx-but-this-dictionary-requires-a-model-item-of-type-yyy/Mon, 05 Aug 2013 01:34:09 GMTuse mvc for checked chekbox record insert<p>when i click on button below the grid then selected checkbox&nbsp; records in grid&nbsp; inserted in database</p> <p>using edmx and mvc2</p> <pre class="brush: xml">&lt;%@ Page Title=&#34;&#34; Language=&#34;C#&#34; MasterPageFile=&#34;~/Views/Shared/Site.Master&#34; Inherits=&#34;System.Web.Mvc.ViewPage&lt;IEnumerable&lt;MvcApplication1.Models.Employee&gt;&gt;&#34; %&gt; &lt;asp:Content ID=&#34;Content1&#34; ContentPlaceHolderID=&#34;TitleContent&#34; runat=&#34;server&#34;&gt; Index &lt;/asp:Content&gt; &lt;asp:Content ID=&#34;Content2&#34; ContentPlaceHolderID=&#34;MainContent&#34; runat=&#34;server&#34;&gt; &lt;h2&gt; Index&lt;/h2&gt; &lt;table&gt; &lt;tr&gt; &lt;th&gt; &lt;/th&gt; &lt;th&gt; FirstName &lt;/th&gt; &lt;th&gt; LastName &lt;/th&gt; &lt;th&gt; ID &lt;/th&gt; &lt;th&gt; Designation &lt;/th&gt; &lt;th&gt; cheked &lt;/th&gt; &lt;/tr&gt; &lt;% foreach (var item in Model) { %&gt; &lt;tr&gt; &lt;td&gt; &lt;%: Html.ActionLink(&#34;Edit&#34;, &#34;Edit&#34;, new { id=item.ID }) %&gt; | &lt;%: Html.ActionLink(&#34;Details&#34;, &#34;Details&#34;, new { id=item.ID })%&gt; | &lt;%: Html.ActionLink(&#34;Delete&#34;, &#34;Delete&#34;, new { id=item.ID })%&gt; &lt;/td&gt; &lt;td&gt; &lt;%: item.FirstName %&gt; &lt;/td&gt; &lt;td&gt; &lt;%: item.LastName %&gt; &lt;/td&gt; &lt;td&gt; &lt;%: item.ID %&gt; &lt;/td&gt; &lt;td&gt; &lt;%: item.Designation %&gt; &lt;/td&gt; &lt;td&gt; &lt;input type=&#34;checkbox&#34; name=&#34;ContentTypeFilter&#34; value=&#34;@rowContent[0]&#34; /&gt; &lt;%: Html.CheckBox(&#34;Check&#34;,false,new {id=item.ID}) %&gt; &lt;/td&gt; &lt;/tr&gt; &lt;% } %&gt; &lt;/table&gt; &lt;p&gt; &lt;input type=&#34;submit&#34; name=&#34;submit&#34; value=&#34;submit&#34; /&gt; &lt;/p&gt; &lt;p&gt; &lt;%: Html.ActionLink(&#34;Create New&#34;, &#34;Create&#34;) %&gt; &lt;/p&gt; &lt;/asp:Content&gt; </pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/208480/use-mvc-for-checked-chekbox-record-insert/http://www.aspforums.net/Threads/208480/use-mvc-for-checked-chekbox-record-insert/Tue, 14 Jan 2014 03:04:01 GMTUse HTML Editor in ASP.Net MVC<p>I want html editor in asp.net view page,I dont kno how to implement..</p> <p>&nbsp;</p> <p>Please tell stepwise and all the plugins that will be required</p> <p>&nbsp;</p> <p>Thanks in advance</p>http://www.aspforums.net/Threads/484068/Use-HTML-Editor-in-ASPNet-MVC/http://www.aspforums.net/Threads/484068/Use-HTML-Editor-in-ASPNet-MVC/Mon, 13 Jul 2015 05:34:57 GMTUrl Routing not working in ASP.Net MVC 3 Razor<p>&nbsp;</p> <p><strong>when i use route link @html.routelink("Another page" ,"old")</strong></p> <p><strong>is not redirecting to another page its redirecting to default page</strong></p> <p><strong>please answer this question</strong></p> <pre class="brush: csharp">routes.MapRoute(&#34;new&#34;, &#34;{controller}/{action}/{id}&#34;, // URL with parameters new { controller = &#34;Default1&#34;, action = &#34;Index&#34;, id = UrlParameter.Optional } // Parameter defaults);routes.MapRoute(&#34;old&#34;, // Route name &#34;{controller}/{action}/{id}&#34;, // URL with parameters new { controller = &#34;Default2&#34;, action = &#34;Index&#34;, id = UrlParameter.Optional } // Parameter defaults);</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/181416/Url-Routing-not-working-in-ASPNet-MVC-3-Razor/http://www.aspforums.net/Threads/181416/Url-Routing-not-working-in-ASPNet-MVC-3-Razor/Tue, 17 Dec 2013 06:48:07 GMTUpload save and retrieve image from database in ASP.Net MVC<p>how to uplaod and retrieve image from database in mvc mobile using razor?</p> <h1>&nbsp;</h1>http://www.aspforums.net/Threads/106325/Upload-save-and-retrieve-image-from-database-in-ASPNet-MVC/http://www.aspforums.net/Threads/106325/Upload-save-and-retrieve-image-from-database-in-ASPNet-MVC/Sat, 26 Jan 2013 09:47:13 GMTUpload image to TinyMCE editor in ASP.Net MVC using jQuery Uploadify Plugin<p>Hi All,</p> <p>I have refereed http://www.aspsnippets.com/Articles/Upload-add-and-Display-Image-in-TinyMCE-Editor-TextBox-using-jQuery-Uploadify-Plugin-in-ASPNet.aspx<br />for upload and display image in TinyMCE editor.</p> <p>I have create one demo MVC3 application, here it works fine but my problem is,<br />I have configured the same plugin in my MVC3 application, I did't face any issue when debug but i got the following error when upload image<br />Error: POST http://localhost:3954/Upload.ashx?folder=/test%20forum/uploads 405 (Method Not Allowed) :3954/Upload.ashx?folder=/test%20forum/uploads.<br />The paths are mentioned correctly.</p> <p>Please help me to find the solution for this issue.</p> <p>Thanks in Advance.</p>http://www.aspforums.net/Threads/188341/Upload-image-to-TinyMCE-editor-in-ASPNet-MVC-using-jQuery-Uploadify-Plugin/http://www.aspforums.net/Threads/188341/Upload-image-to-TinyMCE-editor-in-ASPNet-MVC-using-jQuery-Uploadify-Plugin/Tue, 18 Nov 2014 23:34:44 GMTUpload files with progress bar in ASP.Net MVC<p>Hi,</p> <p>I have the code to file upload but i want to show the status of file uploading using progressbar.How do i do that?</p> <pre class="brush: html">&lt;form action=&#34;Fileupload&#34; method=&#34;post&#34; enctype=&#34;multipart/form-data&#34;&gt; &lt;label for=&#34;file&#34;&gt;Filename:&lt;/label&gt; &lt;input type=&#34;file&#34; name=&#34;file&#34; id=&#34;file&#34; /&gt; &lt;input type=&#34;submit&#34;value=&#34;Upload&#34; id=&#34;sub&#34; /&gt; @if(ViewData.ContainsKey(&#34;Message&#34;)) { &lt;div id=&#34;flash-message&#34;&gt;@ViewData[&#34;Message&#34;]&lt;/div&gt; } &lt;/form&gt; </pre> <p>&nbsp;</p> <pre class="brush: csharp"> public ActionResult Fileupload(HttpPostedFileBase file) { if (file != null) { var fname = Path.GetFileName(file.FileName); var exis = Path.Combine(System.Web.HttpContext.Current.Server.MapPath(&#34;~/Storage/uploads&#34;), fname); if (System.IO.File.Exists(exis)) { ViewData[&#34;Message&#34;] = &#34;The file &#34; + fname + &#34; has already exists&#34;; } else { try { if (file.ContentLength &gt; 0) { var fileName = Path.GetFileName(file.FileName); fname = fileName; var path = Path.Combine(Server.MapPath(&#34;~/Storage/uploads&#34;), fileName); file.SaveAs(path); } ViewData[&#34;Message&#34;] = &#34;The file &#34; + fname + &#34; has uploaded successully&#34;; } catch (Exception e) { ViewData[&#34;Message&#34;] = &#34;The file &#34; + fname + &#34; Could not upload&#34;; ViewData[&#34;Message&#34;] = e.Message; } } } else ViewData[&#34;Message&#34;] = &#34;Please choose file&#34;; return View(); }</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/473695/Upload-files-with-progress-bar-in-ASPNet-MVC/http://www.aspforums.net/Threads/473695/Upload-files-with-progress-bar-in-ASPNet-MVC/Thu, 22 May 2014 03:31:08 GMTUpload and Insert files to database in ASP.Net MVC<p>Hi I need to save file type, filename, storagepath into database how to do it?</p>http://www.aspforums.net/Threads/232391/Upload-and-Insert-files-to-database-in-ASPNet-MVC/http://www.aspforums.net/Threads/232391/Upload-and-Insert-files-to-database-in-ASPNet-MVC/Thu, 21 Aug 2014 00:07:07 GMTUpload and Download files in Folder when path is saved in Database using C# .Net<p>Hi i m asp.net C# developer doing final project ..i want to upload files in server folder but path is saved in database sql server.and also download files from folder with database reference ...Please code it for me ..I shall be v,thank full,,specialy code for downloading is required in c#</p>http://www.aspforums.net/Threads/193652/Upload-and-Download-files-in-Folder-when-path-is-saved-in-Database-using-C-Net/http://www.aspforums.net/Threads/193652/Upload-and-Download-files-in-Folder-when-path-is-saved-in-Database-using-C-Net/Fri, 07 Aug 2015 05:10:55 GMTUpload and Download file form Database in ASP.Net MVC<p>Hi,</p> <p>I want download to download files from database. Path of files are in table and files are stored on server.</p> <p>&nbsp;</p> <p>Thanks in advance...</p>http://www.aspforums.net/Threads/116738/Upload-and-Download-file-form-Database-in-ASPNet-MVC/http://www.aspforums.net/Threads/116738/Upload-and-Download-file-form-Database-in-ASPNet-MVC/Fri, 18 Nov 2016 02:15:04 GMTUnderstanding ASP .Net MVC (Model, View, Controller) Architecture<p>Hi &nbsp;</p> <p>please explain the image below</p> <p>i new to mvc</p> <p>&nbsp; &nbsp; here an image</p> <p>http://tutlane.com/tutorial/aspnet-mvc/asp-net-mvc-architecture-example-or-diagram-for-beginners&nbsp;</p>http://www.aspforums.net/Threads/131227/Understanding-ASP-Net-MVC-Model-View-Controller-Architecture/http://www.aspforums.net/Threads/131227/Understanding-ASP-Net-MVC-Model-View-Controller-Architecture/Mon, 19 Sep 2016 02:01:25 GMTUnable to cast object of type iTextSharp CellWrapper to type iTextSharp Paragraph<p>hi, everyone</p> <p>&nbsp;</p> <p>i want to print gridview in pdf format then i face following error</p> <p>&nbsp;</p> <pre class="brush: csharp">Unable to cast object of type &#39;iTextSharp.text.html.simpleparser.CellWrapper&#39; to type<br /><br /><br />&nbsp;&#39;iTextSharp.text.Paragraph&#39;<br /><br />how to solve this ?<br /><br />Thanks &amp; Regards<br /><br />Govind Jangir</pre> <p><br /><br /></p>http://www.aspforums.net/Threads/166442/Unable-to-cast-object-of-type-iTextSharp-CellWrapper-to-type-iTextSharp-Paragraph/http://www.aspforums.net/Threads/166442/Unable-to-cast-object-of-type-iTextSharp-CellWrapper-to-type-iTextSharp-Paragraph/Wed, 19 Sep 2012 23:37:11 GMTSystem.ArgumentNullException: Value cannot be null MVC<p>I follow this link&nbsp;</p> <p><a href="http://www.aspforums.net/Threads/594197/Get-image-from-Entity-Framework-database-and-send-to-email-in-ASP-NET-MVC/">http://www.aspforums.net/Threads/594197/Get-image-from-Entity-Framework-database-and-send-to-email-in-ASP-NET-MVC/</a></p> <p>and give me this error</p> <h1>Server Error in '/' Application.</h1> <hr size="1" width="100%" /> <h2><em>Value cannot be null.<br />Parameter name: inArray</em></h2> <p><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><strong>Description:&nbsp;</strong>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&nbsp;<br /><br /><strong>Exception Details:&nbsp;</strong>System.ArgumentNullException: Value cannot be null.<br />Parameter name: inArray<br /><br /><strong>Source Error:</strong>&nbsp;<br /><br /></font></p> <table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td> <pre>Line 22: this.ContentType = baseImages.ContentType; Line 23: this.Data = baseImages.Data; <font color="red">Line 24: this.Base64String = Convert.ToBase64String(baseImages.Data); </font>Line 25: } Line 26: }</pre> </td> </tr> </tbody> </table> <p>i insert&nbsp;image in the database with this insert query</p> <p>insert into dbo.Images(Name, ContentType, Data)<br />values('proba', 'jpg', <br />(select BulkColumn<br />from Openrowset(Bulk 'c:\images\1_108_1.jpg', Single_Blob) as img))&nbsp;</p> <p>Can you help me?</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/521693/SystemArgumentNullException-Value-cannot-be-null-MVC/http://www.aspforums.net/Threads/521693/SystemArgumentNullException-Value-cannot-be-null-MVC/Mon, 11 Apr 2016 03:24:11 GMTstoredprocedure in mvc razor using model and mysql<p>Hi</p> <p>i wanto use storedprocedure using mysql in mvc razor 4</p> <p>I created &nbsp;databaseentity&nbsp;</p> <pre class="brush: csharp">var vale=new Dbentity();</pre> <p>I created storedprocedure &nbsp;&nbsp;i.e.&nbsp;getvalue</p> <p>and want value from&nbsp;&nbsp;storedprocedure() into string</p> <p>In&nbsp;&nbsp;storedprocedure , i have query as&nbsp;</p> <pre class="brush: csharp">select firstval from firsttb where fcode=&#39;2&#39;</pre> <p>i want firstval value&nbsp;</p> <p>i tried</p> <pre class="brush: csharp">string valhere= vale.getvalue(2);</pre> <p>but it says cannot convert string to int</p>http://www.aspforums.net/Threads/443699/storedprocedure-in-mvc-razor-using-model-and-mysql/http://www.aspforums.net/Threads/443699/storedprocedure-in-mvc-razor-using-model-and-mysql/Wed, 09 Jul 2014 06:33:51 GMTSimple User Registration and Login Form with Entity Framework Database in ASP.Net MVC<p>Hi,</p> <p>How to create a simple application for user registration and login using MVC</p>http://www.aspforums.net/Threads/173057/Simple-User-Registration-and-Login-Form-with-Entity-Framework-Database-in-ASPNet-MVC/http://www.aspforums.net/Threads/173057/Simple-User-Registration-and-Login-Form-with-Entity-Framework-Database-in-ASPNet-MVC/Tue, 31 Jan 2017 00:26:16 GMTToggle Key up down for AutoComplete TextBox in ASP.Net MVC<pre class="brush: js">//Getting Place Name from Location DB $(function () { &nbsp;&nbsp;&nbsp; $(&#34;#fromloc_&#34;).on(&#34;input&#34;, function () { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($(&#34;#fromloc_&#34;).val() != &#34;&#34;) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getAutoComplete($(&#34;#fromloc_&#34;).val()); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; }); &nbsp;&nbsp;&nbsp; $(&#34;#toloc_&#34;).on(&#34;input&#34;, function () { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($(&#34;#toloc_&#34;).val() != &#34;&#34;) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getAutoComplete1($(&#34;#toloc_&#34;).val()); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; }); }); function getAutoComplete(PlaceName) { &nbsp;&nbsp;&nbsp; var uri = &#34;AddBooking/GetPlace&#34;; &nbsp;&nbsp;&nbsp; $.getJSON(uri, { PlaceName: PlaceName }).done(function (data) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(&#39;ul#lst&#39;).html(&#34;&#34;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var count = 0; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $.each(data, function (key1, item1) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var li = $(&#39;&lt;li/&gt;&#39;).addClass(&#39;ui-menu-item1&#39;) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .html(&#34;&lt;a style=&#39;color:black&#39; onclick=\&#34;setText(&#39;&#34; + item1 + &#34;&#39;)\&#34;&gt;&#34; + item1 + &#34;&lt;/a&gt;&#34;) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .appendTo($(&#39;ul#lst&#39;)); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; count++; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }); &nbsp;&nbsp;&nbsp; }); } function getAutoComplete1(PlaceName1) { &nbsp;&nbsp;&nbsp; var uri1 = &#34;AddBooking/GetPlace1&#34;; &nbsp;&nbsp;&nbsp; $.getJSON(uri1, { Place: PlaceName1 }).done(function (data) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(&#39;ul#lst1&#39;).html(&#34;&#34;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var count = 0; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $.each(data, function (key2, item2) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var lis = $(&#39;&lt;li/&gt;&#39;).addClass(&#39;ui-menu-item2&#39;) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .html(&#34;&lt;a&nbsp; style=&#39;color:black&#39; onclick=\&#34;setText1(&#39;&#34; + item2 + &#34;&#39;)\&#34;&gt;&#34; + item2 + &#34;&lt;/a&gt;&#34;) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .appendTo($(&#39;ul#lst1&#39;)); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; count++; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }); &nbsp;&nbsp;&nbsp; }); } function setText(text) { &nbsp;&nbsp;&nbsp; $(&#34;#fromloc_&#34;).val(text); &nbsp;&nbsp;&nbsp; $(&#34;.ui-menu-item1&#34;).hide(); &nbsp;&nbsp;&nbsp; GetFromLocLatLon($(&#34;#fromloc_&#34;).val()); } function setText1(text) { &nbsp;&nbsp;&nbsp; $(&#34;#toloc_&#34;).val(text); &nbsp;&nbsp;&nbsp; $(&#34;.ui-menu-item2&#34;).hide(); &nbsp;&nbsp;&nbsp; GetToLocLatLon($(&#34;#toloc_&#34;).val()); &nbsp;&nbsp;&nbsp; //alert(textbox1.val()); }</pre> <p>Here i'm using two textboxes fromloc and toloc..it will shows place name auto suggest from Database..i need to toggle the key up/down for chossing place name .. onlick event only working on that anchor tag..</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/167273/Toggle-Key-up-down-for-AutoComplete-TextBox-in-ASPNet-MVC/http://www.aspforums.net/Threads/167273/Toggle-Key-up-down-for-AutoComplete-TextBox-in-ASPNet-MVC/Fri, 25 Nov 2016 04:57:35 GMTThree tier architecture in entity framework 4.0 without using mvc and wcf<p>Hello,</p> <p>I want to make three tier architecture in entity framework using data access layer.</p> <p>how can i achieve this without using mvc and wcf?</p>http://www.aspforums.net/Threads/898847/Three-tier-architecture-in-entity-framework-40-without-using-mvc-and-wcf/http://www.aspforums.net/Threads/898847/Three-tier-architecture-in-entity-framework-40-without-using-mvc-and-wcf/Thu, 22 Nov 2012 03:12:06 GMTThere is no ViewData item of type IEnumerableSelectListItem that has the key City error in ASP.Net MVC<p>When i submit form containing city dropdownlistfor this error occured please solve my problem early as possible</p>http://www.aspforums.net/Threads/849372/There-is-no-ViewData-item-of-type-IEnumerableSelectListItem-that-has-the-key-City-error-in-ASPNet-MVC/http://www.aspforums.net/Threads/849372/There-is-no-ViewData-item-of-type-IEnumerableSelectListItem-that-has-the-key-City-error-in-ASPNet-MVC/Fri, 03 Jun 2016 02:09:40 GMTSystem.Collections.Generic.KeyNotFoundException ASP.Net MVC<p>Hello all, I am working on a MVC project, I currently finished three different excel sheets and depending on the type of insurance the user selects a certain default excel sheet format should be used for that insurance. Currently I can only select one format in the return statement. What I was trying to do is have an if condition depending the string context to decide what excel format to use.</p> <p>&nbsp;</p> <pre class="brush: csharp">public ActionResult GenerateTripLog(int driverId, int vehicleId, int typeId, int customerId) { try { var results = (from s in db.usp_TripLog(driverId, vehicleId, typeId, customerId, sDate, eDate) select s).ToList(); var driver = new DriverRepository(GetCurrentUser()).GetDriver(driverId); var iType = db.insurancetypes.SingleOrDefault(c =&gt; c.id == typeId); var tenant = GetTenant(GetCurrentUser()); var period = &#34;All&#34;; var driverSignature = (from s in driver.driveravailabilityevents where orderby s.createdon descending select s.signature).FirstOrDefault(); object[] filterStrs = { tenant == null ? &#34;All&#34; : tenant.tenantname, period, driver == null || driver.person == null ? &#34;All&#34; : driver.person.fullname, iType == null ? &#34;All&#34; : iType.name, driverSignature }; //THIS IS WHAT I WAS TRYING TO DO THE SELECTION string insuranceType = Convert.ToString(iType); if(insuranceType == &#34;FAMILY CARE&#34;) { return TripLogSpreadsheet(results, filterStrs); } else if(insuranceType == &#34;BELLIN&#34;) { return BELLINLogSpreadsheet(results, filterStrs); } //return TripLogSpreadsheet(results, filterStrs); } catch (Exception ex) { ViewData[&#34;errormessage&#34;] = ex.Message; return View(&#34;Error&#34;); } }</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/129012/SystemCollectionsGenericKeyNotFoundException-ASPNet-MVC/http://www.aspforums.net/Threads/129012/SystemCollectionsGenericKeyNotFoundException-ASPNet-MVC/Wed, 18 Nov 2015 03:23:53 GMT