Posts

Htc sensation XL mobile not working with windows 7 or above, along with Htc sync software

Problem: Htc sensation XL connectivity issue with windows 7 or above + Htc sensation XL device detection issue with Android Studio + Htc sensation XL connectivity issue with Htc sync software Solution: For all of the above mentioned issues, please see steps below for smooth & successful activity. Please make sure that 1. In Pc, Htc sync software version 3.2.26 or 3.3.63 is installed. 2. Ur device is connected to PC via usb cable. 3. In mobile, change connectivity options from 'charging' to 'htc sync' 4. In Pc, goto device manager and see for hardware changes in order to see whether device is detected by Pc or not yet, If yes you are good to go, if not follow below mentioned steps 5. Run htc sync in compatible mode by going to properties and changing OS to windows vista, then re-run Htc sync software and re-connect from mobile to see if it detects changes or not, if yes we are good to go but if not see below 6. In Pc, install htc usb drivers fro

working with cache Context.Cache.ReleaseAll();

turn on hibernate in vista

Go to the command prompt icon in the Start menu under Accessories and right click the icon: click “Run as administrator”. Paste: “powercfg.exe /hibernate on” and hit Enter and also paste “powercfg -h on” and hit enter just to be safe. Open Control Panel and type in “Hibernate” in the Search.

post form data and bind with model : using jquery ajax in mvc

There are multiple ways of posting data from view to controller using jquery + ajax in mvc 1. post data by assigning parameters one by one and bind it with model manually 2. post data by serializing form and automatically binding with model 3. post data by assigning parameters one by one + making custom class and assigning data to its variables which are named similarly as that of model Method 1:     $.ajax({         url: "/Controller/SubmitAction",         type: "POST",         dataType: "text",         data: { name: _name, age: _age, id: _id },         success: function (response) {             alert("Success");         },         error: function () {             alert("Error");         }     }); public JsonResult SubmitAction(string name, string age, int id) {       try       {             Person obj = context.Person.FirstOrDefault(x=>x.id = id);             obj.Name = name;             obj.Age = age;

mvc pattern and asp.net mvc

MVC Pattern MVC stands for Model View Controller, it is a software development pattern that separates development concerns meaning all team members can independently work on his own. View: View contain s uiu your html tag which were rendered to browser. Model: Model is where all your business ASP.NET and MVC Framework

OptimisticVerificationException (Row not found: GenericOID@) in Artificial types.

possible cause of generating this problem. if you have two tables having parent child relationship e.g Table1: Student (studentId, name) Table2: Courses (courseId, name, studentId) in a scenario where you want operator to open student record in edit mode i.e showing his name + his enrolled course suppose initially two courses were enrolled but now operator wants to enroll 5 more courses, which will make it 7 courses all together. upon update you are following strategy as first remove all previous courses

multiple ways to call a partial view in asp.net mvc 5

there are scenarios where you want to minimize redundancy and fasten up productivity, hence partial views play role over here. 1st Approach suppose you are creating a user mgt application where you'll first add user with four input fields, then will show them in index page, if operator want to edit any user record, that record will get displayed in edit mode (same four fields) then upon update record gets saved in db. in this scenario either you have to create two different views create and update containing same fields OR you just make a template / partial view and call it in both views resulting in mitigating redundancy, increasing productivity, also if you want to make some changes, you dont need to update both views i.e (create / update) you'll only need to update one partial view. create.cshtml @model Model.User Html.BeginForm() { @RenderPartial() } update.cshtml partialuser.cshtml 2nd Approach what I see in your controller is a mix of methods. I