News in the Category: ASP.NET Subscribe to the rss of this category.

Total posts: 16193 | Sort by Views | Sort by Hits

The difference between ID, ClientID and UniqueID

the telerik blogs, June 6, 2008
Views: 50,057 | Hits 81

I this post I will try to explain the difference between those three commonly used properties. Each property is described in a separate section. Attached you can find a sample web site as well as two ...

vBulletin still the best ASP.NET Forum Software

Andreas Kraus: C#, ASP.NET, SEO, September 1, 2007
Views: 41,908 | Hits 675

I’m building a pretty big ASP.NET Application at the moment for the gaming sector which needs to have a forum for discussions about site related stuff, games and all kind of topics.I would really like...

ParameterizedThreadStart - new .NET 2.0 Enhancement, and a QUIZ

Sahil Malik [MVP], July 24, 2005
Views: 41,621 | Hits 56

So how do you start a new thread in .NET 1.1 Well, it's easy, you use Thread.Start. The problem is, the constructor for System.Threading.Thread takes in a parameter called ThreadStart, which is a del...

Hide a GridView column at runtime

Fredrik Norméns Blog, October 19, 2005
Views: 40,622 | Hits 2,460

I thought I wrote a post about how to hide a GridView column at runtime but didn’t. So I thought you maybe will be interested in a simple example.   To hide a column at runt time you can ho...

How to manage controller/action not found in ASP.NET MVC

The Code Project Latest Articles, May 22, 2013
Views: 35,893 | Hits 68

Manage controller/action not found in ASP.NET MVC...

Gridview control with dropdownlist and DBNull

Hannes Preishuber, February 2, 2006
Views: 35,744 | Hits 517

With Templatefields it is easy to use a dropdown control for value selection. The problem begins if the field in the table have a value which is not in the list of the dropdown. Databinding fails on r...

"Can't create file: FILE NAME.pdf. Right-click..." Error in Outlook 2003

Jason N. Gaylord, January 31, 2006
Views: 29,750 | Hits 607

Ever receive an error message similar to: "Can't create file: FILE NAME.pdf. Right-click the folder you want to create the file in, and then click Properties on the shortcut menu to check your permis...

Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack

Rick Strahls WebLog, August 10, 2006
Views: 18,364 | Hits 1,054

All of a sudden I’m getting this error message in my inbound Web Service that’s been working fine for several days:   Unable to evaluate expression because the code is optimized or a ...

ASP.NET 2.0 and "Validation of ViewState Mac failed" exception

Jotekes Blog, February 2, 2006
Views: 17,143 | Hits 596

