Jack is Here, asp.net findings

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries for the ‘asp.net’ Category

How to Use Medium Trust in Asp.net 2.0

Its hard because every year two times what is going to the developer, he explained that hosting company and complaining about medium trust level problem.

Microsoft explain step by step but still this problem doenst resolve WHY?

These steps are enough for developer. Why they are still complaining.

SOLUTION:

DONT USE DATAREADER WHEN YOU ARE BINDING YOUR DATA WITH DATAGRID, GRIDVIEW OR ANY CONTROL.

USE DATASET

NO need to follow below steps

NO need to do settings locally for your Application for Medium Trust Level.

Once you will deployed at hosted server, it will automatically inherit as medium trust level.

Microsoft said :

Summary of Steps

To use medium trust in your ASP.NET applications:

Step 1. Configure medium trust.

Step 2. Lock the trust level.

Step 3. Optionally create a custom policy based on medium trust.

Step 1. Configure Medium Trust

To configure an application to run with medium trust, add the following element to either the application of specific Web.config file in the virtual root directory of the application or to the machine-level Web.config file.

Copy Code

If there is a note: originUrl WebPermission by the permission of attributes, such as some can be used to limit connections to a defined set of addresses.

To configure all Web applications running on the server in the trust, this element of the machine-level Web.config file located in the following folder:% windir% Microsoft.NETFramework (version) configuration.

By default, Web applications are configured to work with full confidence, as run in the following default configuration from the machine-level Web.config file.

Copy Code

?

To review the full set of permissions available to medium trust applications, view the Web_mediumtrust.config file.

Step 2. Lock the Trust Level

Application service provider, or any run multiple websites on the same server application is responsible for medium-trust policy should be applied to the machine set-level Web.config file, and then locked for all Web application's trust level.

To do this, set the attribute to allowOverride

Copy Code

?

By setting allowOverride =

Yours comments are valuable for me

Joggee

http://blog.joggee.com

How DOMi Aids in .Net Application Development

With the coming of age of the computer software industry, newer and better programs and tools has become regular news, courtesy the efforts of the leading names in the industry today. These programs and tools assist software developers and programmers in the creation of software that have increasingly been making lives easier for everyone. Upgrades have become the call of the day even as developers are looking for ways to make their jobs more feasible and convenient through problem solving tools. In the wake of this trend and the growing demand for asp.net consulting, there has emerged a developer tool known as DOMi or the DOM Inspector, which has been a real help for developers. Through this tool a developer can inspect, browse and edit the Document Object Model tree of HTML and XML based documents.

As a Web development tool used in Mozilla Suite and Firefox browser, version 3.0, the previous version of the DOM Viewer is included to help developers edit web pages or XUL windows generally. In the dominant level, through the convenience of dual-panel views of the document variables, the window to help navigation. As the operation's success and popularity. NET application development, dominant performance are very help to the developer's task much easier. Because it is not, as a part of Mozilla Firefox 3, it has been included as a separate installation of Firefox extensions. Dominant nodes can choose from a tree or browse the chrome. Other comments provide a good box, XBL in the binding, CSS style rules and JavaScript objects, DOM elements like activity useful for debugging CSS.

Perpetuated by the benefits of DOMi, a fresh wave of outsourcing services have made their way to the Indian shores to offer various solutions to a growing number of business houses who patronise this tool. Application development in the software industry is now a seamless activity, much to the introduction of such tools in the arena.

Fundamentals of Asp.net Programming Vs. Php Programming

Hyper-text-pre-processor (PHP) and Active-server-pages (ASP) are the two standard programming languages for website application development and more significantly when it comes to produce database-driven websites to interrelating hugely with databases. PHP is an open-source programming language which is derived from lots of different languages. On the other hand ASP is such kind of programming languages which preferring Microsoft product mostly.

Both programming languages PHP and ASP are used to develop dynamic database oriented websites. Active Server Pages (ASP) is normally from Microsoft and is used only with Internet Information Server (IIS) that runs on Microsoft Servers also. But on the other hand you can say PHP is platform independent programming languages and can connect with several kinds of databases.

There are a lot of differences between ASP and PHP.

Expenditure

To run ASP.net programs first need to install IIS on Windows server platform, which is not a free software package. PHP programs can run on Linux, it is free of charge packets. Even the expensive database connection for the ASP, because it requires MS – SQL in Microsoft products need to be acquired. On the other hand, the widespread use of PHP's database connection, which is the freedom of access to MySQL.

The Simplicity in Coding

PHP codes itself are very light in weight, a contract programmer who begins his career into PHP, does not felt any pressure to look the source code to understand. Whereas In ASP codes are not so easy to quick understand.

Database Compatibility

PHP generally being extremely flexible as it uses MySQL for database connectivity, which is freely accessible. Same time on the other hand Database compatibility is expensive for ASP, because it require MS-SQL product of Microsoft that needs to be acquired.

