Asp Net Source.com's BlogAspNetSource's Official Blog

asp.net source code blog

Categories

Archives

2/18/2010 - Why is there an ASP.NET account on my machine
1/16/2010 - How to Open a Redirect in a New Window
1/2/2010 - Convert string to datetime Using C#
12/8/2009 - Using ASP.NET FileUpload to work with Images
11/24/2009 - Detect and Replace URLs in Text using Regex
11/17/2009 - Display RSS Feeds Using XmlDataSource
11/12/2009 - Get Current Theme Programmatically
11/10/2009 - Add Default ListItem to a DropDownList Control
10/20/2009 - GridView with LINQ Programatically
9/28/2009 - Server.HtmlEncode vs HttpUtility.HtmlEncode
8/20/2009 - Get List of sub Directories
7/29/2009 - gridview hide header
7/27/2009 - EmptyDataText Property in the Repeater Control
7/11/2009 - XmlDataSource GridView Example
7/5/2009 - Displaying multiple static paths by single page
6/8/2009 - Categories of classes in the System.Security.Cryptography Namespace
6/1/2009 - Delayed Loading of Page Parts
5/7/2009 - Using MySql in ASP.NET project, cofiguring, exaples with SqlDataSource, GridView, etc
4/29/2009 - What Are You Coding Right Now
4/23/2009 - Concat Byte Arrays in C Sharp
4/13/2009 - Visual Studio 2010 is Coming
3/16/2009 - automatic refresh page in some interval with javascript
2/21/2009 - we have just launched a new asp.net related site
2/18/2009 - Try Catch vs. Using
2/10/2009 - How to Set Language in web.config
1/30/2009 - A New Site for Free Online Test for Developers
1/21/2009 - Easy way to send email from gmail account using ASP.NET 3.5
1/15/2009 - Easy way to Dispaly a Word Document in Web Page
12/20/2008 - Create Yes No Voting Control
12/20/2008 - Our Team
12/15/2008 - Select xml node by other node
12/3/2008 - Forget about tedious mistakes when Validate through W3C
11/19/2008 - Fields removed when Download our Products
11/13/2008 - How to select all text in textbox when it gets focus
11/7/2008 - LINQ DataContext Class
11/3/2008 - PNGs and Browser Support
10/28/2008 - Check site loading by different locations in the world
10/27/2008 - Fix the SQL Connection Problems
10/26/2008 - Encrypt Connection Information
10/25/2008 - Generate Sitemap for your Site
10/23/2008 - Introduction to Design Patterns
10/21/2008 - Differences between Components, Controls, and Behaviors
10/20/2008 - What Is LINQ to SQL
10/19/2008 - Evolution of SQL Server
10/16/2008 - Loading Master Pages Dynamically in ASP.NET 3.5
10/15/2008 - A Brief Overview of Validation in ASP.NET 3.5
10/14/2008 - Automatically Hiding the Login Control from Authenticated Users
10/9/2008 - Check the load time of your website
10/5/2008 - Screw it, Lets RE-Design it all
10/2/2008 - Additional ASP.NET AJAX Libraries
9/29/2008 - The Big Problem of WYSIWYG Editors
9/29/2008 - New Forum for ASP.NET and Web Started
9/25/2008 - Optimize Page Loading Part 2 - Tips When work with Images
9/23/2008 - 10 Design Tips
9/19/2008 - C Sharp Features in Framework 3.0
9/15/2008 - Optimize Page Loading - 20 General Tips and Tricks
9/7/2008 - what is asp.net
9/5/2008 - Why Client Validation is not enough to secure our web app
8/29/2008 - Optimize Page Loading when works with DataBase
8/20/2008 - Highlight text in GridView using javascript
8/4/2008 - ContentPlaceHolder in title tag, Is That Bug in VS 2008
8/1/2008 - Why should we use ResolveUrl
7/31/2008 - Guid.TryParse in Framework 3.5
7/30/2008 - Redirect to current page
7/28/2008 - Validate Max Length of TextBox text
7/24/2008 - Easiest way for Row Numbering in GridView
7/23/2008 - Framework 3.5 Disadvantage of lamda expressions
7/21/2008 - LINQ - display filed from parent table in LinqDataSource and GridView
7/17/2008 - LinqDataSource and Guid passed as QueryStringParameter
7/14/2008 - Inappropriate name of DetailsView in msdn
7/9/2008 - Hide form after user download file
7/7/2008 - Menu in Master Page. How to set selected item from Page
7/4/2008 - Overview of New in Framework 3.5
7/2/2008 - New in Framework 3.5 - Generic Class HashSet
7/2/2008 - Present XmlDataSource data with Repeater
7/1/2008 - How to Validate ImageButton control through W3C
6/30/2008 - Using Find Method in Generic Controls With VB.NET - List
6/30/2008 - Using Find Method in Generic Controls With CSharp - List of T
6/30/2008 - Script injections using ASP.NET

