Monday, August 11, 2008

How to add service reference dynamically from user control? Microsoft Ajax

First, Create a web page default.aspx and put the html code as following..

<asp:ScriptManager ID="MainScriptManager" runat="server">

Now, Create a usercontrol my first user control

Create a function called AddScriptReference as following...

private void AddScriptReference()
     ScriptManager scriptManger = ScriptManager.GetCurrent(this.Page);
     if (scriptManger != null)
         ServiceReference serviceReference = new ServiceReference();
         serviceReference.InlineScript = false; 
         throw new Exception("Script Manager Not Found");
Then override controls init event as following...

protected override void OnInit(EventArgs e)

Thursday, July 31, 2008

What is LINQ? LINQ Developer Resources

LINQ is Language Integrated query. It is a integral part of visual studio 2008 and Microsoft .NET Framework 3.5. It is object to database mapping technology thorough which you can query any type of collections of object,XML of database.


Recently I am goggling about the LINQ and I have found following great resources for developers:

LINQ Resources:

Linq for Oracle:


.NET 2.0 Or higher transaction model to use it with linq:


How to use transaction with linq:


Inside the linq datacontext site to better understanding of linq:


Linq to SQL(part 1 to 7 -Total Understanding of linq):


A good article about-LINQ to SQL : Using Transaction:


Using LINQ in ASP.NET (Part 1)- A Four part series from bipin joshi:


The Linq Project:


What is linq:


Scott gu's Multipart Series about linq:


Linq to xml:

Tuesday, July 15, 2008

Benefits of DotNetNuke

Dotnetnuke is open source content management system which provides various kind of functionality for content management and modular development. It provides a very good platform based technologies to create web portals on the fly. You can create portal and subportals on a fly. Within some minutes. Here is another benefits of Dotnetnuke which found from the here.

  • Easy Web site administration: While working on this framework no programming knowledge is required. Clients can generate, supervise and publish web content without requiring any technical skill level.
  • Ready to use: DotNetNuke is user-friendly framework and is built in such a way as to allow users to deal with all parts of their projects. A well worked out user interface allows an easy operation.
  • Advanced Features: The advanced features in DotNetNuke exceed the features in your homegrown applications. Moreover it is a constantly evolving with multi-functionality to cater end-user requirements. It also saves development time.
  • Strength: The administrative options are skillfully divided between host level and individual portal level. In one hosting account the administrator at DotNetNuke supports multiple portals or sites- each with its own look.
  • Powerful Tools: DotNetNuke comes with a set of powerful tools. These built in tools provide multi-functionality for security, site designing, hosting, site membership options etc. There are various other features that can be manipulated as per your needs with these tools.
  • Network of Support: A Core Team of developers is always there to support DotNetNuke. Online Forums, blogs, online help and various websites give DotNetNuke a dedicated network of support.
  • Easy Installation: provides the free download software and an install.pdf with install instructions for the latest version of DotNetNuke. DotNetNuke can be made running within minutes.¼LI>Multi-Language Localization: DotNetNuke supports a multi-language localization that allows the websites built on it, to be translated into any language.
  • Licensed Open Source Software: DotNetNuke 3.0 is available for free download. The full application source code and sub-projects are distributed under a standard BSD open source license; providing the maximum freedom in both non-commercial and commercial environments.
  • Increase Profits Opportunities: DotNetNuke is module based. So you can build up various unique modules and sell them to your clients. Besides this, you can also go commercial with site templates, database options etc.
  • Latest Technology: The working of DotNetNuke utilizes modern day technology- ASP.NET 2.0, Visual Web Developer, Visual Studio 2005 and SQL Server 2005, thus giving the users a hands on to the latest technology.
  • Advanced CMS: DotNetNuke has built-in tools to create the most complex content management systems. Moreover, many options of extending and customizing the site are also available.
  • Established: DotNetNuke is a now a trademark in web designing. It is a popular brand in the open source community. With over 250,000 registered users and a talented team of developers. Through end-user feedback and real world trial DotNetNuke continues to grow.
  • Easy to integrate: With its flexible infrastructure, DotNetNuke is easy to integrate within your conventional processes.
  • Priority on security: Emphasis placed on validation, encryption, “bug” tracking and potential threats provides a secure way to build websites.
  • Fully customizable: Changes can be made to portals at all levels – from basic stylesheet elements like font type, color, and bullet points, to overall site appearance. New skins and module containers can be easily applied to the site with no repercussion on content.

