About Asp.Net,c#,.NET framework,Related Stuff ...


Blog For Free!


Archives
Home
2004 March
2004 February
2004 January

tBlog
My Profile
Send tMail
My tFriends
My Images


Sponsored
Blog



www.solutionmentor.com
03.31.04 (5:42 am)   [edit]
I started blogging at


http://www.solutionmentor.com" title="http://www.solutionmentor.com" target="_blank"http://www.solutionmentor.com...
 
Converting from HTML to XHTML ....
02.05.04 (8:46 pm)   [edit]
First of all , why there is need for converting from HTML
to XHTML
This =http://www.nypl.org/styleguid... target=_blankarticle gives excellent reasons for adopt XHTML..
A nice article presented in code project for the conversion...

8 simple rules to transition from HTML to XHTML

 
Use of Jagged Arrays
02.04.04 (10:26 pm)   [edit]
A jagged array is an "array of arrays".
it will be particularly useful when using 'n' dimensional array where each row will be different in length.
Another advantage is we can perform different operations such as 'sort' , 'reverse' for each individual row.
 
Minimize the number of server-side controls...
01.21.04 (9:48 am)   [edit]
Minimize the number of server-side controls. Server controls use not only view state, but also
have their own associated processing costs.

 
Fragment Caching And User Control
01.21.04 (9:29 am)   [edit]
Programmatically accessing the user control which contains [i]cache directive[/i] will throw an error.
[b]Reason ........[/b]
only for the first time , the user control will be getting instantiated ..
After that all calls to user control will be picked up from cache.. so the user control won't be instantiated programmatically, [i][b]resulting in an Exception[/b][/i].
 
Cache anything that won't change too often
01.21.04 (9:20 am)   [edit]
Cache where possible anything that won't change too often, and which otherwise you would have to keep reading from disk.
 
Object Relational Mapping Tool ...ORM.NET
01.19.04 (2:33 am)   [edit]
auto-generates a data layer object model based on your database schema. The generated run-time component exposes all tables as classes and columns as properties.
Some Of the Problems .NET developers face are
  • Developers must create several stored procedures or embed Transact SQL statements directly in their application to access and modify data. This presents another layer of complexity and ultimately forces a compromise to the overall application design. In addition, SQL Statements and stored procedures do not promote re-use.

  • Making changes to the underlying database create errors which are hard to detect and fix until run-time.

  • Crucial business rules are dispersed between the application and data layers as well as stored procedures. Making it more difficult to enforce consistency on how data is modified and business rules applied.


Read it at the external site...
 
Another Code Generation Tool.....DeKlarit... integrates with visual studio IDE
01.18.04 (8:37 pm)   [edit]
DeKlarit is a tool that integrates into Visual Studio .NET and helps you design, develop and maintain any database based applications.

DeKlarit lets you create 2 types of objects: Business Components and Data Providers.
Business Components represent "views" of reality —such as orders, customers, employees— and have user-definable structures and sets of rules.

DeKlarit uses all these structures to design the normalized database schema. Once the schema is designed, the database creation procedures are automatically generated, and so are the components required to manage each Business Component's data. Data Providers are intelligent query objects used to create a hierarchical view of the data; DeKlarit finds the tables and relations needed to navigate to the data.

Read More and download trial version @ =http://www.deklarit.comwww.deklarit.com
 
The Fastest way to create web applications...
01.18.04 (6:48 am)   [edit]
Are you looking for code generation tool which reduces your developement time by 50%... then surely you have to check the following url.c#,vb.net supported.
Code Generation Tool...
 
"using" keyword in the C#
01.15.04 (9:34 pm)   [edit]
we are using "using" keyword for namespace inclusion.
Another use of [i]using[/i] keyword is it can be used for aliasing.

Example:
[i] namespace SampleAppln
{
using con= System.Configuration.ConfigurationSettings;
class A
{
void GetData()
{
string strCon = con.AppSettings["connectionSt ring"];
.....



}
}
}[/i]
 
ViewState is Corrupt or Invalid for this page...
01.13.04 (10:39 pm)   [edit]
There are three scenarios where this kind of error message will come.
one of the case is when using Server.Transfer method.
If you are using Server.Transfer method in your web , then
the following solution could solve your problem.
Assume that you are having pages Page1: contains Server.Transfer method ;it points to the URL Page2 ...then
Solution: set the second argument of the Server.Transfer method as false; That's all.
Explanation: MAC (Message Authentication Check) on View state will fail ( the result of which
you received this error message), if this second argument set as "True".
why is it so?
The second argument true means you are trying to pass query string , form field values including hidden field _ViewState of Page1 to Page2.
EnableViewStateMAC(Messag eAuthenticationCheck) is defaultly true. meaning MAC will be performed on every page (Note: A view state MAC is an encrypted version the hidden variable that a page's view state is persisted to when sent to the browser. When you set this attribute to true, the encrypted view state is checked to verify that it has not been tampered with on the client.)
Naturally MAC will be performed on Page2 also , results in "ViewState Corrupted Message".
because it has got two View States Page1 and Page2 ... MAC is designed perform its check on every Page ...
so The options are either you have to specify EnableViewStateMAC as[b] false[/b](not recommended one)
or The second arugment of Server.Transfer as [b]false[/b].
 
passwords in text boxes are not posted back to forms
01.12.04 (6:55 am)   [edit]
That is the default... To get the password on postback add following to the Page_Load Event
if (txtPassword.TextMode == TextBoxMode.Password)
txtPassword.Attributes.Add("value", txtPassword.Text);
 
Session State or ViewState?
01.12.04 (4:59 am)   [edit]
There are situations where we can't use viewstate..

  1. For bulk Data..because it increases Html Payload

  2. Naturally viewstate mechanism has to serialize/deserialize data (which are objects) to and forth... but Serialization is not optimizied for all objects :ex Dataset


Read More..
 
.NET Data Caching ...
01.11.04 (10:31 pm)   [edit]
every developer needs to know , how to make application to respond faster ...
here it is.. caching is the one of the way..
Read More...
 
Search Engine Optimization Tips
01.11.04 (10:24 pm)   [edit]
Here is the Site , talks about Search Engine Optimization and Marketing Stuff
Click Here....

 
Migration Assistants ....
01.11.04 (9:57 pm)   [edit]
 
Developers Free Tools
01.11.04 (8:36 pm)   [edit]
Click on this [i]link[/i] to find more about free .NET related free developer Tools
 
Solidify Your C# Application Architecture with Design Patterns
01.11.04 (8:25 pm)   [edit]
A nice article in MSDN magazine.
[b]A design pattern can solve many problems by providing a framework for building an application. Design patterns, which make the design process cleaner and more efficient, are especially well-suited for use in C# development because it is an object-oriented language. Existing design patterns make good templates for your objects, allowing you to build software faster. This article describes several popular design patterns you can use in your own applications, including the singleton, the decorator, the composite, and the state classes, which can improve the extensibility of your applications and the reuse of your objects. [/b] Read More ...
[url=]http://msdn.microsoft.com/msd...[/url]
 
Microsoft's top 10 challenges for 2004
01.10.04 (9:50 am)   [edit]
There is a lot of talk about new products , Yukon, ASP.NET "Whidbey" etc... but what is the reality...

:arrow: This article provides facts in enduser/developer/busines s person point of view..