References

 
Category Name: general
 
posted by Tihomir Ivanov on 29 April 2009 07:38
Posted in: fun general 

Hi friend,

first, sorry the rarely blog postings recently.

I've spend a while for working on a new site:

www.Dev-The-Web.com

It just tries to understand what are you coding right now ? :)

I'll be very thankful to hear your opinions about it :)

 

P.S. While I was working for the new site, I learn a lot of new things that I'll share as post soon :)

 

Best Regards,

Tihomir Ivanov

posted by Tihomir Ivanov on 13 April 2009 05:15
Posted in: general 

Wow, Visual Studio 2010 is coming, here's list of the features:

1. Enhanced User Experience

- Clear UI Organization
- Reduced clutter and complexity
- Improved editor
- Better support for floating documents and windows
- Enhanced document targeting
- Focused animations for action feedback

2. SharePoint Development in Visual Studio 2010

- Customizing SharePoint with the help of new project and item templates.
- Creating Web parts and application pages using new visual designers.
- Designing association and initiation forms for your workflows.
- Aggregating and integrating back-end data into your application using Business Data Catalog (BDC) models.
- Importing existing solution packages (.wsp files) and then modifying and extending them.
- Customizing features and packages using new designers and explorers.
- Deploying and debugging SharePoint applications as easily as pressing F5.
- Navigating SharePoint sites using Server Explorer.

Visual Studio 2010

3. Democratizing Application Lifecycle Management

- Discover and identify existing code assets and architecture with the new Architecture Explorer
- Design and share multiple diagram types, including use case, activity and sequence diagrams
- Improve testing efforts with tooling for better documentation of test scenarios and more thorough collection of test data
- Easily identify and run only the tests impacted by a code change with the new Test Impact View
- Enhanced version control capabilities including gated check-in, branch visualization, and build workflow

4. Inspiring Developer Delight

- Understand existing (and write new) code
- Intuitive Web development from the back-end to the end result
- Wrangle disparate C++ code into one arena
- Build new Windows® 7 applications or upgrade existing applications
- Enable Office tools to make your solutions more flexible and productive for specific needs

...

I didn't find nothing about LINQ approvements, but let's hope that LINQ in .NET Framework 4.0 will be better :)

Learn more HERE

posted by Tihomir Ivanov on 21 February 2009 17:08
Posted in: general 

Hi all,

I've just launch an asp.net related sites index. I'll try to create an index of all asp.net related sites - general, communities, blogs, forums, hosting, etc. I'll be very thankful to hear your opinion about it, could it be useful to someone or I've just lost my time :)

If you're owner of an asp.net related site, you can send me info about it to add it to the asp.net index.

Thanks in advanced for all replies :cool:

posted by Tihomir Ivanov on 30 January 2009 09:49
Posted in: general 

Hi all,

I've started a new site for free online tests for developers - asp.net, .net framework, css, javascript, sql, php, etc.

link: Free Online Tests

I'll be very thankful to hear your opinions about the site - design, idea, what can be improved, etc.

Thanks

 

posted by Tihomir Ivanov on 03 December 2008 07:45
Posted in: asp.net general 

Let's begin with an example of simple asp.net code:

<asp:ImageButton ID="_imgBtn" runat="server" ImageUrl="~/images/Img.jpg" Height="50px" 
Width="50px" BorderWidth="0px" BorderStyle="None" />


