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">
</asp:ScriptManager>
--------------------------------------------------------------------------

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.Path="~/MyWebService.asmx";
         serviceReference.InlineScript = false; 
         scriptManger.Services.Add(serviceReference);   
     }
     else
     {
         throw new Exception("Script Manager Not Found");
     }
}
'--------------------------------------------------------------------------
Then override controls init event as following...

'--------------------------------------------------------------------------
protected override void OnInit(EventArgs e)
{
     AddScriptReference();
     base.OnInit(e);
}
'--------------------------------------------------------------------------

Share:
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:
----------------
http://broersa.wordpress.com/2008/05/22/linq-for-oracle-sample/

 

.NET 2.0 Or higher transaction model to use it with linq:
----------------------------------------------------------
http://www.simple-talk.com/dotnet/.net-framework/.net-2.0-transaction-model/

 

How to use transaction with linq:
--------------------------------
http://chiragrdarji.wordpress.com/2007/08/25/how-to-use-transaction-in-linq-using-c/

 

Inside the linq datacontext site to better understanding of linq:
-----------------------------------------------------------------
http://dotnetslackers.com/articles/csharp/InsideTheLINQToSQLDataContextClass.aspx

 

Linq to SQL(part 1 to 7 -Total Understanding of linq):
------------------------------------------------------
http://aspalliance.com/1430_LINQ_to_SQL_Part_6__Retrieving_Data_Using_Stored_Procedures_.1

 

A good article about-LINQ to SQL : Using Transaction:
-----------------------------------------------------
http://blogs.msdn.com/wriju/archive/2007/08/06/linq-to-sql-using-transaction.aspx

 

Using LINQ in ASP.NET (Part 1)- A Four part series from bipin joshi:
--------------------------------------------------------------------
http://www.dotnetbips.com/articles/56f8f29d-2617-4f99-a8b4-977703ebf780.aspx

 

The Linq Project:
----------------
http://msdn.microsoft.com/en-us/vbasic/aa904594.aspx

 

What is linq:
------------
http://en.csharp-online.net/Introducing_LINQ%E2%80%94What_Is_LINQ
http://www.dotnetspider.com/resources/19939-What-LINQ.aspx.aspx

 

Scott gu's Multipart Series about linq:
--------------------------------------
http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx

 

Linq to xml:
-------------
http://sandeep-aparajit.blogspot.com/2007/12/what-is-linq.html

Share:
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 Microsoft.net 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: DotNetNuke.com 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.

www.dotnetnuke.com

http://www.datasprings.com/Resources/ArticlesInformation/WhymovetoDotNetNuke/tabid/736/language/en-US/Default.aspx

Share:

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 vs.net 2003. With visual studio.net 2008 you will have both the options webapplication and website to create asp.net 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.

http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/

 

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

http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/

Share:
Wednesday, May 21, 2008

Localization in asp.net

I am googling about the localization in asp.net 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)
http://weblogs.asp.net/scottgu/archive/2006/05/30/ASP.NET-2.0-Localization-_2800_Video_2C00_-Whitepaper_2C00_-and-Database-Provider-Support_2900_.aspx

ASP.NET 2.0 Localization Features: A Fresh Approach to Localizing Web Applications
http://msdn.microsoft.com/en-us/library/ms379546(VS.80).aspx

ASP.NET AJAX Localization Slides and Code
http://seejoelprogram.wordpress.com/2008/03/06/aspnet-ajax-localization-slides-and-code/

Building Multilingual Web Sites with ASP.NET
http://www.beansoftware.com/ASP.NET-Tutorials/Globalisation-Multilingual-CultureInfo.aspx

Globalization and localization demystified in ASP.NET 2.0
http://www.codeproject.com/KB/aspnet/localizationByVivekTakur.aspx

Enterprise Localization Toolkit
http://msdn.microsoft.com/en-us/library/aa479334.aspx

How to build Multi-Language Web Sites with ASP.NET 2.0 and VS.Net 2005
http://www.dotnetheaven.com/UploadFile/mosessaur/aspnetlocalization03232006045335AM/aspnetlocalization.aspx

Introduction to Localization in ASP.NET 2.0
http://www.west-wind.com/presentations/wwDbResourceProvider/introtolocalization.aspx

Localization in ASP.NET 2.0
http://aspalliance.com/821

Localization practices for .NET 2.0: It's still about the architecture
http://searchwindevelopment.techtarget.com/tip/0,289483,sid8_gci1278147,00.html#

Arabization: Localization/Globalization in ASP.Net 2.0
http://www.c-sharpcorner.com/UploadFile/munnamax/Localization03172007031927AM/Localization.aspx

Creating multilingual websites - Part 1
http://www.codeproject.com/KB/aspnet/localization_websites.aspx

Localization in ASP.NET 2.0
http://www.ondotnet.com/pub/a/dotnet/2005/08/08/localizingaspnet20.html

Resources and Localization in ASP.NET 2.0
http://msdn.microsoft.com/en-us/magazine/cc163566.aspx