for more details about dotnetnuke you can visit following sites.


How to convert a class library project into web application? What is web application? Difference between website and web application?

Web applications are there Visual Studio.Net 2003. After launch of Visual studio.Net Microsoft has introduced a new concept like website. But after huge demands community Microsoft has reintroduced Microsoft web applications project which is very similar to webapplication in 2003. With visual 2008 you will have both the options webapplication and website to create application. First we discuss the difference between it.


Difference between webapplication and website.

The main difference is that website project can be complied on the fly. You need to compile every time when you changed the code. While in webapplication you have compile solutions and create binary files(.DLL) in the code then you can have new code effect in application.It will have all the code in bin folder as DLL.

Website project can be opened without a project solution file while webapplication projects can not opened without a solutions.


A website usually refers to the front-end interface through which the public interact with your business online.Website's are typically informational in nature with a limited amount of advanced functionality. Simple websites consist primarily of static content where the data displayed is the same for every visitor and content changes are infrequent. More advanced websites may sport features such as Commerce, content management and interactive content.

Where AS A web application or Rich Internet Application (RIA) usually includes a website component but features additional advanced functionality to replace or enhance existing business processes. The interface design objective behind a web application is to simulate the intuitive, immediate interaction a user experiences with a desktop application.

Web applications frequently integrate with existing business IT infrastructure such as accounting packages, stock management systems, ERP, etc.


You can download web application projects for visual studio 2005 from the following location.


I have found a very great link to convert existing class library or another project into web application..Here is the link..

Wednesday, May 21, 2008

Localization in

I am googling about the localization in 2.0 and higer version and i found lots of good link for that.

Here is the collection of good link if anybody is looking for it.

ASP.NET 2.0 Localization (Video, Whitepaper, and Database Provider Support)

ASP.NET 2.0 Localization Features: A Fresh Approach to Localizing Web Applications

ASP.NET AJAX Localization Slides and Code

Building Multilingual Web Sites with ASP.NET

Globalization and localization demystified in ASP.NET 2.0

Enterprise Localization Toolkit

How to build Multi-Language Web Sites with ASP.NET 2.0 and VS.Net 2005

Introduction to Localization in ASP.NET 2.0

Localization in ASP.NET 2.0

Localization practices for .NET 2.0: It's still about the architecture,289483,sid8_gci1278147,00.html#

Arabization: Localization/Globalization in ASP.Net 2.0

Creating multilingual websites - Part 1

Localization in ASP.NET 2.0

Resources and Localization in ASP.NET 2.0

Internationalizing Your Application-ASP.NET QuickStart Tutorial

Monday, April 28, 2008

Page.RegisterClientscriptBlock was not working with rad Ajax panel

I have using rad ajax panel to apply ajax on my web applications. And I have found that Page.RegisterClientScriptBlock was not working with rad ajax panel. I have found a very good solutions for them. There is a property called "EnableOutsideScripts". I have set it true.. Now it is working fine ...
Wednesday, April 9, 2008

Microsoft Enterprise library 4.0 CTP Release

For some days ago microsoft has release Microsoft enterprise library 4.0 CTP.

This release has been adapted to work with WMI version 2.0 and version 3.5 of the .NET Framework.

For more Details visit following links..

