Click here to Skip to main content
14,737,856 members
This competition has ended

Best ASP.NET article of July 2010

Contribute to CodeProject and you'll automatically be in the running for a monthly prize!

Each month at CodeProject we gather together the best of the articles submitted the previous month and ask our readers to choose the best of the best. Entry is automatic - just submit you articke and we'll do the rest.

Check out the submission guidelines for information on posting articles.

Current Entries

Articles that match the contest criteria are automatically entered. The top 50 entries are shown.

Please Sign up or sign in to vote.
10 Jul 2010
Martin Jarvis
Diagnosing Tricky ASP.NET Production Issues with DebugDiag and winDbg
Please Sign up or sign in to vote.
28 Jul 2010
Ernesto Herrera
Integrate Reporting Services with your Silverlight Line-of-Business applications.
Please Sign up or sign in to vote.
24 Jul 2010
atverma
How to disable subsequent submit button clicks when a request is being processed in ASP.NET AJAX client side script code
Please Sign up or sign in to vote.
5 Jul 2010
jayantbramhankar
use order by in your queryuse this.Select top 10 ProductId , ProductName from Products order by productId descHope this helps
Please Sign up or sign in to vote.
29 Jul 2010
Sandeep Mewara
You need to know how a Page is build and rendered. Response is the one that presents the page to you. You are using Response.End before changing the label and thus there is no affect of label line.
Please Sign up or sign in to vote.
9 Jul 2010
Sabarinathan A
This blog intends to identify a technique to convert textarea HTML control to Editable Hyperlink Listbox efficiently.
Please Sign up or sign in to vote.
18 Jul 2010
Gil Fink
How to add a JavaScript block into a WebBrowser control
Please Sign up or sign in to vote.
7 Jul 2010
Prosanta Kundu online
Please see this link [http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/MaskedEdit/MaskedEdit.aspx]
Please Sign up or sign in to vote.
7 Jul 2010
Rutvik Dave
You can try the following code block instead of your code. DataSet ds = new DataSet(); ds=obj_bal.BAL_ShowFrom_Reply(); GridView1.DataSource = ds; GridView1.DataBind(); Response.Clear(); ...
Please Sign up or sign in to vote.
26 Jul 2010
OriginalGriff
As it's urgent, the code you require is:CTRL-P
Please Sign up or sign in to vote.
28 Jul 2010
raju melveetilpurayil
This is an examplepublic partial class Default2 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { //calling your derived class MyClass objMyClass = new MyClass(); objMyClass.DoSomthing(); }}//Abstract Classpublic...
Please Sign up or sign in to vote.
29 Jul 2010
Christian Graus
If you're 'very new to ASP.NET', this is an insane task for you to undertake. I assume you're in a class, why is your teacher giving you such a complex task ? Or did you know SQL and C# or VB.NET already ?You use a #, not a %, to specify code that runs in a data context.[UPDATE]You...
Please Sign up or sign in to vote.
2 Jul 2010
Chris Maunder
Why not use the ASP.NET validation controls? Validator Controls in ASP.NET[^]
Please Sign up or sign in to vote.
30 Jul 2010
raju melveetilpurayil
Adding confirm dialog box in Command buttons Check this link.GridView Delete Confirmation Using asp:CommandField[^]
Please Sign up or sign in to vote.
8 Jul 2010
Sandeep Mewara
There can be other ways too, but easiest would be:1. Run the application. 2. Go to the desired page.3. Do a 'View Source'4. Find the Master page control name. 5. Use that name in your ASPX javascript.
Please Sign up or sign in to vote.
13 Jul 2010
idenizeni
Every document that a user views in a browser is downloaded to the user. Even if you want to stop someone from using the 'Save As' feature on their browser, their browser has already downloaded the document to the users temp browser files.
Please Sign up or sign in to vote.
30 Jun 2010
Dinesh Mani
Adding unpartitioned space to your Primary drive is not advisable and is a cumbersome process. I would rather suggest you make a new partition and use it as a different drive to save your data.HTH!
Please Sign up or sign in to vote.
3 Jul 2010
Shining Legend
.asmx = Active server methods. Webservices have this extension in dotnet.http://dotnetforbeginner.blogspot.com/[
Please Sign up or sign in to vote.
13 Jul 2010
raju melveetilpurayil
through CSS you cab set background images in table and cells. check the link, one of the best css tutorials http://www.w3schools.com/css/default.asp[^]
Please Sign up or sign in to vote.
14 Jul 2010
Johnny J.
if (textBox1.Text.EndsWith(',')) textBox1.Text = textBox1.Text.SubString(0, textBox1.Text.Length -1);
Please Sign up or sign in to vote.
17 Jul 2010
Xmen Real
Solution file contains all content info of project, like files paths, links... Every time you save your project, VS automatically creates a solution file. If any website don't have solution file in its own directory then either its in 'Documents\Visual Studio 20XX\Projects\[Website project...
Please Sign up or sign in to vote.
19 Jul 2010
Sandeep Mewara
Well, first of all read what a button click is: Button.Click Event[^] Now, there is only one click event (not various types of.) In your click event, just make your dropdown visible. Something like:myDropdown.Visible = true; If you want to show the dropdown visiblty without...
Please Sign up or sign in to vote.
20 Jul 2010
Christian Graus
If you have trouble with third party controls, it means you've paid someone to use their controls, and their tech support should be the first people who are best able to help you. They should also have forums for users of their controls, which their developers will post to. I've never used...
Please Sign up or sign in to vote.
21 Jul 2010
E.F. Nijboer
If you want a client downloading a file open it with the correct program you should set the correct content type before streaming the file to the user. For example a zip file: Response.ContentType = "application/zip"
Please Sign up or sign in to vote.
21 Jul 2010
Sandeep Mewara
1. You posted the same thing yesterday[^]2. Though we asked you about your table structure/query thats fetching the result, you didnt replied that. Instead repost the same thing. It's clear from the error that either a column named 'Answer' does not exists in the table you are accessing...
Please Sign up or sign in to vote.
22 Jul 2010
Sandeep Mewara
Instead of tryign various timeouts, your first step should be to get the bottleneck!Use Debugger and get the place/reason where the response is taking to long a time. It might be getting the data from DB, some BLL processing or UI level rendering. Based on your question, chances are with...
Please Sign up or sign in to vote.
23 Jul 2010
Sandeep Mewara
Have a look at this:Image Properties[^]If you see the Height & Width properties. Both Get & Set are available. Just use them to set it. Now, in order to have a specific unit, you need to convert to desired one and use it.
Please Sign up or sign in to vote.
25 Jul 2010
raju melveetilpurayil
add a css class .error .error{ font-size:large; color:Red; }
Please Sign up or sign in to vote.
28 Jul 2010
Jamal Seyedi
Have you tried these? Session.Abandon();Session.RemoveAll();Session.Clear();orResponse.Buffer = false;Response.Expires = 0;Response.Cache.SetNoStore();Response.AppendHeader("Pragma", "no-cache");
Please Sign up or sign in to vote.
28 Jul 2010
Leonardo Bruno Lima
Your project path need be without spaces. Ex.: C:\Myproject - OK C:\My Project - Fail
Please Sign up or sign in to vote.
28 Jul 2010
E.F. Nijboer
First of all the title isn't very clear of what you really want to ask.Second, consider casting your date to a string before putting in the Text property of txtAge.Third, you should use the DateDiff function to determine the days? months? years? between the two...
Please Sign up or sign in to vote.
29 Jul 2010
raju melveetilpurayil
try with google. you can get some link in MSDN or in CP. its more effective than waiting for answer.check following linkLambda Expressions vs Anonymous methods[^]Delegates, Anonymous Methods, and Lambda Expressions[^]
Please Sign up or sign in to vote.
29 Jul 2010
raju melveetilpurayil
'/> ...
Please Sign up or sign in to vote.
20 Jul 2011
tanvon malik
Slides the blog posts and news automatically. The news slider is completely built with jquery and CSS.
Please Sign up or sign in to vote.
18 Jul 2010
Gil Fink
One of the new features that was shipped with ASP.NET 4 was new providers for caching purpose. In this post, I’ll explain one of them – the OutputCacheProvider.
Please Sign up or sign in to vote.
21 Jul 2010
E.F. Nijboer
Using PHP for this is somewhat strange because this runs on the server. You could however use javascript to do this dynamically. Have a look at the link below. Hopefully this will help.http://www.phon.ucl.ac.uk/home/mark/audio/play.htm[^]Good luck!
Please Sign up or sign in to vote.
2 Jul 2010
Sandeep Mewara
Take a look at this: Javascript - Event properties[^]. Value for right mouse button is 2, although note that it recommends using mousedown or mouseup events rather than click.Here is a sample from the page showing right click detection:function doSomething(e) { var rightclick; ...
Please Sign up or sign in to vote.
22 Jul 2010
E.F. Nijboer
The dropdown component is explicitly hidden because in IE6 this would otherwise be above the modalpopup. Most good javascript popup libraries that use div element as popup do this. Look at the link below (that is not normally available on the site though) and view the example on the bottom of...
Please Sign up or sign in to vote.
22 Jul 2010
Dalek Dave
STOP!Do nothing for IE6, refuse to work on it, sabotage every product that requires it!It is unsupported, has major flaws and is being phased out across the world.If people still use it and can find functionality, that is their lookout.
Please Sign up or sign in to vote.
2 Jul 2010
Gordon Kushner
The JavaScript file does not generate on the server, but the page does. The reason the code doesn't work is that this " never gets evaluated.What you might do is make the validation script more generic and pass in the control and text to display.In the...
Please Sign up or sign in to vote.
15 Dec 2010
koolprasadd
Use the following codein your head tag type the following functionfunction validateME(){ if(document.getElementById("txtuid").value=="") { alert("Please enter user id"); ...
Please Sign up or sign in to vote.
7 Jul 2010
R. Giskard Reventlov
This should help to explain it: CSS Classes[^]
Please Sign up or sign in to vote.
8 Jul 2010
Prosanta Kundu online
Add CSS Class.ellipsis span { white-space:nowrap; text-overflow:ellipsis; /* for internet explorer */ overflow:hidden; width:190px; display:block;}html>body .ellipsis { clear:both;}html>body .ellipsis span:after { content: "...";}html>body .ellipsis...
Please Sign up or sign in to vote.
22 Jul 2010
Dalek Dave
We don't do your homework.Pointless us doing it as you will learn nothing.Attempt it, then when you run into a particular problem, we can help.However try thinking along the lines of clipboard copy and paste functions.
Please Sign up or sign in to vote.
7 Jul 2010
Sandeep Mewara
Here is a simple example: 1 2 3In Javascript:function CallMeInJS(){ alert("dropdown change was called!");}
Please Sign up or sign in to vote.
8 Jul 2010
sargamlucy
2 alternatives  
Hi All,Could somebody please tell me how do i access the master page control in content page through javascript?I have got some code as follows.Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Dim tb As TextBox =...

Current Participants

Those with articles that match the contest criteria are automatically entered.

R. Giskard Reventlov
United States United States
No Biography provided
Dalek Dave
CEO Ink Bucket Ltd
United Kingdom United Kingdom
Six years since my profile changed.
Still in same job, still in same country.
Earning rather more, working a lot harder.

I seem to know slightly more, which is good on the whole.

Despite my day job I am web designing, (ASP.NET now), still writing VB and VBA, but that is because of a boss who can only just understand VB and keeping my feet wet with C#.

Set up a business, still early days and enjoyable.

Still haven't been voted into public office.
Sandeep Mewara
Software Developer (Senior) Bangalore, India
India India
Xmen Real
CEO
India India
No Biography provided
Anuj Khadloya
Technical Lead Kale Consultants Ltd.
India India
No Biography provided
atverma
Software Developer (Senior)
India India
Atul works at Microsoft as a .NET consultant. As a consultant his job is to design, develop and deploy enterprise level secure and scalable solutions using Microsoft Technologies.

His technical expertise include .NET Framework(4.0, 3.5, 3.0), WPF, WCF, SharePoint 2010, ASP.net, AJAX, Web Services, Enterprise Applications, SQL Server 2008, Open Xml, MS Word Automation.

Follow him on twitter @verma_atul

He blogs at
http://www.atulverma.com
http://blogs.msdn.com/b/atverma
Chris Maunder
Founder CodeProject
Canada Canada
Chris is the Co-founder, Administrator, Architect, Chief Editor and Shameless Hack who wrote and runs CodeProject. He is also co-founder of Developer Media and ContentLab.IO. He's been programming since the 80's and has been, in various guides, an astrophysicist, bacyard mechanic, mathematician, physicist, breeder of carnivorous plants, hydrologist, geomorphologist, defence intelligence researcher and then, when all that got a bit rough on the nerves, a web developer.

His programming experience includes C/C++, C#, SQL, MFC, ASP.NET, TypeScript and far, far too much FORTRAN. He has worked on PocketPCs, Old mainframes, new Macs, cheap phones, and a CRAY YMP C90 behemoth but finds notebooks take up less desk space.

He is kind to small animals and has a soft spot for cheesecake.

Chris was born and bred in Australia but splits his time between Toronto and Melbourne, depending on the weather. For relaxation he is obsessively into road cycling, physiology, occasionally snowboarding and rock climbing, and wishes he were a storm chaser.
Christian Graus
Software Developer (Senior)
Australia Australia
Programming computers ( self taught ) since about 1984 when I bought my first Apple ][. Was working on a GUI library to interface Win32 to Python, and writing graphics filters in my spare time, and then building n-tiered apps using asp, atl and asp.net in my job at Dytech. After 4 years there, I've started working from home, at first for Code Project and now for a vet telemedicine company. I owned part of a company that sells client education software in the vet market, but we sold that and I worked for the owners for five years before leaving to get away from the travel, and spend more time with my family. I now work for a company here in Hobart, doing all sorts of Microsoft based stuff in C++ and C#, with a lot of T-SQL in the mix.
Dinesh Mani
Software Developer
India India
No Biography provided
E.F. Nijboer
Software Developer (Senior)
Netherlands Netherlands
Currently working as a Software Developer on several projects.
Ernesto Herrera
Web Developer Sigo S.A.
Venezuela Venezuela
Ernesto Herrera is a Senior Developer, Architect with more than 12 years experience, actually working with Silverlight Line-of-Bussiness Applications, he holds a MCTS Web Application 2.0 Certification, and have a wide experience with sql server since the 6.5 version, on his free time he likes to play tennis with his wife,kids and friends, also enjoy playing Wii with his sons, he works at Sigo S.A., a retail business located at Margarita Island, Venezuela.
Gil Fink
Technical Lead sparXys
Israel Israel
Gil Fink is a web development expert and ASP.Net/IIS Microsoft MVP. He is the founder and owner of sparXys. He is currently consulting for various enterprises and companies, where he helps to develop Web and RIA-based solutions. He conducts lectures and workshops for individuals and enterprises who want to specialize in infrastructure and web development. He is also co-author of several Microsoft Official Courses (MOCs) and training kits, co-author of "Pro Single Page Application Development" book (Apress) and the founder of Front-End.IL Meetup. You can read his publications at his website: http://www.gilfink.net
Gordon Kushner
Software Developer (Senior)
United States United States
No Biography provided
idenizeni
United States United States
none
Jamal Seyedi
Iran (Islamic Republic of) Iran (Islamic Republic of)
No Biography provided
jayantbramhankar
Student
India India
I'm student (CE).
Johnny J.
Software Developer (Senior)
Sweden Sweden
Born in Copenhagen, Denmark
Have been living in Paris, France and L.A., The United States
Now live in Stockholm, Sweden

Started programming when I got my first VIC 20, and a few months later on Commodore 64. Those were the days!

Studied programming at the Copenhagen Engineering Academy

Professional console, winforms and webforms programming in Comal, x86 Assembler, Fortran, Pascal, Delphi, Visual Basic 3 through 6, Classic ASP, C# and VB.NET

I now work as Senior Microsoft Dynamics AX and .Net programmer, and have a number of projects in various states of progress to work on in the spare time...
koolprasadd
Technical Lead
India India
Hi there, I am Prasad. Author, Blogger, contributor and passionate about Microsoft .NET technologies. I like to write an articles/blogs on different .NET aspects and like to help Developers, to resolve their issues and boost them on Microsoft Technologies.


Certifications: Microsoft Certified professional (MCP), Microsoft Certified technology specialist (MCTS), Agile-Scrum Master.


Awards: Microsoft Re-connect MVP (GSC Member), Most valuable member at dotnetspider, Most popular curator, Most active curator, featured curator at Microsoft Curah, Editor at dotnetspider.


Microsoft MVP 2014 [ASP.NET/IIS]
Click here for more .NET Tips
-After all Knowledge is an endless entity
Leonardo Bruno Lima
United States United States
No Biography provided
marc9889
Software Developer (Senior) Jacobs Technology
United States United States
No Biography provided
Martin Jarvis
Software Developer (Senior) Freestyle Interactive Ltd
United Kingdom United Kingdom
I'm a lead developer for Freestyle Interactive Ltd where we create many wonderful websites built on Microsofts ASP.Net and Ektron CMS.

I've been developing .Net applications (both Windows and Web) since 2002.
OriginalGriff
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?
Prosanta Kundu online
Web Developer
India India
I am a Software Engineer and having 11+ years of experience in software industry. Currently working on a reputed MNC at Kolkata in C#,ASP.NET, SQL Server and JQuery.
raju melveetilpurayil
Software Developer (Senior)
United Kingdom United Kingdom
Microsoft Certified Professional Developer.
Rutvik Dave
Founder Centramation Systems Pvt. Ltd.
India India
No Biography provided
Sabarinathan A
Architect
India India
I have been programming for last 20 years on various platforms including .NET, Visual Basic 6, Oracle and SQL server.

I decided to write articles when I have free time hoping to share my thoughts with you.

To know more about me visit http://sabarinathanarthanari.com
sargamlucy
India India
No Biography provided
Shining Legend
Software Developer
India India
I am a Software Developer in Dotnet technologies. I also provide online training in dotnet technologies.
Sunasara Imdadhusen
Technical Lead Infostretch Ahmedabad-Gujarat
India India
Aspiring for a challenging carrier wherein I can learn, grow, expand and share my existing knowledge in meaningful and coherent way.

sunaSaRa Imdadhusen


AWARDS:

  1. 2nd Best Mobile Article of January 2015
  2. 3rd Best Web Dev Article of May 2014
  3. 2nd Best Asp.Net article of MAY 2011
  4. 1st Best Asp.Net article of SEP 2010


Read More Articles...
tanvon malik
Pakistan Pakistan
tanvon malik ( real name Tanveer Ahmad )I am a CNC Programmer, cnc setter, cnc operator. want to know about me visit my websites.
CNC Programming
CNC Manuals
DXF & GCode Files with Online Viewers

I been in Switzerland MAG former +FMS+ for CNC training.


Most interesting technologies I like COM MFC DirectShow such as filter development. I am from Pakistan.
Have worked on projects mostly related video capturing, video data processing and real time object tracking on videos. For these I have worked on projects which use "Open CV Library". Which is mostly used for capturing data and its processing.
You must sign in to participate in this contest.
This contest has ended.
1 Jul - 31 Jul 2010