If you get this Exception [HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration spe...

JavaScript HtmlDecode

JohnPapa.net, February 10, 2006
Views: 17,125 | Hits 1,293

I lost my function! Its a good thing I found a nice snippet of javascript code while surfing around tonight. Its an oldie but goodie that decodes HTML using javascript. Thanks to Andy Oakley for ...

ASP.NET: causing a postback after modal dialog is closed

Jotekes Blog, August 5, 2006
Views: 15,219 | Hits 293

This one was asked on email lists. Here is a sample. It also demonstrates how to combine event validation registration for the custom postback mechanism (postbacking in behalf of a Button) parent.aspx...

Weird Error - "Properties\AssemblyInfo.cs" was specified more than once in the "Sources" parameter

Sahil Malik [MVP], March 29, 2006
Views: 14,959 | Hits 88

I think I may have stumbled across yet another bug in the VS2005 IDE. Check this out. 1. Create a class library project 2. Go to properties, and overwrite the AssemblyInfo.cs with any other Assem...

An ASP.NET 2.0 AutoComplete DropDownList...

DotNetJohn.Com, March 29, 2006
Views: 14,032 | Hits 3,850

In this article I'll show you how to easily create a DropDownList control in ASP.Net 2.0 with Auto-Complete...

Referencing the ASPNETDB Database

Scott on Writing, January 13, 2006
Views: 13,021 | Hits 195

One of ASP.NET 2.0's coolest new features is the Membership system, which provides a standardized means for implementing user accounts on a system along with an API for interacting with the user accou...

LoadControl a UserControl - *and* pass in Constructor Parameters

Sahil Malik [MVP], March 5, 2006
Views: 12,902 | Hits 207

The inability of LoadControl to accept Constructor Parameters is a real pain in the donkey. This post tells you how to get around that hella annoying issue. The awesome thing about ServerControls in A...

Replacing deprecated System.Net.WebProxy.GetDefaultProxy() in .NET 2.0

Rick Strahls WebLog, July 11, 2005
Views: 12,809 | Hits 1,008

I’m in the final stages of getting my West Wind Web Store app ported over to 2.0 by getting rid of all of the obsolete function calls and other non fatal messages. Frankly most of these depreca...

Master Pages design templates for free

ASP.NET Announcements, June 17, 2006
Views: 12,801 | Hits 570

Hello everyone,I have created a design templates that anyone who have even a little ASP.NET background could play around. If you are looking for something to awaken your senses please check my blog at...

How to understand System.NullReferenceException, Object reference not set to an instance of an object - level 200

Jeffrey Palermo, August 19, 2005
Views: 12,725 | Hits 387

You probably get this error message more than others, and the cause is that a variable is used in code, but that variable doesn't contain a reference to any object in memory.  If you try to call ...

SharePoint Erroe: HTTP Error 403 - Forbidden: Access is denied.

Richard Dudley, December 22, 2005
Views: 11,831 | Hits 470

This is for people who get the following error either immediately after you create a WSS site, or when you try to access a WSS site or SPS portal: You are not authorized to view this pageYou do not h...

Speeding Up FireFox When Using the ASP.NET Development Server from Localhost

Scott on Writing, July 9, 2008
Views: 11,755 | Hits 41

I have long used FireFox as my default browser for surfing the web, but I typically test my ASP.NET pages on Internet Explorer for a couple of reasons: Some of the larger software projects I work on ...

ASP.NET: What is the function of FindControl method?

Jotekes Blog, August 12, 2006
Views: 11,576 | Hits 282

Asked on ASP.NET Forumshttp://forums.asp.net/thread/1369082.aspx What is the function of FindControl method? I replied: To return the control instance which has given ID. Every control has FindCo...

Setting the value of Password Fields in ASP.NET 2.0 (a tip and rant rolled up into 1)

David Silverlights XML and .NET GrokSpot, August 11, 2005
Views: 11,098 | Hits 42

     I just learned a great tip for setting the value of a password field in asp.net.  For those of you who have ever attempted to work with a TextBox where the TextMode ...

Convert a byte array to a string and string to byte array

Sahil Malik - blah.winsmarts.com, July 5, 2006
Views: 11,080 | Hits 151

Okay the actual answer to this is quite complex, because it really depends on the kind of encoding you are using. But assuming that you are using ASCII encoding, (the rest are similar), the code looks...

Creating print preview page dynamically in ASP.NET

ASP.NET Daily Articles, May 7, 2006
Views: 10,948 | Hits 2,059

An article on creating print preview page dynamically by javascript code. You do not need to make any aspx page to view print preview and you can also print any portion of the print page...

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Rick Strahls WebLog, May 27, 2006
Views: 10,914 | Hits 910

Bummer. I've been mucking around with some more custom databinding that integrates validation into the databinding process. One of the things the control does is automatically add 'notification' icon...

Multi-column dropdown combobox - an ASP.NET 2.0 server control

The Code Project Latest Articles, February 10, 2006
Views: 10,696 | Hits 1,844

Multi-column dropdown combobox - an ASP.NET 2.0 server control....

How To: Use a CheckBox In A Template Column And Still Access GridViewRow Data

Jason N. Gaylords Blog, July 12, 2006
Views: 10,583 | Hits 154

Teemu "Joteke" Keiski has helped me solve a very trivial task. I had the simple request of accessing a GridView row data by checking a checkbox within that row. Based on the row data, I'...

"Debugging is not supported under current trust level settings"

Integration through Biztalk, April 28, 2006
Views: 10,394 | Hits 86

If you get the following error while trying to open ASP.net page on the host server. "Debugging is not supported under current trust level settings" You will also get 500 error if you hit th...

Strange Error: provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe

Sahil Malik [MVP], November 5, 2005
Views: 10,330 | Hits 52

Now it is a good thing that ADO.NET 2.0 actually gives you meaningful errors. Here is an example - A connection was successfully established with the server, but then an error occurred during the pre...

Dynamic Loading of User Control with ViewState Preserved (Live Demo)

ASP.NET Daily Articles, November 5, 2005
Views: 10,204 | Hits 3,572

Many Programmers stay away from loading User Control dynamically on the Web Form because of the complexity associated with it's state management and event handling. It is easy to load a User Control d...

Change the PagerTemplate programmatically

Fredrik Norméns Blog, August 31, 2005
Views: 9,939 | Hits 2,375

In an early post I wrote about how to use the PagerTemplate to create your own custom paging layout. This time I will show you how you can do it programmatically. There are two properties that you can...

Extend the MembershipUser class

Fredrik Norméns Blog, June 22, 2005
Views: 9,857 | Hits 2,719

I have seen and also got several questions about how to extend the MemberhsipUser class with some extra properties. I hope this post can give you some ideas.   As you may all know, the Membership...

Is Identity Map a cache

Patrik Löwendahls shout, May 13, 2005
Views: 9,820 | Hits 354

Lately I've encountered a couple of opinions about the Identity Map being a cache. I've seen it both on the Swedish architecture forum (http://www.swedarch.com) and while beta reading an upcoming boo...

SubmitDisabledControls - A New Property in ASP.NET 2.0

Scott on Writing, January 23, 2006
Views: 9,722 | Hits 172

Last week I blogged about the differences between read-only and disabled HTML elements, the main one being that read-only controls' values are posted back to the server on form submission, while disab...

DropDownList in a FormView control

mikes web log, February 8, 2006
Views: 9,533 | Hits 2,062

Another in an apparently relentless series of posts about trying to see how much can be done with the new data controls in ASP.NET 2.0 without writing code. It's pretty easy to take advantage of the c...

Change cell color in gridview depending the inner value

Hannes Preishuber, January 9, 2006
Views: 9,484 | Hits 1,020

As long time reader ;-) of my blog you know: i am fan of the declarative ASP.NET way ( especialy 2.0) But sometimes i reach the limits. This is e.g. for changing font color in a cell if a value reache...

Using TableAdapters and Transactions

Sahil Malik [MVP], October 19, 2005
Views: 9,254 | Hits 79

Okay, one more blog post and I'll sleep. You may notice that TableAdapters do not have direct Transactional support built in - which is a bit annoying, but thats besides the point. The question is, ho...

How To: Format RadGrid PDFs

the telerik blogs, September 19, 2007
Views: 9,185 | Hits 109

On Monday, I showed you some the new settings in RadGrid 5 the enable you to control certain aspects exported PDFs. We looked at how you can easily set the PDF's metadata, change its filename, and eve...

Event Calendar [ ASP.NET 2.0 / C# ]

The Code Project Latest Articles, February 11, 2007
Views: 9,141 | Hits 1,563

Basic Calendar Control of ASP.NET 2.0 can be extended to cater one of most frequent requirement of tracking events, project milestones, history, schedule etc....

MySpace China Blogs Powered By Subtext

youve been HAACKED, October 29, 2007
Views: 9,052 | Hits 550

An undisclosed source informed me that MySpace China is using a modified version of Subtext for its blogging engine. I had to check it out for myself to confirm it and it is true! Check out my first M...

FIX: You receive an "Error 1053: The service did not respond to the start or control request in a timely fashion" error message when you stop or pause a managed Windows service

kbAlertz.com :: .NET Framework 1.1, December 3, 2005
Views: 8,976 | Hits 579

839174 ... FIX: You receive an "Error 1053: The service did not respond to the start or control request in a timely fashion" error message when you stop or pause a managed Windows service Fixes t...

On ASP.NET Forums: How to develop a command-capable DropDownList

Jotekes Blog, January 21, 2006
Views: 8,860 | Hits 359

Enrique asked on ASP.NET Forums how to develop such custom control which is capable to work like Button controls (ImageButton, LinkButton and standard Button) when used with command-capable contr...

eBook 51 Tips, Tricks and Recipes with jQuery and ASP.NET Controls

MS-Joe, October 29, 2009
Views: 8,843 | Hits 1,158

 I found this cool eBook and wanted to share it with you all since jQuery is. more and more, become a common part of the ASP.NET Development experience. The book includes… · 51 Tip...

Converting a byte array to a string and string to byte array

Sahil Malik [MVP], August 24, 2005
Views: 8,818 | Hits 35

Okay the actual answer to this is quite complex, because it really depends on the kind of encoding you are using. But assuming that you are using ASCII encoding, (the rest are similar), the code looks...

Asp.net Sample Resume

The Code Project Latest Articles, March 14, 2008
Views: 8,720 | Hits 734

AJ...

Maintain Scroll Position on Postback in ASP.NET 2.0

Scott on Writing, December 14, 2006
Views: 8,626 | Hits 166

When working with alengthy webpage that spans many vertical pages, scrolling down and then doing something that causes a postback results with the posted back page sitting back up at the top rather th...

Adding Rendering with SetRenderMethodDelegate() - aeh, sort of

Rick Strahls WebLog, June 23, 2006
Views: 8,522 | Hits 1,334

I stumbled onto something I didn’t know before in ASP.NET control rendering which is bound to prove useful in some scenarios.  The Control class has a SetRenderMethodDelegate method that al...

A Simple ASP.NET Tab Control Using the MultiView control

The Code Project Latest Articles, February 22, 2006
Views: 8,522 | Hits 1,528

A simple tab control using the ASP.NET MultiView and Menu controls....

Using Telerik Grid for ASP.NET MVC without any server-side code

the telerik blogs, November 9, 2009
Views: 8,499 | Hits 72

Since all Telerik UI components for ASP.NET MVC are actually jQuery plugins one can use them without any server-side code (or ASP.NET MVC). In this blog post I will show how to use the grid and bind i...