Here are the system requiement :

  • Microsoft Windows XP Professional, Windows Server 2003, Windows Server 2008, or Windows Vista operating system
  • Microsoft .NET Framework 3.5 or higher.
  • Microsoft Visual Studio 2008 development system (any of the following editions): Standard Edition, Professional Edition, Team Edition for Software Developers, Team Edition for Software Testers, Team Edition for Software Architects, or Team Suite
Tuesday, February 19, 2008

ASP.NET MVC Framework Link collection

Microsoft will release it's Model view controller base framework for In this user will have built in support for model view controller architecture.

Here are the some interesting collection of links related to MVC Framework..

ASP.NET MVC Introduction:

Download ASP.NET MVC Toolkit



ASP.NET URL Rewriting:

Passing view data from controllers to views

Handling from edit and post scenarios:


Using JQuery with ASP.NET MVC:

Rss Feed with ASP.NET MVC Framework:

ASP.Net MVC Framework - Create your own IControllerFactory and use Spring.Net for DI :

Dangers of New ASP.NET Framework:

ASP.NET MVC Framework and Composite Web Application Block ( CWAB ):

ASP.NET Link Collection:


Agile Software Development

Agile software development is a concept of a software engineering for quick software development. As a software development process is combination of many phases like requirement analysis and gathering, feasibility study, design,coding and testing and documentation. In agile software development We follow all the above things in agile development with each iteration. Software development prorities are build for each iteration in by team of develoeprs and customers.

For more details of agile developement. Please visit following link...


Automated Testing for ASP.NET- NUnit ASP

We all developing application using and as a human being we all can't kept track of each and everything. We meant to have some error in our code. We call them bugs. Bugs can be removed via testing. Some time testing take more time then expected, so we have to use the automated testing tool to test your applications.

I have found a great automated testing framework for It is a great thing which can do the test and find bugs.


NUnitASP is a tool for automatically testing ASP.NET web pages. It's an extension to NUnit, a tool for test-driven development in .NET.

Once you have an automated suite of tests, you'll never go back. It gives you incredible confidence in your code. That confidence allows you to code much faster, because you can make risky changes secure in the knowledge that your tests will catch any mistakes.

NUnitAsp is for unit testing ASP.NET code-behind only. It's meant for programmers, not QA teams, and it's not very good for QA-style acceptance tests. It only tests server-side logic. JavaScript and other client-side code is ignored. But if you're using ASP.NET, it's an essential part of your programmers' toolset.

Here is the URL from which you can download the framework.

Friday, February 15, 2008

XML for

I have found a great resources for developers who are using XML in frameworks. The site having all the thins that require to develop application using XML in It has videos, code bank , .NET XML training all the stuff.


Creating Web Services in a Class Library project

When you are developing a plug in or add in for a software some time you have a requirement for developing webservice hosting in DLL. I have found a great link which describes all the things.

here is the link..


Sharepoint blogs

I have found very good link for share point development. It has very good blogs that can can be very useful for share point developers.

Here is the link


Regular Expression Library

Regular expression is hottest technology nowdays. It saves lots of time of development. In we can use regular expression in regular expression as regular expression validation control.

I have found the very good resource of ready made regular expression.

Here is the link for that.

The, the Internet's first Regular Expression Library. Currently it has indexed 1974 expressions from 1203 contributors around the world.

Thursday, February 14, 2008

Infosys Guys are blogging about .NET

Infosys is India's most well know company at we all know.Recently I have visited the Infosys and I found there blogs about Microsoft Technologies. I had read some entries and I found lots of things to learn.

here is the link for there blogs about Microsoft technology.


Get a Blog on WindowsClient.NET.

If you are serious windows developer and intersted in blogging then is a plateform to share your knowledge. You can create your blogs there. Microsoft has opened now for new bloggers.

here is the link to signup blogs there..

Happy blogging...


My new blog at

Well thanks to Joe Stagner and his team i got blog on the which is  a very good community of You can see my posting at there