That's a valid asp.net code and it works fine, BUT when you try to validate it 
through W3C (http://validator.w3.org/) you will see error like this:

Error Line X column X : there is no attribute "border".

This is a problem caused by W3C running validation whilst reading the HTML rendered for a simple browser like Netscape !

Do you want your pages to be valid for old-fashioned browsers which nobody uses anymore?

If the answer of last question is 'No' here's a solution:

Add a BrowserFile.browser file with the content below inside an App_Browsers folder in the app's root. The section for validation tells it

to use the same code as IE 7 or Firefox will. Add this and your page should validate:

<!--
You can find existing browser definitions at
<windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers
-->
<browsers>
<browser id="NewBrowser" parentID="Mozilla">
<identification>
<userAgent match="Unique User Agent Regular Expression" />
</identification>

<capture>
<userAgent match="NewBrowser (?'version'\d+\.\d+)" />
</capture>

<capabilities>
<capability name="browser" value="My New Browser" />
<capability name="version" value="${version}" />
</capabilities>
</browser>

<browser refID="Mozilla">
<capabilities>
<capability name="xml" value="true" />
</capabilities>
</browser>
<browser id="w3cValidator" parentID="default">
<identification>
<userAgent match="^W3C_Validator" />
</identification>

<capture>
<userAgent match="^W3C_Validator/(?'version'(?'major'\d+)(?'minor'\.\d+)\w*).*" />
</capture>

<capabilities>
<capability name="browser" value="w3cValidator" />
<capability name="majorversion" value="${major}" />
<capability name="minorversion" value="${minor}" />
<capability name="version" value="${version}" />
<capability name="w3cdomversion" value="1.0" />
<capability name="xml" value="true" />
<capability name="tagWriter" value="System.Web.UI.HtmlTextWriter" />
</capabilities>
</browser>
</browsers>

 

That's All :) Happy Coding :)

posted by Tihomir Ivanov on 19 November 2008 17:03
Posted in: general 

We've received some mails form our visitors, they asked us why we need to collect their names and e-mails when they download our free products. We've really don't need users names and e-mails. That's why we removed all fields for downloading our free products:

 

To download a product, just click on the 'Download NOW' button.

That's all. We hope to make your visits here more and more comfortable :)

posted by Tihomir Ivanov on 23 October 2008 10:33
Posted in: general 

Design patterns were introduced in Erich Gamma, Richard Helm, Ralph Johnson,
and John Vlissides’s seminal work Design Patterns: Elements of Reusable Object-
Oriented Software (Addison-Wesley).
There are only 23 classic patterns, and a good programmer can learn
the names and uses of all of them with some practice.
These core patterns address issues in mainline object-oriented programming (OOP),
and the original implementations were presented in C++ and Smalltalk (the primary
OOP languages at the time they were developed). Since then, other books have
implemented the patterns in Java, Visual Basic, and C#. As the value of the pattern
concept has become accepted, new patterns have been proposed to add to the
original list. In addition, there are now patterns that are applicable to specific areas,
such as software architecture, user interfaces, concurrency, and security. Although
these patterns are extremely important in their areas, their adherents are fragmented,
and the core set of universally accepted patterns has not been expanded.
The 23 patterns are divided into three groups: creational, structural, and behavioral.

Creational Patterns

The creational patterns aim to separate a system from how its objects are created,
composed, and represented. They increase the system’s flexibility in terms of the
what, who, how, and when of object creation. Creational patterns encapsulate the
knowledge about which classes a system uses, but they hide the details of how the
instances of these classes are created and put together. Programmers have come to
realize that composing systems with inheritance makes those systems too rigid. The
creational patterns are designed to break this close coupling.

Structural Patterns

Structural patterns can be employed while a system is being designed, or later on
during maintenance and extension. In fact, some of them are specifically useful in the
post-production stages of the lifecycle of a software system, when changes are introduced
that were not foreseen and when even the interfaces between components
need updating. Thus, sometimes when you want to add functionality, you will be
working with existing classes that cannot be changed.

Behavioral Patterns

Behavioral patterns are concerned with algorithms and communication between
them. The operations that make up a single algorithm might be split up between different
classes, making a complex arrangement that is difficult to manage and maintain.
The behavioral patterns capture ways of expressing the division of operations
between classes and optimize how the communication should be handled.

 

12


 
Asp Net Source.com


 
Our Sponsors:  Asp.net file upload component  |   Flash file uploader