Internationalizing Your Application-ASP.NET QuickStart Tutorial

http://quickstarts.asp.net/QuickStartv20/aspnet/doc/localization/default.aspx

Share:
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 ...
Share:
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..

http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=entlib&ReleaseId=12142

http://blogs.msdn.com/agile/archive/2008/03/31/enterprise-library-4-0-march-2008-ctp-released.aspx

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
Share:
Tuesday, February 19, 2008

ASP.NET MVC Framework Link collection

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

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

ASP.NET MVC Introduction:

http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx

http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx

Download ASP.NET MVC Toolkit

http://www.code-magazine.com/Article.aspx?quickid=070173

http://www.pnpguidance.net/Category/ASPNETMVCFramework.aspx

http://geekswithblogs.net/AzamSharp/archive/2008/01/29/119070.aspx

http://geekswithblogs.net/AzamSharp/archive/2008/01/30/119105.aspx

ASP. NET MVC Video:

http://www.hanselman.com/blog/ScottGuMVCPresentationAndScottHaScreencastFromALTNETConference.aspx

ASP.NET MVC Road Map:

http://weblogs.asp.net/scottgu/archive/2008/02/12/asp-net-mvc-framework-road-map-update.aspx

ASP.NET URL Rewriting:

http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx

Passing view data from controllers to views

http://weblogs.asp.net/scottgu/archive/2007/12/06/asp-net-mvc-framework-part-3-passing-viewdata-from-controllers-to-views.aspx

Handling from edit and post scenarios:

http://weblogs.asp.net/scottgu/archive/2007/12/09/asp-net-mvc-framework-part-4-handling-form-edit-and-post-scenarios.aspx

ASP.NET MVC Ajax:

http://www.nikhilk.net/Ajax-MVC.aspx

Using JQuery with ASP.NET MVC:

http://www.chadmyers.com/Blog/archive/2007/12/13/using-jquery-with-asp.net-mvc.aspx

Rss Feed with ASP.NET MVC Framework:

http://blogs.msdn.com/brada/archive/2007/11/14/rss-feed-with-the-new-asp-net-mvc-framework.aspx

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

http://weblogs.asp.net/fredriknormen/archive/2007/11/17/asp-net-mvc-framework-create-your-own-icontrollerfactory-and-use-spring-net.aspx

Dangers of New ASP.NET Framework:

http://blog.madskristensen.dk/post/Dangers-of-the-new-ASPNET-MVC-framework.aspx

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

http://www.pnpguidance.net/Post/ASPNETMVCFrameworkCompositeWebApplicationBlockCWAB.aspx

ASP.NET Link Collection:

http://codeclimber.net.nz/archive/2008/01/28/ASP.NET-MVC-Link-collection.aspx

Share:

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...

http://en.wikipedia.org/wiki/Agile_software_development

Share:

Automated Testing for ASP.NET- NUnit ASP

We all developing asp.net application using Microsoft.net 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 asp.net applications.

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

Overview

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.

http://nunitasp.sourceforge.net/

Share:
Friday, February 15, 2008

XML for asp.net

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

Share:

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..

http://www.codeproject.com/KB/aspnet/wsinaclasslibrary.aspx

Share:

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

http://www.sharepointblogs.com/

Share:

Regular Expression Library

Regular expression is hottest technology nowdays. It saves lots of time of development. In asp.net 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.

http://regexlib.com/Default.aspx

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

Share:
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.

http://infosysblogs.com/microsoft/net_20/

Share:

Get a Blog on WindowsClient.NET.

If you are serious windows developer and intersted in blogging then windowsclient.net 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..

http://windowsclient.net/community/blog-with-us.aspx

Happy blogging...

Share:

My new blog at weblogs.asp.net

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

http://weblogs.asp.net/JalpeshPVadgama

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 asp.net.

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

 

http://www.joeon.net/post/2008/01/Wanna-Blog-on-ASPNET-.aspx

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

Share:
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..

    http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/

    Share:

    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..

    http://www.jtleigh.com/people/colin/software/CopySourceAsHtml/

    Share:

    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...

    http://get.live.com/writer/overview

    Happy programming....

    Share:
    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

    Alert(dtTo.getYear());

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

    Alert(dtTo.getYear());

    And It's working fine...

    Share:
    Thursday, January 17, 2008

    How to show javascript alert message from asp.net 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 (asp.net) 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:

    http://www.devnewz.com/devnewz-3-20061129JavaScriptAlertShowmessagefromASPNETCodebehind.html
    Share:

    ASP.NET validation control in Depth.

    From asp.net 1.0 to ASP.NET 3.5 asp.net 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 asp.net 1.0.

    Here is the link for that article..

    http://msdn2.microsoft.com/en-us/library/aa479045.aspx
    Share:

    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

    "ALTER TABLE ALTER COLUMN"

    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.

    http://msdn2.microsoft.com/en-us/library/aa275462(SQL.80).aspx
    Share:

    .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...
    http://www.hanselman.com/blog/NETFrameworkLibrarySourceCodeAvailableForViewing.aspx
    Share:

    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