No need to worry for this blog as i am constaly posting on both the blogs. Some posts may diffrer because this is my personal blog and i will post all the entries that i will post on weblogs at

Microsoft have opened the community for some time so if you wanna blog there on You just need to create a account on site and then request a weblog to joe at following link.

and that is once joe will approve your blog. You are ready to blog there.

Tuesday, February 12, 2008

Three common mistake while creating application with ajax

I have found a great article about developing a application with ajax enabled rich text website.

Here is the three mistakes we are making..

  • Page events still fire during partial postbacks.
  • UpdatePanel events fire, even when not updating.
  • Control event handlers fire after Load events
  • Dave has posted a very good article on above mistake.

    Here is the link for that..


    Copy Paste source as html- Visual Studio Add in

    If you blogging your code in your blogs post. You waste lots of time to format your code like in IDE. I have a  solution for that. I have a found a add in which will copy paste code as html. So you don't need to do anything.

    Here is the link for that..


    Windwos Live Writer Directly writing Blogs from desktop

    If you are still logged in to blogger for writing yours blogs then here is the easy way to write blogs directly from your desktop.

    Windows live writer is a free application for writing blogs from your desktop. It supports lots of provider. You just have to setup a blog once then you don't need to do anything.

    here is the link to get live writer...

    Happy programming....

    Monday, February 11, 2008

    GetYear Function in Java Script is not working properly in firefox

    Hi Folks,

    I have found that some times in firefox getyear function is not working properly. For example.We define a date value with following.

    var dtTo = new Date("11-Feb-2007");

    Now if you do alert like


    But in firefix year is displaying like 107.So to fix this issue. I have used getFullYear function like


    And It's working fine...

    Thursday, January 17, 2008

    How to show javascript alert message from code behind

    Javascript is one of the most important language for webdevelopement. We need to build the interactive websites. For the desktop application Messagebox are very important thing for building interactive websites. But from server side ( we can not display messageboxes and other things. But with the help of java script we can display the alert(Messagebox) messages on our websites.

    I have found a great link on this. Here is the link:

    ASP.NET validation control in Depth.

    From 1.0 to ASP.NET 3.5 having validation controls like required field validator,Compare field validation, Range Validator,Validation Summary, Regular Expression Validator, Custom Validator.

    This control can be use very efficiently without writing much of javascript and other code.

    I have found a great link which describes each and every aspect of validation control from 1.0.

    Here is the link for that article..

    How to Alter ColumnName in sql server with query..

    We are normally using Alter Column Modify command to modify the column defination. But SQL Server does not support it. Rather then then that they are are supporting new syntax Like


    Here is the syntax for ALTER TABLE command for sql server.

    ALTER TABLE table { [ ALTER COLUMN column_name { new_data_type [ ( precision [ , scale ] ) ] [ COLLATE <> ] [ NULL NOT NULL ] {ADD DROP } ROWGUIDCOL } ] ADD { [ <> ] column_name AS computed_column_expression } [ ,...n ] [ WITH CHECK WITH NOCHECK ] ADD { <> } [ ,...n ] DROP { [ CONSTRAINT ] constraint_name COLUMN column } [ ,...n ] { [ WITH CHECK WITH NOCHECK ] CHECK NOCHECK } CONSTRAINT { ALL constraint_name [ ,...n ] } { ENABLE DISABLE } TRIGGER { ALL trigger_name [ ,...n ] } }

    If you want more to know about it. Please visit following link at Micorosft sql server developement center.

    .NET Framework Source Code Available

    Have you ever think that you can view the source code available for .net framework. If you have dream of it, this is the time to come it true. Microsoft has just released the source code to debug.

    I have found a great post that how to debug the cod the .net framework.

    Here is the link for the code...

    Support this blog-Buy me a coffee

    Buy me a coffeeBuy me a coffee
    Search This Blog
    Subscribe to my blog


    My Mvp Profile
    Follow us on facebook
    Blog Archive
    Total Pageviews