ASP.NET AJAX is a free framework to implement Ajax in asp.net web applications, for quickly creating efficient and interactive Web applications that work across all popular browsers.
The Ajax Framework is powered with
1 - Reusable Ajax Controls
2 - Support for all modern browsers
3 - Access remote services and data from the browser without tons of complicated
script. Versions of Ajax release
1 - ASP.NET Ajax Framework 1.0 (earlier release to this was called the Atlas)
2 - ASP.NET Ajax Framework 1.0 was available as a separate download for ASP.NET 2.0
Read More..
Showing posts with label asp.net framework. Show all posts
Showing posts with label asp.net framework. Show all posts
Monday, November 24, 2008
Tuesday, November 11, 2008
Asp.NET Development Benefits
Microsoft .Net Application Development
Microsoft .NET is a technology that connects information, people, systems and devices. .NET connects a broad range of personal and business technologies, enabling the access and use of important information, whenever and wherever it is needed. Built on XML Web service standards, .NET enables both new and existing applications to connect with software and web application to the services across platforms, applications and programming languages.
Benefits of Asp.net
* Any application can talk to a host of other applications, running on diverse technology and hardware, in turn lowering the operation costs. Consider this one case, wherein the stock management system is connected to the accounting system, resulting in ample savings.
* Bring on one platform all your internal applications, your partners as well as your customers.
* Microsoft Visual Studio® .NET and the .NET Framework supports varied languages, in turn helping developers to focus on work at hand instead of trying to learn a new language that can do the job.
* Employees can look for updated information on desktop applications, internet browsers or even mobile devices.
* Optimum speed of development
* Ability of cross platform migration
* High Class library, features, controls
* ASP.NET Framework supports varied languages
* Reliability
* Easy configurations of applications
* Vast and enriched
Read More..
Microsoft .NET is a technology that connects information, people, systems and devices. .NET connects a broad range of personal and business technologies, enabling the access and use of important information, whenever and wherever it is needed. Built on XML Web service standards, .NET enables both new and existing applications to connect with software and web application to the services across platforms, applications and programming languages.
Benefits of Asp.net
* Any application can talk to a host of other applications, running on diverse technology and hardware, in turn lowering the operation costs. Consider this one case, wherein the stock management system is connected to the accounting system, resulting in ample savings.
* Bring on one platform all your internal applications, your partners as well as your customers.
* Microsoft Visual Studio® .NET and the .NET Framework supports varied languages, in turn helping developers to focus on work at hand instead of trying to learn a new language that can do the job.
* Employees can look for updated information on desktop applications, internet browsers or even mobile devices.
* Optimum speed of development
* Ability of cross platform migration
* High Class library, features, controls
* ASP.NET Framework supports varied languages
* Reliability
* Easy configurations of applications
* Vast and enriched
Read More..
What’s New in ASP.NET 2.0?
ASP.NET is a programming framework built on the common language runtime that can be used on a server to build powerful Web applications. The first version of ASP.NET offered several important advantages over previous Web development models. ASP.NET 2.0 improves upon that foundation by adding support for several new and exciting features in the areas of developer productivity, administration and management, extensibility, and performance:
Developer Productivity
ASP.NET 2.0 encapsulates common Web tasks into application services and controls that can be easily reused across web sites. With these basic building blocks, many scenarios can now be implemented with far less custom code than was required in previous versions. With ASP.NET 2.0 it is possible to significantly reduce the amount of code and concepts necessary to build common scenarios on the web.
* New Server Controls. ASP.NET 2.0 introduces many new server controls that enable powerful declarative support for data access, login security, wizard navigation, menus, treeviews, portals, and more. Many of these controls take advantage of core application services in ASP.NET for scenarios like data access, membership and roles, and personalization. Some of the new families of controls in ASP.NET 2.0 are described below.
- Data Controls. Data access in ASP.NET 2.0 can be accomplished completely declaratively (no code) using the new data-bound and data source controls. There are new data source controls to represent different data backends such as SQL database, business objects, and XML, and there are new data-bound controls for rendering common UI for data, such as gridview, detailsview, and formview..
- Navigation Controls. The navigation controls provide common UI for navigating between pages in your site, such as treeview, menu, and sitemappath. These controls use the site navigation service in ASP.NET 2.0 to retrieve the custom structure you have defined for your site.
- Login Controls. The new login controls provide the building blocks to add authentication and authorization-based UI to your site, such as login forms, create user forms, password retrieval, and custom UI for logged in users or roles. These controls use the built-in membership and role services in ASP.NET 2.0 to interact with the user and role information defined for your site.
- Web Part Controls. Web parts are an exciting new family of controls that enable you to add rich, personalized content and layout to your site, as well as the ability to edit that content and layout directly from your application pages. These controls rely on the personalization services in ASP.NET 2.0 to provide a unique experience for each user in your application.
Read More..
Developer Productivity
ASP.NET 2.0 encapsulates common Web tasks into application services and controls that can be easily reused across web sites. With these basic building blocks, many scenarios can now be implemented with far less custom code than was required in previous versions. With ASP.NET 2.0 it is possible to significantly reduce the amount of code and concepts necessary to build common scenarios on the web.
* New Server Controls. ASP.NET 2.0 introduces many new server controls that enable powerful declarative support for data access, login security, wizard navigation, menus, treeviews, portals, and more. Many of these controls take advantage of core application services in ASP.NET for scenarios like data access, membership and roles, and personalization. Some of the new families of controls in ASP.NET 2.0 are described below.
- Data Controls. Data access in ASP.NET 2.0 can be accomplished completely declaratively (no code) using the new data-bound and data source controls. There are new data source controls to represent different data backends such as SQL database, business objects, and XML, and there are new data-bound controls for rendering common UI for data, such as gridview, detailsview, and formview..
- Navigation Controls. The navigation controls provide common UI for navigating between pages in your site, such as treeview, menu, and sitemappath. These controls use the site navigation service in ASP.NET 2.0 to retrieve the custom structure you have defined for your site.
- Login Controls. The new login controls provide the building blocks to add authentication and authorization-based UI to your site, such as login forms, create user forms, password retrieval, and custom UI for logged in users or roles. These controls use the built-in membership and role services in ASP.NET 2.0 to interact with the user and role information defined for your site.
- Web Part Controls. Web parts are an exciting new family of controls that enable you to add rich, personalized content and layout to your site, as well as the ability to edit that content and layout directly from your application pages. These controls rely on the personalization services in ASP.NET 2.0 to provide a unique experience for each user in your application.
Read More..
Monday, November 10, 2008
ASP.NET BLOB & Thumbnail Controls 2.0 description
A set of ASP.NET server controls for rendering 2 way data bindable images or other files on the fly from SQL BLOB, programmable download links and many BLOB and file related operations without requiri
A set of ASP.NET server controls for developing SQL BLOB & Thumbnail related web applications in the most efficient, organized and object oriented manner without requiring you writing any codes or ashx http handler files. A set of controls: BlobImageButton, BlobImage, BlobThumbnail, BlobIFrame, BlobButton, BlobHyperlink. BlobImageButton, inherited from ImageButton, will behave exactly like a standard image button with extra byte[] type property named BlobData. The image will be rendered from the value of this byte[] property instead of ImageURL property. Also you can display the image as a thumbnail by setting a checkbox. BlobThumbnail Control will display a thumbnail and clicking the thumbnail will show a popup window with the full sized image or prompt Download dialog box. BlobButton and BlobHyperlink controls are used to display a Download prompt/dialog to download the byte[] content as a file. You can program those controls to create a secured download link so that your visitor won?t see the real location of the file in your server, good for developers who are selling digital products like eBooks or softwares. SpiceLogic BLOB & Thumbnail Control suit will not only display your Images directly from your SQL Blob, but also it will create Thumbnails on the fly. The power of this control is its BLOB 2 way data binding feature. Now, you can simply bind the byte[] BlobData property of this control to your VarBinary or any byte[] datatype of your DataSource and place this control in your DataBound Container Control like GridView or DetailsView. You can also Update/Insert new Blob records using this control (Setting Upload Mode=true). UploadMode will show a Upload form element and upload button element, and that gives you the power to upload files directly to the BlobData property. This control never creates any temporary file in your server so you won?t need to worry about setting any WRITE permission to your web folders. A very straight forward and friendly control.
Read More..
A set of ASP.NET server controls for developing SQL BLOB & Thumbnail related web applications in the most efficient, organized and object oriented manner without requiring you writing any codes or ashx http handler files. A set of controls: BlobImageButton, BlobImage, BlobThumbnail, BlobIFrame, BlobButton, BlobHyperlink. BlobImageButton, inherited from ImageButton, will behave exactly like a standard image button with extra byte[] type property named BlobData. The image will be rendered from the value of this byte[] property instead of ImageURL property. Also you can display the image as a thumbnail by setting a checkbox. BlobThumbnail Control will display a thumbnail and clicking the thumbnail will show a popup window with the full sized image or prompt Download dialog box. BlobButton and BlobHyperlink controls are used to display a Download prompt/dialog to download the byte[] content as a file. You can program those controls to create a secured download link so that your visitor won?t see the real location of the file in your server, good for developers who are selling digital products like eBooks or softwares. SpiceLogic BLOB & Thumbnail Control suit will not only display your Images directly from your SQL Blob, but also it will create Thumbnails on the fly. The power of this control is its BLOB 2 way data binding feature. Now, you can simply bind the byte[] BlobData property of this control to your VarBinary or any byte[] datatype of your DataSource and place this control in your DataBound Container Control like GridView or DetailsView. You can also Update/Insert new Blob records using this control (Setting Upload Mode=true). UploadMode will show a Upload form element and upload button element, and that gives you the power to upload files directly to the BlobData property. This control never creates any temporary file in your server so you won?t need to worry about setting any WRITE permission to your web folders. A very straight forward and friendly control.
Read More..
Sequence of Master-Content Page Events Execution [ASP.NET]
Life cycle of an ASP.NET web page has a series of events. We handle the appropriate events to plug in the required code for developing the web page. If we use Master-Content web pages of ASP.NET v2.0, it is important to understand the order in which the events of Master-Content pages are raised.
Till today I was in the assumption that events of Master page are raised before the Content page events are raised. But it is not true for all the events. For example Page Load of Content page is raised before Master pages Page Load event.
Here is the sequence in the which the events of Master-Content pages are executed
1.Content page PreInit event.
2.Master page controls Init event.
3.Content controls Init event.
4.Master page Init event.
5.Content page Init event.
6.Content page Load event.
7.Master page Load event.
8.Master page controls Load event.
9.Content page controls Load event.
10.Content page PreRender event.
11.Master page PreRender event.
12.Master page controls PreRender event.
13.Content page controls PreRender event.
14.Master page controls Unload event.
15.Content page controls Unload event.
16.Master page Unload event.
17.Content page Unload event.
Read More..
Till today I was in the assumption that events of Master page are raised before the Content page events are raised. But it is not true for all the events. For example Page Load of Content page is raised before Master pages Page Load event.
Here is the sequence in the which the events of Master-Content pages are executed
1.Content page PreInit event.
2.Master page controls Init event.
3.Content controls Init event.
4.Master page Init event.
5.Content page Init event.
6.Content page Load event.
7.Master page Load event.
8.Master page controls Load event.
9.Content page controls Load event.
10.Content page PreRender event.
11.Master page PreRender event.
12.Master page controls PreRender event.
13.Content page controls PreRender event.
14.Master page controls Unload event.
15.Content page controls Unload event.
16.Master page Unload event.
17.Content page Unload event.
Read More..
Friday, November 7, 2008
NET Framework version 3.5 Service Pack 1 provides the following new features and improvements
* ASP.NET Dynamic Data, which provides a rich scaffolding framework that enables rapid data driven development without writing code, and a new addition to ASP.NET AJAX that provides support for managing browser history (back button support). For more information, see What’s New in ASP.NET and Web Development.
* Core improvements to the CLR (common language runtime) that include better layout of .NET Framework native images, opting out of strong-name verification for fully trusted assemblies, improved application startup performance, better generated code that improves end-to-end application execution time, and opting managed code to run in ASLR (Address Space Layout Randomization) mode if supported by the operating system. Additionally, managed applications that are opened from network shares have the same behavior as native applications by running with full trust.
* Performance improvements to WPF (Windows Presentation Foundation), including a faster startup time and improved performance for Bitmap effects. Additional functionality for WPF includes better support for line of business applications, native splash screen support, DirectX pixel shader support, and the new WebBrowser control.
* ClickOnce application publishers can decide to opt out of signing and hashing as appropriate for their scenarios, developers can programmatically install ClickOnce applications that display a customized branding, and ClickOnce error dialog boxes support links to application-specific support sites on the Web.
Read More..
* Core improvements to the CLR (common language runtime) that include better layout of .NET Framework native images, opting out of strong-name verification for fully trusted assemblies, improved application startup performance, better generated code that improves end-to-end application execution time, and opting managed code to run in ASLR (Address Space Layout Randomization) mode if supported by the operating system. Additionally, managed applications that are opened from network shares have the same behavior as native applications by running with full trust.
* Performance improvements to WPF (Windows Presentation Foundation), including a faster startup time and improved performance for Bitmap effects. Additional functionality for WPF includes better support for line of business applications, native splash screen support, DirectX pixel shader support, and the new WebBrowser control.
* ClickOnce application publishers can decide to opt out of signing and hashing as appropriate for their scenarios, developers can programmatically install ClickOnce applications that display a customized branding, and ClickOnce error dialog boxes support links to application-specific support sites on the Web.
Read More..
Tuesday, November 4, 2008
What's new in .NET Framework 3.5 SP1?
SP1 advances the art of application development
The new ADO.NET Entity Framework feature in SP1 offers developers a model-based paradigm and a rich, standards-based framework for creating data-oriented applications shared across multiple applications and platforms. The separation of presentation, data, and business logic used in concert with a single data model will enable developers to spend less time writing plumbing code and more time refining business logic.
SP1 makes data-driven programming easier
SP1 offers developers support for ASP.NET Dynamic Data, which provides a rich scaffolding framework that enables rapid data-driven development. Since ASP.NET takes care of creating the presentation layer, a fully functional Website is output and ready for customization without the developer writing a single line of code. Further, with ADO.NET Data Services, Web developers can create RESTful Web 2.0-style applications that have better server scalability and improved caching support.
SP1 is the fastest and easiest way to deploy Windows applications
With the .NET Framework Client Profile, a small subset of the Framework that powers client applications, developers can offer their end users a dramatically streamlined and rapid application download experience. In addition, improvements in SP1 result in dramatic reductions in cold start times, allowing developers to serve a broader set of customers with varying hardware profiles.
Read More..
The new ADO.NET Entity Framework feature in SP1 offers developers a model-based paradigm and a rich, standards-based framework for creating data-oriented applications shared across multiple applications and platforms. The separation of presentation, data, and business logic used in concert with a single data model will enable developers to spend less time writing plumbing code and more time refining business logic.
SP1 makes data-driven programming easier
SP1 offers developers support for ASP.NET Dynamic Data, which provides a rich scaffolding framework that enables rapid data-driven development. Since ASP.NET takes care of creating the presentation layer, a fully functional Website is output and ready for customization without the developer writing a single line of code. Further, with ADO.NET Data Services, Web developers can create RESTful Web 2.0-style applications that have better server scalability and improved caching support.
SP1 is the fastest and easiest way to deploy Windows applications
With the .NET Framework Client Profile, a small subset of the Framework that powers client applications, developers can offer their end users a dramatically streamlined and rapid application download experience. In addition, improvements in SP1 result in dramatic reductions in cold start times, allowing developers to serve a broader set of customers with varying hardware profiles.
Read More..
Web Based File Manager in ASP.NET 3.5
FileVista is a web based file management solution developed with ASP.NET technology. Basically, it will turn your standard browser into "Windows Explorer" like user interface and allow managing files
FileVista is a web based file management solution developed with ASP.NET technology. Basically, it will turn your standard browser into "Windows Explorer" like user interface and allow managing files on your web server on the fly. Its a complete replacement of traditional FTP, allowing you to manage files on your web server just with a web browser instead of a FTP client that you would have to install on the client computer first. It also provides extended features which are impossible with FTP such as zipping and unzipping files on the fly.
Key features:
- Multi-User infrastructure, every user can have different permissions and quota limits on folders.
- Administration page to manage users/groups/root folders on the fly.
- Upload upto 2GB of files with progress bar! Minimal use of server resources with upload/download.
- Zip/Unzip files !
- Cross browser, works with most modern browsers. Tested with Internet Explorer, Firefox and Safari.
- Ability to log events (audit trail). The following events are logged for each user: Login, Logout, Failure, Browse, Create, Delete, Rename, Copy, Move, Compress, Extract, Upload and Download
- Fast response: communicates with the server via XML, no reloading of the pages
- Stunning user interface rendering, extending the limits of a web application.
- Easy and fast folder navigation with tree view.
- Fast file listing, client-side sorting on the fly.
- Context menus for a neat and simple user interface.
Read More & download
FileVista is a web based file management solution developed with ASP.NET technology. Basically, it will turn your standard browser into "Windows Explorer" like user interface and allow managing files on your web server on the fly. Its a complete replacement of traditional FTP, allowing you to manage files on your web server just with a web browser instead of a FTP client that you would have to install on the client computer first. It also provides extended features which are impossible with FTP such as zipping and unzipping files on the fly.
Key features:
- Multi-User infrastructure, every user can have different permissions and quota limits on folders.
- Administration page to manage users/groups/root folders on the fly.
- Upload upto 2GB of files with progress bar! Minimal use of server resources with upload/download.
- Zip/Unzip files !
- Cross browser, works with most modern browsers. Tested with Internet Explorer, Firefox and Safari.
- Ability to log events (audit trail). The following events are logged for each user: Login, Logout, Failure, Browse, Create, Delete, Rename, Copy, Move, Compress, Extract, Upload and Download
- Fast response: communicates with the server via XML, no reloading of the pages
- Stunning user interface rendering, extending the limits of a web application.
- Easy and fast folder navigation with tree view.
- Fast file listing, client-side sorting on the fly.
- Context menus for a neat and simple user interface.
Read More & download
Sunday, November 2, 2008
Run ASP.NET MVC on Windows Azure
If you’ve purposefully been ignoring the announcements out of PDC, I don’t blame you one bit. Everybody knew it would be the unveiling of Microsoft’s “cloud computing” initiative, and just about the only thing we didn’t know was the official name of it: Windows Azure. And of course I pronounce it wrong every time (I say “ah-jour”, as in “soup-de-jour”). It’s hard to call it “initiative” when they’re the 3rd one to bring a product to the table. ;)
One thing I was looking forward to was hearing about the ASP.NET MVC story on Azure. So color me surprised when I found out there wasn’t one. Since ASP.NET MVC is bin-deployable it shouldn’t be impossible, and doing some quick searches didn’t retrieve any results showing anybody else having tried this. Of course later I discovered that Phil and Eilon had whipped up a sample app that ran ASP.NET MVC on Azure, but was pleased to find out that the downloadable sample app didn’t work. In fact, it seemed to just be MVC stuff slapped into a WebRole project. (I’m guessing something got “lost in translation” since it wasn’t Phil or Eilon that posted the code.)
Anyway, here’s how you can get ASP.NET MVC up and running on Azure. I’ve created a Visual Studio template for this to make it easy to set up - download it here. To avoid distributing code that isn’t my own (i.e. Windows Azure SDK Samples) there are a few steps you’ll have to take. I’m presuming that you’ve already installed the Windows Azure SDK and the Azure Visual Studio tools.
One thing that running a web application “in the cloud” means is that you can instantly scale higher by adding more “instances”. This means the leaky-as-a-sieve abstraction of “session state” isn’t immediately available (finally!) since any given HTTP request could be going to a different server. The default session state provider for ASP.NET is an in-memory provider. This assumes that every request comes to the same physical machine. Session state providers have varied in their reliability and handling of scalability, but the other built-in providers include an out-of-proc provider (still same machine, but more resilient to IIS going up and down) and a SQL Server provider. None of these are enabled on the Azure platform, for good reason.
Read More..
One thing I was looking forward to was hearing about the ASP.NET MVC story on Azure. So color me surprised when I found out there wasn’t one. Since ASP.NET MVC is bin-deployable it shouldn’t be impossible, and doing some quick searches didn’t retrieve any results showing anybody else having tried this. Of course later I discovered that Phil and Eilon had whipped up a sample app that ran ASP.NET MVC on Azure, but was pleased to find out that the downloadable sample app didn’t work. In fact, it seemed to just be MVC stuff slapped into a WebRole project. (I’m guessing something got “lost in translation” since it wasn’t Phil or Eilon that posted the code.)
Anyway, here’s how you can get ASP.NET MVC up and running on Azure. I’ve created a Visual Studio template for this to make it easy to set up - download it here. To avoid distributing code that isn’t my own (i.e. Windows Azure SDK Samples) there are a few steps you’ll have to take. I’m presuming that you’ve already installed the Windows Azure SDK and the Azure Visual Studio tools.
One thing that running a web application “in the cloud” means is that you can instantly scale higher by adding more “instances”. This means the leaky-as-a-sieve abstraction of “session state” isn’t immediately available (finally!) since any given HTTP request could be going to a different server. The default session state provider for ASP.NET is an in-memory provider. This assumes that every request comes to the same physical machine. Session state providers have varied in their reliability and handling of scalability, but the other built-in providers include an out-of-proc provider (still same machine, but more resilient to IIS going up and down) and a SQL Server provider. None of these are enabled on the Azure platform, for good reason.
Read More..
Introducing the "DotNetNuke" Web Application Framework
Web Application Framework is a robust software library used as the basis for building advanced Web applications. A Web Application Framework typically contains a well-defined architecture and an abstract set of reusable components that are specifically designed to simplify development, enforce consistency, increase productivity, and improve application quality. Typical features include modular architecture, membership management, security and role management, site organization and navigation, error and event logging, data access and caching, search and syndication, and extensibility at every level. Frameworks are used in corporations, public sector, private sector, small businesses, nonprofit organizations, and even individual Web sites.
Although the concept has always been relevant, Web Application Frameworks have just come back into favor in recent years. This is likely a result of the ever-pervasive basic business philosophy emphasizing a reduction in the Total Cost of Ownership and increase in the Return On Investment. Web Application Frameworks can provide big wins in both of these categories because they allow developers to focus on the high-level business processes while leveraging a rock-solid application foundation.
DotNetNuke is a Web Application Framework that provides a highly extensible development environment, based on published standards and proven design patterns. Since Web Application Frameworks are generic by nature, they can be used as the underpinnings for any number of powerful Web applications. From Community Portals to high volume E-Commerce shopping malls, from Content Management Systems (CMS) to Customer Relationship Management Systems (CRM), the DotNetNuke Web Application Framework provides the fundamental services to build highly functional and scalable Web applications. To back up this claim, the DotNetNuke Web Application Framework is distributed as part of a fully functional CMS - the DotNetNuke Enterprise Portal.
Introducing DotNetNuke
Necessity is the mother of invention. In classic open source fashion, I originally created the application because I was interested in a way to provide functional Web sites to amateur sports organizations and could not find a suitable proprietary alternative. After investing significant effort only to discover that my business goals were not going to be realized, I decided to release the application as an open source community project. Version 1.0 of DotNetNuke was released December 24, 2002 (Christmas Eve). Since then, DotNetNuke has evolved at an exponential rate, recently surpassing 200,000 registered users, 800,000 downloads, and maintaining a consistent weekly project activity rank of #15 on SourceForge.Net.
Read More..
Although the concept has always been relevant, Web Application Frameworks have just come back into favor in recent years. This is likely a result of the ever-pervasive basic business philosophy emphasizing a reduction in the Total Cost of Ownership and increase in the Return On Investment. Web Application Frameworks can provide big wins in both of these categories because they allow developers to focus on the high-level business processes while leveraging a rock-solid application foundation.
DotNetNuke is a Web Application Framework that provides a highly extensible development environment, based on published standards and proven design patterns. Since Web Application Frameworks are generic by nature, they can be used as the underpinnings for any number of powerful Web applications. From Community Portals to high volume E-Commerce shopping malls, from Content Management Systems (CMS) to Customer Relationship Management Systems (CRM), the DotNetNuke Web Application Framework provides the fundamental services to build highly functional and scalable Web applications. To back up this claim, the DotNetNuke Web Application Framework is distributed as part of a fully functional CMS - the DotNetNuke Enterprise Portal.
Introducing DotNetNuke
Necessity is the mother of invention. In classic open source fashion, I originally created the application because I was interested in a way to provide functional Web sites to amateur sports organizations and could not find a suitable proprietary alternative. After investing significant effort only to discover that my business goals were not going to be realized, I decided to release the application as an open source community project. Version 1.0 of DotNetNuke was released December 24, 2002 (Christmas Eve). Since then, DotNetNuke has evolved at an exponential rate, recently surpassing 200,000 registered users, 800,000 downloads, and maintaining a consistent weekly project activity rank of #15 on SourceForge.Net.
Read More..
Saturday, November 1, 2008
Handy ASP.NET Email Control
Most websites have the need for some sort of "feedback form" or "email-us" page, which, as we know, is tedious to re-develop on every site, even in .NET. I have developed this simple E-Mail control in VB.NET that can be wrapped around any form to be turned into an email form, even with file inputs.
The first major thing to overcome is the property which must be set just above the CLASS in the .ascx.vb file (no extra linebreaks). This allows the User Control to access the controls on the .aspx page where it is used.
_ 'No extra linebreak after this!!
Public MustInherit Class MailAnything
Inherits System.Web.UI.UserControl
If you do have a file input on your web form remember to set the enctype="multipart/form-data".
Another important thing to remember is to use Web Forms Labels to name your fields on the web form so that it can be read by your user control and form part of the email.
Read more..
The first major thing to overcome is the property which must be set just above the CLASS in the .ascx.vb file (no extra linebreaks). This allows the User Control to access the controls on the .aspx page where it is used.
_ 'No extra linebreak after this!!
Public MustInherit Class MailAnything
Inherits System.Web.UI.UserControl
If you do have a file input on your web form remember to set the enctype="multipart/form-data".
Another important thing to remember is to use Web Forms Labels to name your fields on the web form so that it can be read by your user control and form part of the email.
Read more..
Labels:
Asp.net,
asp.net framework,
asp.net gadgets,
web site template
Friday, October 31, 2008
Compuware tackles Microsoft source code bugs
DevPartner Studio 9.0 scans Microsoft ASP.NET application source code looking for over 200 potential vulnerabilities or examples of suspicious behaviour, according to Compuware's product manager for DevPartner, Doug Carrier.
By locating security problems at compile time, the product can highlight poor coding to the exact line of code, the firm claims. Catching it early means that IT managers can rectify the problem before it becomes deeply embedded in the code base.
Customisable web-based reports can also be generated for items such as code quality, code review, error detection, performance and code coverage, to give IT managers a clear, easy-to-view snapshot of the stability of the code base.
Read More..
By locating security problems at compile time, the product can highlight poor coding to the exact line of code, the firm claims. Catching it early means that IT managers can rectify the problem before it becomes deeply embedded in the code base.
Customisable web-based reports can also be generated for items such as code quality, code review, error detection, performance and code coverage, to give IT managers a clear, easy-to-view snapshot of the stability of the code base.
Read More..
ASP.NET Compilation Models
ASP.NET Compilation
In the previous chapter, I covered the basics of ASP.NET code models. In this chapter, we'll discuss the details of how ASP.NET applications are compiled. This information is not vital to your success as an ASP.NET developer, but having an understanding of the architecture of your development environment always makes you a better developer.
ASP.NET is nothing like the legacy ASP with which many developers are familiar. You develop ASP pages by using VBScript or JScript, and they are interpreted, meaning that they are executed just as they are written, directly from the page. ASP.NET is entirely different in that ASP.NET pages are compiled before they are executed.
When you write ASP.NET code, you do so in human-readable text. Before ASP.NET can run your code, it has to convert it into something that the computer can understand and execute. The process of converting code from what a programmer types into what a computer can actually execute is called compilation.
Exactly how compilation takes place in ASP.NET depends on the compilation model that you use. Several different compilation models are available to you in ASP.NET 3.5.
The Web Application Compilation Model
The web application compilation model is the same model provided in ASP.NET 1.0 and 1.1. When you use this model, you use the Build menu in Visual Web Developer to compile your application into a single DLL file that is copied to a bin folder in the root of your application. When the first request comes into your application, the DLL from the bin folder is copied to the Temporary ASP.NET Files folder, where it is then recompiled into code that the operating system can execute in a process known as just-in-time (JIT) compilation. The JIT compilation causes a delay of several seconds on the first request of the application.
Read More...
In the previous chapter, I covered the basics of ASP.NET code models. In this chapter, we'll discuss the details of how ASP.NET applications are compiled. This information is not vital to your success as an ASP.NET developer, but having an understanding of the architecture of your development environment always makes you a better developer.
ASP.NET is nothing like the legacy ASP with which many developers are familiar. You develop ASP pages by using VBScript or JScript, and they are interpreted, meaning that they are executed just as they are written, directly from the page. ASP.NET is entirely different in that ASP.NET pages are compiled before they are executed.
When you write ASP.NET code, you do so in human-readable text. Before ASP.NET can run your code, it has to convert it into something that the computer can understand and execute. The process of converting code from what a programmer types into what a computer can actually execute is called compilation.
Exactly how compilation takes place in ASP.NET depends on the compilation model that you use. Several different compilation models are available to you in ASP.NET 3.5.
The Web Application Compilation Model
The web application compilation model is the same model provided in ASP.NET 1.0 and 1.1. When you use this model, you use the Build menu in Visual Web Developer to compile your application into a single DLL file that is copied to a bin folder in the root of your application. When the first request comes into your application, the DLL from the bin folder is copied to the Temporary ASP.NET Files folder, where it is then recompiled into code that the operating system can execute in a process known as just-in-time (JIT) compilation. The JIT compilation causes a delay of several seconds on the first request of the application.
Read More...
PHP VS ASP.net
Ever since Microsoft has come up with ASP.net, there has been a widespread debate among programmers as to whether it is any better than the existing open source programming language of PHP.
If you were to make a search on the Internet on how loyalists of both PHP and ASP.net are doing almost everything by biting each other's heads off, you will realize how hot this debate actually is. The major contention is that Microsoft products are generally considered to be superior to other products, but then there are programmers that have been using PHP since ages and never once has it let them down. While there is acclaim for ASP.net being more robust and speedier, PHP fans maintain that PHP has much better support and a very easy to understand language.
As the debate between PHP and ASP.net rages on, it is important to make a frank comparison between the two languages, so that other developers who are not so strong in their opinions are not caught in the argument between the two. Here are some of the important points that distinguish the two programming languages from each other:-
PHP is a relatively simpler language to use than ASP.net. Initially, PHP was written in the C programming language to replace a set of scripts in Perl. That is the reason why coding in PHP remains simple even today. Many developers find themselves to be more at ease with the user-friendly nature of PHP when it comes to coding. However, critics also count this advantage of PHP as a disadvantage. Some of them maintain that the language of PHP has not been updated much, and hence it is still quite archaic and even, somewhat cumbersome for coding. ASP.net, which is a relatively new development, has a lot of options when it comes to languages. Here, you can use languages such as C#, J#, C++ and VB.net. Hence, when it comes to sheer choice, ASP.net has better to offer. But PHP is no less, since it can do its task quite well, even with its minimum language tools.
» PHP is has much better support for the database management system, MySQL. In fact, the very popular blogging platform, WordPress uses the formidable combination of PHP coding on MySQL for its content management system, which includes about hundreds of thousands of blog posts every single day. Another very popular and frequently updated service that uses the combination of PHP and MySQL is Wikipedia. ASP.net can also support MySQL, but PHP is unanimously hailed, by the masses and classes alike, for its great support for this database management system.
Read More...
If you were to make a search on the Internet on how loyalists of both PHP and ASP.net are doing almost everything by biting each other's heads off, you will realize how hot this debate actually is. The major contention is that Microsoft products are generally considered to be superior to other products, but then there are programmers that have been using PHP since ages and never once has it let them down. While there is acclaim for ASP.net being more robust and speedier, PHP fans maintain that PHP has much better support and a very easy to understand language.
As the debate between PHP and ASP.net rages on, it is important to make a frank comparison between the two languages, so that other developers who are not so strong in their opinions are not caught in the argument between the two. Here are some of the important points that distinguish the two programming languages from each other:-
PHP is a relatively simpler language to use than ASP.net. Initially, PHP was written in the C programming language to replace a set of scripts in Perl. That is the reason why coding in PHP remains simple even today. Many developers find themselves to be more at ease with the user-friendly nature of PHP when it comes to coding. However, critics also count this advantage of PHP as a disadvantage. Some of them maintain that the language of PHP has not been updated much, and hence it is still quite archaic and even, somewhat cumbersome for coding. ASP.net, which is a relatively new development, has a lot of options when it comes to languages. Here, you can use languages such as C#, J#, C++ and VB.net. Hence, when it comes to sheer choice, ASP.net has better to offer. But PHP is no less, since it can do its task quite well, even with its minimum language tools.
» PHP is has much better support for the database management system, MySQL. In fact, the very popular blogging platform, WordPress uses the formidable combination of PHP coding on MySQL for its content management system, which includes about hundreds of thousands of blog posts every single day. Another very popular and frequently updated service that uses the combination of PHP and MySQL is Wikipedia. ASP.net can also support MySQL, but PHP is unanimously hailed, by the masses and classes alike, for its great support for this database management system.
Read More...
Friday, October 24, 2008
ASP.NET development Benefits
Microsoft ASP.NET is a free technology that allows programmers to create dynamic web applications. The revolutionary technology has been designed to hook up businesses, employees, customers and partners in one loop, through use of web services. It is said to have enough fire power to build, deploy, manage, and use connected, security-enhanced solutions with web services.
What is ASP.NET? ASP.NET stands for Active Server Pages .NET and is developed by Microsoft. ASP.NET is used to create web pages and web technologies and is an integral part of Microsoft's .NET framework vision. As a member of the .NET framework, ASP.NET is a very valuable tool for programmers and developers as it allows them to build dynamic, rich web sites and web applications using compiled languages like VB and C#.
ASP.NET helps to bring out the real world web applications in documentation time.
Stretchy Language Options – ASP.NET allows empowering the existing programming language skills. Different classic ASP, which abets barely, interpreted JAVA Script and VB Script at present ASP.NET abets more than twenty five .NET languages which also includes built-in support for C# which is called as C sharp, Visual Basic.NET and JAVA Script and also it does not requires any tool. Thus it gives an extraordinary litheness in the selection of language.
Read More...
What is ASP.NET? ASP.NET stands for Active Server Pages .NET and is developed by Microsoft. ASP.NET is used to create web pages and web technologies and is an integral part of Microsoft's .NET framework vision. As a member of the .NET framework, ASP.NET is a very valuable tool for programmers and developers as it allows them to build dynamic, rich web sites and web applications using compiled languages like VB and C#.
ASP.NET helps to bring out the real world web applications in documentation time.
Stretchy Language Options – ASP.NET allows empowering the existing programming language skills. Different classic ASP, which abets barely, interpreted JAVA Script and VB Script at present ASP.NET abets more than twenty five .NET languages which also includes built-in support for C# which is called as C sharp, Visual Basic.NET and JAVA Script and also it does not requires any tool. Thus it gives an extraordinary litheness in the selection of language.
Read More...
Wednesday, October 22, 2008
Migrating from ASP to ASP.Net
ASP was released to work on NT Server 4.0 in 1996 as a scripting language used to deliver dynamic content to web users. The take up of ASP has been significant over the past 6 years with a large proportion of dynamic sites now being written in this way.
ASP is very popular with developers and it has undoubtedly brought many benefits to websites. However, it is now an older technology and is being replaced by ASP.Net. .Net has all the benefits of ASP, together with improved security, scalability, reliability, flexibility and interoperability of applications.
IT Companies developing solutions for business in ASP could reduce their development time and cost significantly by migrating their customers to .NET.
The Benefits for Business
Security: - Software companies who provide their own hosting have an obligation to their clients to provide sufficient security to ensure that the client's data is not compromised. Microsoft have received very little positive media coverage relating to the security of their systems. Sites hosted using ASP have had numerous security alerts over the past 6 years which have been corrected through the use of service packs. The .NET framework provides a new security approach which provides more clear and powerful control over application security. This reduces the risk for companies hosting web sites as they can feel more confident about the risk posed by security attacks and in some cases can protect companies if their terms and conditions do not cover them against the risk of security breaches.
Performance: - IT Hardware is expensive - a factor that has to be considered when hosting an application for a business. The .NET platform utilises the IT hardware more efficiently, thus significantly improving performance. This reduces the cost required to make a large application run acceptably and increases the number of applications that can be simultaneously hosted on a single machine. Read More...
ASP is very popular with developers and it has undoubtedly brought many benefits to websites. However, it is now an older technology and is being replaced by ASP.Net. .Net has all the benefits of ASP, together with improved security, scalability, reliability, flexibility and interoperability of applications.
IT Companies developing solutions for business in ASP could reduce their development time and cost significantly by migrating their customers to .NET.
The Benefits for Business
Security: - Software companies who provide their own hosting have an obligation to their clients to provide sufficient security to ensure that the client's data is not compromised. Microsoft have received very little positive media coverage relating to the security of their systems. Sites hosted using ASP have had numerous security alerts over the past 6 years which have been corrected through the use of service packs. The .NET framework provides a new security approach which provides more clear and powerful control over application security. This reduces the risk for companies hosting web sites as they can feel more confident about the risk posed by security attacks and in some cases can protect companies if their terms and conditions do not cover them against the risk of security breaches.
Performance: - IT Hardware is expensive - a factor that has to be considered when hosting an application for a business. The .NET platform utilises the IT hardware more efficiently, thus significantly improving performance. This reduces the cost required to make a large application run acceptably and increases the number of applications that can be simultaneously hosted on a single machine. Read More...
ASP.NET Vs Others
When it comes to Web development these days, you have a lot of options. Many of these methods involve preprocessing—that is, embedding code into HTML pages with special tags that signal to a preprocessor that they contain code, and that it should do something with it. Much like a CGI, this code is then run on the server, and it returns some content, which then assumes part of the shape of the resulting HTML page sent back to the browser. Both the open source scripting language PHP and languages within Microsoft's ASP.NET framework fall into this category; JavaServer Pages (JSP) and Perl/Mason operate this way as well.
What is ASP.NET?
The latest incarnation of ASP, ASP.NET, is not completely backward-compatible with previous versions of ASP, as it is a complete rewrite of the software. Previous ASP technology actually has a lot more in common with PHP than with ASP.NET, which is a complete framework for building Web applications. One of the principal features of this model is the flexibility to choose your programming language. ASP.NET works with scripted languages such as VBScript, JScript, Perlscript, and Python, as well as compiled languages such as VB, C#, C, Cobol, Smalltalk, and Lisp. The new framework uses the common language runtime (CLR); your language source is compiled into Microsoft Intermediate Language code, which the CLR then executes.
The framework also provides for true object-oriented programming (OOP), and true inheritance, polymorphism, and encapsulation are supported. The .NET class library is organized into inheritable classes based around particular tasks, such as working with XML or image manipulation.
Besides the programming language and the methodology, database access is a significant concern. When you program in ASP.NET, integration with databases can be accomplished through ODBC, which provides a consistent set of calling functions to access your target database.
What is PHP?
PHP is a scripting language based on the model of preprocessing HTML pages. When the PHP preprocessor in your Web server notices a PHP language tag like the following, the PHP engine is invoked to execute that code:
some code here
?>
PHP will be familiar to any programmers who have worked with imperative programming languages; you'll notice syntactical similarities with Perl, C, and Java. Strictly speaking, Java is an imperative programming language, but it also makes use of object-oriented constructs and concepts. PHP borrows from this structure when it is convenient, but it is not a pure OOP language. Read More…
What is ASP.NET?
The latest incarnation of ASP, ASP.NET, is not completely backward-compatible with previous versions of ASP, as it is a complete rewrite of the software. Previous ASP technology actually has a lot more in common with PHP than with ASP.NET, which is a complete framework for building Web applications. One of the principal features of this model is the flexibility to choose your programming language. ASP.NET works with scripted languages such as VBScript, JScript, Perlscript, and Python, as well as compiled languages such as VB, C#, C, Cobol, Smalltalk, and Lisp. The new framework uses the common language runtime (CLR); your language source is compiled into Microsoft Intermediate Language code, which the CLR then executes.
The framework also provides for true object-oriented programming (OOP), and true inheritance, polymorphism, and encapsulation are supported. The .NET class library is organized into inheritable classes based around particular tasks, such as working with XML or image manipulation.
Besides the programming language and the methodology, database access is a significant concern. When you program in ASP.NET, integration with databases can be accomplished through ODBC, which provides a consistent set of calling functions to access your target database.
What is PHP?
PHP is a scripting language based on the model of preprocessing HTML pages. When the PHP preprocessor in your Web server notices a PHP language tag like the following, the PHP engine is invoked to execute that code:
some code here
?>
PHP will be familiar to any programmers who have worked with imperative programming languages; you'll notice syntactical similarities with Perl, C, and Java. Strictly speaking, Java is an imperative programming language, but it also makes use of object-oriented constructs and concepts. PHP borrows from this structure when it is convenient, but it is not a pure OOP language. Read More…
Tuesday, October 21, 2008
Dot net Framework
1. What is .NET?
.NET - is the Microsoft Web services strategy to connect information, people, systems, and devices through software. Integrated across the Microsoft platform, .NET technology provides the ability to quickly build, deploy, manage, and use connected, security-enhanced solutions with Web services. .NET-connected solutions enable businesses to integrate their systems more rapidly and in a more agile manner and help them realize the promise of information anytime, anywhere, on any device. Reference
2. Which versions of .NET have been released so far?
The final version of the .NET 1.0 SDK & runtime were made publically available on 15 - Jan -2002. At the same time, the final version of Visual Studio.NET was made available to MSDN subscribers.
Read more..
.NET - is the Microsoft Web services strategy to connect information, people, systems, and devices through software. Integrated across the Microsoft platform, .NET technology provides the ability to quickly build, deploy, manage, and use connected, security-enhanced solutions with Web services. .NET-connected solutions enable businesses to integrate their systems more rapidly and in a more agile manner and help them realize the promise of information anytime, anywhere, on any device. Reference
2. Which versions of .NET have been released so far?
The final version of the .NET 1.0 SDK & runtime were made publically available on 15 - Jan -2002. At the same time, the final version of Visual Studio.NET was made available to MSDN subscribers.
Read more..
Monday, October 20, 2008
7 of my favorite jQuery plugins for use with ASP.NET
One of jQuery’s greatest strengths is its thriving plugin ecosystem. Hundreds of plugins are available at plugins.jquery.com alone, with even more hosted on author sites. If you think of a feature, chances are there’s a jQuery plugin to implement it in just a few lines of code (if that).
Having used jQuery with ASP.NET for over a year now, I’ve discovered that some plugins are more easily combined with ASP.NET than others. In fact, one popular plugin even fails completely when used with ASP.NET AJAX.
Read More...
Having used jQuery with ASP.NET for over a year now, I’ve discovered that some plugins are more easily combined with ASP.NET than others. In fact, one popular plugin even fails completely when used with ASP.NET AJAX.
Read More...
Labels:
asp dot net,
Asp.net,
asp.net framework,
asp.net plugins
Sunday, October 19, 2008
A simple introduction to ASP.Net validators
What is a Validator
A validator checks the input of a control to verify that the value falls within criteria you specified.
The validator we added is a range validator. On this validator, we have set the following:
• ControlToValidate the ID of the control you are validating.
• The MininumValue and MaximumValue sets the range you want the input to be in.
• The Type is set to Integer.
• ErrorMessage is the error message to be displayed when validation fails
• Display is set to Dynamic because it will otherwise take up the space of the error message.
• EnableViewState is set to false since there is no reason to store viewstate for an validator.
When you hit submit and you enter a text value or a value that does not fall into 1-10, a red error text appear next to the control.
The problem is when you enter a blank value and hit submit, no error is display even though a blank value is not in the range 1-10.
Handling blank values
One issue to watch out for is that virtually all of the validators will not validate if the value is set to blank. This is why the range validator failed to catch the blank input even though a blank is not in the range of 1-10.
Read more..
A validator checks the input of a control to verify that the value falls within criteria you specified.
The validator we added is a range validator. On this validator, we have set the following:
• ControlToValidate the ID of the control you are validating.
• The MininumValue and MaximumValue sets the range you want the input to be in.
• The Type is set to Integer.
• ErrorMessage is the error message to be displayed when validation fails
• Display is set to Dynamic because it will otherwise take up the space of the error message.
• EnableViewState is set to false since there is no reason to store viewstate for an validator.
When you hit submit and you enter a text value or a value that does not fall into 1-10, a red error text appear next to the control.
The problem is when you enter a blank value and hit submit, no error is display even though a blank value is not in the range 1-10.
Handling blank values
One issue to watch out for is that virtually all of the validators will not validate if the value is set to blank. This is why the range validator failed to catch the blank input even though a blank is not in the range of 1-10.
Read more..
Subscribe to:
Posts (Atom)