Tuesday, December 6, 2011

How to call Server Side function from Client Side Code in asp.net

You cannot call server-side code ‘directly’ from client-side code. That is because by design, the server side code executes at server side and client side code at the client. However there are some workarounds. To call serverside code from javascript, you will need to use AJAX, and the easiest way out, is to use the ASP.NET AJAX Extensions.One option while using Microsoft ASP.NET AJAX is to call ASP.NET Web services (.asmx files)...

9:32 PM by Dilip kakadiya · 0

Monday, December 5, 2011

Encrypt & Decrypt Data in asp.net with c#

Copy Belove code IN Default.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> http://www.w3.org/1999/xhtml"> Id Name without decryptCopy Belove code in default.aspx.cs page using System; using System.Configuration; using System.Data; using System.Linq; using...

11:19 PM by Dilip kakadiya · 0

Thursday, December 1, 2011

How to detect browser and Operating System (OS) with ASP.NET

You can use "Request.UserAgent" if you're programming ASP.NET, otherwise it quite simple to get through other programming languages or the client script by Javascript.Back to the returns of "Request.UserAgent" which is for an example"Mozilla/5.0 (Windows; U; Windows NT 5.1; da; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13"..Some of these information's returns which browser system, browser version, operating system and...

9:04 PM by Dilip kakadiya · 0

how to call web service from JQuery

Download sourceMaking ajax calls to an ASP.NET web service using jQuery is too easy.  In this post I’ll explain how to do it!Start by creating a new web project and adding a new ASMX web service:Open the new web service and uncomment the following line to allow the web service to be called from script.[System.Web.Script.Services.ScriptService] The...

8:10 PM by Dilip kakadiya · 0