General Run Time

If we evaluate the running speed of PHP and ASP then PHP should be gaining the upper hand. Normally, it is appropriate that PHP code faster than ASP code is executed. Because the basis of COM architecture uses ASP server space to run PHP code, while the built-in to its own memory.

Background Language Support

ASP has a similar like Visual Basic type of syntax that also linked to Microsoft products as well. On the other hand PHP codes are based on generally C++ language and the syntax, which is used in PHP, is quite similar to C/C++ syntax. C/C++ is still considered by maximum software programmer is the finest programming language and people who love C++ language would certainly feel more relaxed with the PHP syntax.

Running Platform Connectivity

PHP codes can run on different platforms like UNIX, Solaris, Linux, and Windows whereas ASP codes are mostly linked with Windows platforms. Though, ASP programs can run on a Linux platform with the help of ASP-Apache installed on the server.

Further Tools Cost

Several tools used in PHP are mostly free of cost in the market and as PHP is open source a lot of codes can be available in open source forums and blogs. PHP has inbuilt attributes like ftp, encryption methods, even email also from a web page but in ASP such attributes are not obtainable and for this reason only some more features are required which are not free that increase the total cost as well.

Larger Applications Support

PHP is just as protected as ASP from coding level. The main difference is only for private data like “social security numbers”; “PIN numbers” etc. ASP is more practicable option. Organizations like government firms normally don’t have much stipulated commercial budgets and looking for required security, they really helpful ASP.net.

At the end, we can make a conclusion that both programming languages have their advantages and disadvantages specific to user requirement. It can be said that both the programming languages have their own significance depending upon the user’s requirements and budgets. It is viewed that in any discussion board, ASP.net is similarly capable but many of them suggesting PHP for small business owners those who have a fixed budget and does not required superb security support. PHP cannot provide e-commerce application development, only for them ASP.net will be the best choice.

Datagrid and Gridview in Asp.net

ASP.NET version 1.x have one most commonly used Web controls that is DataGrid. DataGrid control helps to display data on an ASP.NET page just like a breeze. we can simply drag and drop the DataGrid on our webpage, we can also specify columns/fields and we can also format that fields and columns. There are some feature of DataGrid that’s helps end user to page, sort, and even edit the data within the DataGrid.

After that DataGrid takes a huge improvement over pre-ASP.NET techniques for showing data,But have some limitations till now. For starters, binding any data to a DataGrid still required some code to written, and often repetitive code at that. And something more that how to utilize any of the DataGrid more advanced features—handling deletes, providing pagination, or sorting support—required additional code and time.

ASP.NET 2.0 gernate through a set of data some of the facilities, rehabilitation DataGrid control is used to manage the source of the problem, you can bind to the data Web control the data in the GridView with ASP.NET access to data in the replacement of control.For DataGrid 1.x, developers need some data source controls code.with with the help of the data can be easily page.The through the ASP.NET Web page HTML data source controls to access some of the simple syntax that can be added to the page, Just dragg and drop.And, the specific data retrieval, you can specify the design view completely. Once a data source control sholud configuration, it can be easily bound to a data Web controls, like the GridView by setting the data Web control's DataSourceID property of the data source control's ID.

Data source controls in ASP.NET 2.0 access data with quicker and easier with compare to to ASP.NET version 1.x.GridView also makes showing that data much simpler than with the DataGrid in ASP.NET version 1.x.

With the GridView you can specify that data is sortable and / or pageable by simply checking a checkbox.This process is also when Delete column.

To know more about visiting asp net interview questions – dotnetquestion.info

C# Dot Net And Vb Dot Net

When we use asp.net we have different language option available there are some of these language vb.net , c#.net, perl etc.So its depend upon the programmer which language they are using all of the language have there different syntax and language have there own charaterstics. In this article I have taken vb.net and c#.net. Some people likes vb.net simple style and some of people likes C# syntaxes. But the similar thing is that both of them using same plateform that is .net framerwork but there are some important difference between c# and vb.net:-

In vb.net we have optional parameters which help in development of COM interoperability. In vb.net we can use construct which is not in available in c#.net another feature of vb.net is late binding with Option Strict off .We can also use VB functionalities can be used by using Microsoft.VisualBasic namespace Another one of most beautiful feature of vb dot net is that it compiles code in the background so this is considered an advantage for small projects, people creating very large projects have found that the IDE slows down considerably as the project gets larger.

Now comes to c#.net in this now we can gernate XML documentation from source code but this is now been incorporated in Whidbey another good feature that is include in c#.net is operator overloading which is not avail ab.net and we use this statement which helps use to get unmanaged resource disposal simple. In c#.net we can access to Unsafe code which allows pointer arithmetic and we can also improve performance in some situations.We can take it lightly because lot of the normal safety of C# is lost so unmanaged code in C# and not in VB.NET.

So these are the some of most elegant differences between vb.net and c#.net that make them different.