Browse by Tags

All Tags » Asp.net 3.5 (RSS)

WCF : Adding BehaviorExtensionElement for custome behaviors by lohith

Whele you add a BehaviorExtensionElement to add custom behavior if you get error message like below "Verify that the extension is registered int he extension collection at system.serviceModel/Extensions/BehaviorExtensions" The code in the configuration...
Filed under: ,

Visual Studio 2008 video tutorials by lohith

http://asp.net/learn/3.5-videos/ LINQ Video Series Part 1: Introduction to LINQ and SQL Part 2: Defining our Data Model Classes Part 3: Querying our Database Part 4: Updating our Database Part 5: Binding UI using the ASP:LinqDataSource Control Part 6...

Microsoft .NET data access application block version 2.0. by lohith

Are you involved in the design and development of data access code for .NET-based applications? Have you ever felt that you write the same data access code again and again? Have you wrapped data access code in helper functions that let you call a stored...

WCF : A Developer's Introduction to Windows Communication Foundation 4 by lohith

Find the below link for A Developer’s Introduction to Windows Communication Foundation (WCF4) in .NET 4 The .NET Framework 4 (.NET 4) comes with some compelling new features and welcomed improvements in the area of Windows Communication Foundation (WCF...
Filed under: ,

How do we sort the data in dataset by lohith

SqlConnection cn = new SqlConnection(ConnectionString); cn.Open(); SqlDataAdapter da=new SqlDataAdapter("select emp_id, fname, lname from employee",cn); DataSet ds=new DataSet(); da.Fill(ds); DataView dtView = ds.Tables[0].DefaultView; dtView...

.NET Framework 3.5 New Features by lohith

.NET Framework 3.5 New Features Faster .NET Framework execution 1. Faster garbage collection 2. Smarter, faster NGen requiring smaller working set RAM 3. 64 bit client improvements 4. ThreadPool performance improvements 5. Security check caching during...
Filed under: , , , ,

ASP.NET AJAX Virtual Labs by lohith

ASP.NET AJAX: Part 1 – The UpdatePanel Control In this exercise, you’ll open an existing Web site—one based on the real Burton Snowboards Web site at www.burton.com— in Visual Studio and take a few moments to familiarize yourself with it. You’ll also...
Filed under: , , , ,

Disable Cut, Copy & Paste in ASP.Net textbox by lohith

You can disable cut, copy & paste in ASP.Net textbox, here is how you can disable the cut, copy, paste. < asp:TextBox ID =”TextBox1″ runat =”server” oncopy =”return false” onpaste =”return false” oncut =”return false” > </ asp:TextBox >
Filed under: , , ,

Get asp.net client information by lohith

I have a situation where i need to know about the user like IP Adress, host name etc and have to log the same user information in your database for further use. There are many resorces you can find on the internet to get to know about asp.net clinet information...
Filed under: , , ,

Bind Textbox with DataSet by lohith

Here in this post i m going to show how to bind textboxes with dataset. SqlConnection Conn = new SqlConnection(); SqlDataAdapter adpt; DataSet ds = new DataSet(); String str = "select * from TableName; adpt = new SqlDataAdapter(str, Conn); adpt.Fill...
Filed under: , , ,

Add DataRow[ ] to new cloned DataTable by lohith

I have situation where I want to fill the selected data from a DataRow[ ] to a new cloned DataTable. Here is the code to do so... System.Data. DataSet taskDS; string taskList; string expression; char [] separator = new char [] { ',' }; string...
Filed under: , ,

Default Parameters in web.config file by lohith

I would like to specify some defaullts for my logic and i was not sure where to put them finally got a solution to put them in web.config file. Of course I can hardcode it but it is not very elegant. <appSettings> <add key="DefaultParameter1"...
Filed under: , ,

Get header information of a website by lohith

protected void btnGetInfo_Click( object sender, EventArgs e) { try { WebClient webClient = new WebClient (); byte [] getResponse = webClient .DownloadData( "http://" + txtWebSiteAddress.Text); WebHeaderCollection webHeaderCollection = webClient...
Filed under: , , ,
More Posts Next page »
Powered by Community Server (Commercial Edition), by Telligent Systems