Thursday, May 29, 2014

Working With __doPostBack Jquery Function In The Asp.Net C#

Introduction In this article we are going to learn the topic of how to post back the dropdown selected change without changing the property of Autopostback=”true” . For this we are going to call the method at the time of onchange event OnChange="dropDownChange();" In this method we write the call back method with parameter condition like __doPostBack('pnlGrid', strUser) Coding Write this code In Aspx Source File <html xmlns="http://www.w3.org...
Read More »

Get The Specific Column From The Data Table Using Asp.Net C#

Step 1:- Creating the dynamic data table DataTable dt = new DataTable(); dt.Columns.Add("UserId", typeof(int)); dt.Columns.Add("UserName", typeof(string)); dt.Columns.Add("Education", typeof(string)); dt.Rows.Add(1, "Lokesh", "B.Tech"); dt.Rows.Add(2, "Vijay", "Msc"); dt.Rows.Add(3, "Balaji", "MS"); dt.Rows.Add(4, "Charan", "B.Tech"); dt.Rows.Add(5, "Durga", "MD"); dt.Rows.Add(6, "Shiva", "B.Tech"); dt.Rows.Add(7, "Venkat", "CA"); Step 2:- By using the “DefaultView”  Key...
Read More »

Get the Specific Row From the Data Table using LINQ in Asp.Net

Step 1:- Create One dynamic datatable DataTable dt = new DataTable(); dt.Columns.Add("UserId", typeof(int)); dt.Columns.Add("UserName", typeof(string)); dt.Columns.Add("Education", typeof(string)); dt.Rows.Add(1, "Lokesh", "B.Tech"); dt.Rows.Add(2, "Vijay", "Msc"); dt.Rows.Add(3, "Balaji", "MS"); dt.Rows.Add(4, "Charan", "B.Tech"); dt.Rows.Add(5, "Durga", "MD"); dt.Rows.Add(6, "Shiva", "B.Tech"); dt.Rows.Add(7, "Venkat", "CA"); This is the LINQ code for getting the specific...
Read More »

Manipulating the Asp.Net Textbox with Custom Inputs using JQuery

Manipulating the Asp.Net Textbox with Custom Inputs using JQuery Step 1:- Add this Source tag in the top <script src="js/jquery-1.4.1.js" type="text/javascript"></script> For jquery-1.4.1.js  this file follow below link https://code.google.com/p/autojscssversion/source/browse/trunk/Scripts/jquery-1.4.1.js?r=2 Step 2:- Write this code below Put Client ID Mode Static in the Top ClientIDMode="Static" %> <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TextBoxManipulationUsingJavascript.aspx.cs"    ...
Read More »

Getting the System Local IP address from the ASP.Net Using the ActiveX Control

Getting the System Local IP address from the ASP.Net Using the ActiveX Control Step 1:- Creating the one empty windows project c# Open visual studio à File àNew àProject à In installed templates select the Windows à And select Class Library àName it as “SampleActiveXControl “ and click ok à Step 2:-Go to solution explorer à Right click the sampleActiveXControl  project àAdd à New Item...
Read More »