ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2018 www.aspforums.com. All rights reserved.XSRF Token Size in MVC<p>Hi,</p> <p>Just wanted to know what is the XSRF / CSRF token size in MVC. Googled it but no luck.</p> <p>&nbsp;</p> <p>Thanks in advace.</p>http://www.aspforums.net/Threads/181084/XSRF-Token-Size-in-MVC/http://www.aspforums.net/Threads/181084/XSRF-Token-Size-in-MVC/Thu, 23 Nov 2017 22:33:27 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 GMTWeb API in ASP.Net MVC<p>hi sir/mam</p> <p>i new to web api, i have no idea, how does it work but i need to learn how to write and read in jason format.</p> <p>&nbsp;</p> <p>plz anyone help to learn it faster.</p>http://www.aspforums.net/Threads/200615/Web-API-in-ASPNet-MVC/http://www.aspforums.net/Threads/200615/Web-API-in-ASPNet-MVC/Sun, 17 Sep 2017 23:54:53 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="https://i.imgur.com/4RdONrU.jpg" alt="" width="468" height="313" /></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 Url.Action method in ASP.Net MVC<h2><em>The resource cannot be found.</em></h2> <p><em>&nbsp;i have controller viewmodel and view</em></p> <p><em>from code in controller when i click the view name and go to view the cshtml file gets opened</em></p> <p><em>but during run time hen i click a link to open the same view file i get the above error</em></p> <p><em>this is the url</em></p> <p><em>whts going wrong </em></p> <pre class="brush: html">&lt;a href=&#34;@Url.Action(&#34;InfoAdd&#34;, &#34;Info&#34;)&#34;&gt;&lt;strong&gt;Add Information&lt;/strong&gt;&lt;/a&gt;</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/770932/Using-UrlAction-method-in-ASPNet-MVC/http://www.aspforums.net/Threads/770932/Using-UrlAction-method-in-ASPNet-MVC/Fri, 27 Oct 2017 02:11:21 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 GMTUsing jQuery form validation before Ajax submit in ASP.Net MVC<p>please see this link</p> <p><a href="https://www.aspsnippets.com/Articles/ASPNet-MVC-CRUD-Select-Insert-Edit-Update-and-Delete-in-ASPNet-MVC-Razor.aspx" target="_blank">https://www.aspsnippets.com/Articles/ASPNet-MVC-CRUD-Select-Insert-Edit-Update-and-Delete-in-ASPNet-MVC-Razor.aspx</a></p> <p>the ajax create method is:</p> <p>&nbsp;</p> <pre class="brush: csharp">[HttpPost] public JsonResult InsertCustomer(Customer customer) { using (CustomersEntities entities = new CustomersEntities()) { entities.Customers.Add(customer); entities.SaveChanges(); } return Json(customer); }</pre> <p>&nbsp;</p> <p>and this is jquery.ajax add fuction:</p> <p>&nbsp;&nbsp;</p> <pre class="brush: js">//Add event handler. $(&#34;body&#34;).on(&#34;click&#34;, &#34;#btnAdd&#34;, function () { var txtName = $(&#34;#txtName&#34;); var txtCountry = $(&#34;#txtCountry&#34;); $.ajax({ type: &#34;POST&#34;, url: &#34;/Home/InsertCustomer&#34;, data: &#39;{name: &#34;&#39; + txtName.val() + &#39;&#34;, country: &#34;&#39; + txtCountry.val() + &#39;&#34; }&#39;, contentType: &#34;application/json; charset=utf-8&#34;, dataType: &#34;json&#34;, success: function (r) { var row = $(&#34;#tblCustomers tr:last-child&#34;).clone(true); AppendRow(row, r.CustomerId, r.Name, r.Country); txtName.val(&#34;&#34;); txtCountry.val(&#34;&#34;); } }); });</pre> <p>and in view there's not&nbsp;any</p> <p>&nbsp;</p> <p>how can validate both client side and server side errors and exceptions asp.net mvc way?</p> <p>I mean&nbsp;in a normal form we had:</p> <p><strong>if (ModelState.IsValid)</strong> <strong> {}</strong></p> <p>in action method</p> <p>and using&nbsp;<strong>jquery.validate.unobtrusive.js</strong> we could show validation error in</p> <p><strong>@Html.ValidationSummary</strong></p> <p><strong>@Html.ValidationMessageFor</strong></p> <p>&nbsp;</p> <p>what about $.ajax crud validation?</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/214143/Using-jQuery-form-validation-before-Ajax-submit-in-ASPNet-MVC/http://www.aspforums.net/Threads/214143/Using-jQuery-form-validation-before-Ajax-submit-in-ASPNet-MVC/Mon, 23 Oct 2017 23:12:50 GMTUsing EmguCV in ASP.Net MVC<p>I want to make a MVC project.In this project i will want to use face recognition authentication system. Now how i will open a webcam by Emgu CV and detect a face using Emgu CV and save the detected face in database. I do not want to use javascript. Whole process i want to do by Emgu CV. How i will do? Please give me a instruction . Thank you.</p>http://www.aspforums.net/Threads/450042/Using-EmguCV-in-ASPNet-MVC/http://www.aspforums.net/Threads/450042/Using-EmguCV-in-ASPNet-MVC/Thu, 31 Aug 2017 07:47:23 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 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 GMT