Posts

Showing posts from June, 2012

How to add a custom button in Telerik MVC Grid Toolbar like “Add New Record” Button

Image
.ToolBar(commands =>  {  commands.Insert().ButtonType( GridButtonType .Text);    commands.Custom().Name( "mybtn" ).Text( "This Is Title" ).ButtonType( GridButtonType .Text).Action( "myAction" , "myController" ).Ajax( true ); })

How to pass a model from view to controller using javascript in MVC 3

JS Code: Funtion PassModel(){ var UserModel = {                 UserName: ‘Test’,                 PhoneNo: ‘00000000000’,                 Address: ‘ABCDEFGHI…’ }; var URL = "/UserController/UserAction?userdetails=" + UserModel;                     $.get(URL, function (data) {                         ShowResult(data.SaveResult);                     }); } HTML Code ( View ): < input name ="ClickedButton" type ="button" id ="btnSaveUser” value ="Save New User"                     onclick =" PassModel ()" class ="commonbtn FR" /> C# Code ( Controller ): public ActionResult UserAction ( UserModel userdetails )         {             int SaveResult = DAL.SaveNewUser();             return Json( new { SaveResult }, JsonRequestBehavior .AllowGet);         }

How to make simple AJAX call on HTML input button and get JSon result in MVC 3

Here is the simplest code to make Ajax calls to MCV on an HTML button click using javascript. JS Code: funtion  btnClick(){ var URL = "/myController/ myAction ?userID=" + Parameter1 + "&ReceiptNo=" + Parameter2 ;                     $.get(URL, function (data) {                         ShowResult(data.ProcessResult);                          } HTML Code ( View ):   <input name="ClickedButton" type="button" id="btnclickme" value="Check Result"                     onclick="btnClick()" class="commonbtn FR" /> C# Code ( Controller ): public ActionResult myAction(string  Parameter1 ,string  Parameter2   ) {     int  ProcessResult  = 1;     return Json(new { ProcessResult }, JsonRequestBehavior.AllowGet); }

The specified store provider cannot be found in the configuration or is not valid sqlite

Simply install SQLite setup Download From Here  on the machine where you are running the application. The error comes because when you use to connect with a SQLite database. Install the setup and error go away. SQLite Download Link  :  http://www.sqlite.org/download.html Regards

Unable to find the requested .Net Framework Data Provider. It may not be installed. MVC 3 Entity Framework

While working on a MVC 3 project i got this error when i deploy my application to client's machine. Technologies that i was using are Visual Studio 2010, MVC 3.0, Telerik MVC UI Controls. I was using entity framework also so the error comes up when i connect a SQL lite database with my entity model. Solution: Just install SQL setup on client machine and it works perfectly.

Cracks & Activators (For Personal Use Only)

Number of Useful cracks and activators: http://www.mediafire.com/#ut18fvtkht7d9