answersLogoWhite

0

ASP.NET

ASP.NET was first released in 2002, it is a web application framework. It was created by Microsoft. It is the successor to Active Server Pages (ASP).

187 Questions

What is language processing activities?

what is the netural language processing

What master page is used for in aspnet?

Master page is a page which has content of master data( Common data), Other web page can inherit the master page in asp.net.

If you are familiar with OOPS, then we can tell master page is similar to abstract class, where other class can inherit.

List four significant differences between a file processing system and a DBMS?

1) In a traditional file processing system the work of IT was very hectic while this is not so in DBMS.2) In DBMS redundancy of data is tried to reduced while this was not so in FPS.

3) DBMS maintains data integrity but FPS do not.

Is there a charge for using asp net hosting?

The asp net hosting is absolutely free. In fact there are several that have multiple email addresses at no additional cost.

What are the advantages and disadvantages of aspnet?

Some advantages:

* Rich controls - the framework comes with a large set of very robust and useful server and client side controls for creating interactive grids, calendars, wizards, and much more. Many of these have a lot of functionality right out of the box. There is also support for defining your own controls.

* Rapid development - you can generally throw a fairly dynamic website together pretty quickly with ASP.NET.

* Automatic statefullness - the viewstate structure will automatically save the state of controls and other fields for you so you don't have to manage that behind the scenes. This is a big time saver but can have performance ramifications (see below).

* Abstracts the webiness away from web programming - the framework treats web forms a lot like Windows Forms (if you're familiar with those) where you have a bunch of controls on a page and each one has one or more events associated with it (like OnClick or OnChange) and you simply provide the code to handle those events. All of the mapping up from the web page to your code-behind events is done for you by the framework. Some people see this as a bad thing (see below).

* Built in security - there is out of the box support for authentication, authorization, and various options for implementation with NTLM, Kerberos, and other standards.

Some disadvantages:

* Does not allow for easy unit tests - the framework tends not to support automatic unit testing with tools like NUnit very well, which makes test-driven development difficult. MVC based frameworks like Struts or ASP.NET MVC do a better job of this.

* View state - often times viewstate can get really large or have negative effects on performance. This is especially true for some of the more complex server controls.

* Abstracts the webiness away from web programming - some people feel that ASP.NET does not fit the general architecture of internet and web based applications. They feel like Microsoft tried to follow the Windows Forms desktop paradigm too closely and it makes for developers that don't have a good grasp on how web apps are different than desktop apps.

When you define clean up destructor how does it affect garbage collector?

If you define clean up in destructor garbage collector will take more time to clean up the objects and more and more objects are created in Gen 2..

Data flow diagram for travel and tourism how to draw dfd for travel and tourism management system?

The data flow diagram for travel and tourism basically shows the relationship between the tourism and the travel trends. The travel trends and tourism are then used in the creation of the tourism management system.

Salary for software programmer in Denmark?

The annual salary for a software programmer in Denmark depends on their qualifications and experience. The average salary for such a position is 60,739 US dollars.

What is the code-behind feature in ASP.NET?

The code-behind feature of ASP.NET enables you to divide an ASP.NET page into two files - one consisting of the presentation data, and the second, which is also called the code-behind file, consisting of all the business logic. The presentation data contains the interface elements, such as HTML controls and Web server controls, and the code-behind contains the event-handling process to handle the events that are fired by these controls. The file that contains the presentation data has the .aspx extension. The code behind file has either the .cs extension (if you are using the programming language C#) or the .vb (if you are using the programming language Visual Basic .NET) extension.

How do you make aspnet applications work without visual studio platform i created a dynamic data website. and it takes a lot of space and slows the computer because of the visual studio platform?

You can install Sharp Develop (http:/www.icsharpcode.net/OpenSource/SD to create your ASP .NET Application (#Develop is the free equivalent of VS), and use ISS or Cassini (http:/www.ultidev.com/products/Cassini to make them work without Visual Studio.

Write a sample program using ASPNET explaining all the syntax and semantics of the program?

write a sample program using asp.net explaining all the syntax and semantics of the program

Which is better for website background PHP or aspnet Which is more promising?

  1. PHP is open-source & can run on linux servers so it is definitely cheaper. Most of the big websites like Yahoo, Youtube, Facebook & Wikipedia use php scripting & mysql database.
  2. Perhaps the main benefit of ASP.NET is Visual Studio which does most of the work automatically for you. The ASP.NET controls are separate from the c#/vb code so that is worth noting.
  3. For beginners when it comes to database mysql is definitely way better but complex queries are better performed using built in methods for MS-SQL. For mysql complex queries have very complex coding which will put off beginners
  4. PHP better integrates javascript & AJAX while you have to write a bit of code in ASP.NET

At the end of the day PHP is faster when it comes to processing data but ASP.NET supports RAD(Rapid Application Development). Ultimately it is up to the user which he one wants to use

What is Passport Authentication in Aspnet?

It is a centralized authentication service provided by Microsoft.This method of authentication uses Microsoft's Passport service to authenticate users. When you use Passport authentication, a user must have a valid Passport account to access the application.

What is gridview in aspnet?

Displays the values of a data source in a table where each column represents a field and each row represents a record. The GridView control enables you to select, sort, and edit these items.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll) Syntax Visual Basic (Declaration) _
_
_
Public Class GridView _
Inherits CompositeDataBoundControl _
Implements IPostBackContainer, IPostBackEventHandler, ICallbackContainer, ICallbackEventHandler Visual Basic (Usage) Dim instance As GridView

C# [ControlValuePropertyAttribute("SelectedValue")]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class GridView : CompositeDataBoundControl, IPostBackContainer,
IPostBackEventHandler, ICallbackContainer, ICallbackEventHandler

Visual C++ [ControlValuePropertyAttribute(L"SelectedValue")]
[AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)]
public ref class GridView : public CompositeDataBoundControl,
IPostBackContainer, IPostBackEventHandler, ICallbackContainer, ICallbackEventHandler

JScript public class GridView extends CompositeDataBoundControl implements IPostBackContainer, IPostBackEventHandler, ICallbackContainer, ICallbackEventHandler

ASP.NET <asp:GridView />


Remarks

The GridView control is used to display the values of a data source in a table. Each column represents a field, while each row represents a record. The GridView control supports the following features:

  • Binding to data source controls, such as SqlDataSource.

  • Built-in sort capabilities.

  • Built-in update and delete capabilities.

  • Built-in paging capabilities.

  • Built-in row selection capabilities.

  • Programmatic access to the GridView object model to dynamically set properties, handle events, and so on.

  • Multiple key fields.

  • Multiple data fields for the hyperlink columns.

  • Customizable appearance through themes and styles.

  • To learn about the other data-bound controls that are available in ASP.NET, see ASP.NET Data-Bound Web Server Controls Overview.

Note:

If you are familiar with the DataGrid control from the .NET Framework version 1.0, the GridView control is the successor to the DataGrid control.

Column Fields

Each column in the GridView control is represented by a DataControlField object. By default, the AutoGenerateColumns property is set to true, which creates an AutoGeneratedField object for each field in the data source. Each field is then rendered as a column in the GridView control in the order that each field appears in the data source.

You can also manually control which column fields appear in the GridView control by setting the AutoGenerateColumns property to false and then defining your own column field collection. Different column field types determine the behavior of the columns in the control. The following table lists the different column field types that can be used.


Column field type

Description

BoundField

Displays the value of a field in a data source. This is the default column type of the GridView control.

ButtonField

Displays a command button for each item in the GridView control. This enables you to create a column of custom button controls, such as the Add or the Remove button.

CheckBoxField

Displays a check box for each item in the GridView control. This column field type is commonly used to display fields with a Boolean value.

CommandField

Displays predefined command buttons to perform select, edit, or delete operations.

HyperLinkField

Displays the value of a field in a data source as a hyperlink. This column field type enables you to bind a second field to the hyperlink's URL.

ImageField

Displays an image for each item in the GridView control.

TemplateField

Displays user-defined content for each item in the GridView control according to a specified template. This column field type enables you to create a custom column field.

To define a column field collection declaratively, first add opening and closing tags between the opening and closing tags of the GridView control. Next, list the column fields that you want to include between the opening and closing tags. The columns specified are added to the Columns collection in the order listed. The Columns collection stores all the column fields in the control and enables you to programmatically manage the column fields in the GridView control.

Explicitly declared column fields can be displayed in combination with automatically generated column fields. When both are used, explicitly declared column fields are rendered first, followed by the automatically generated column fields.

Note:

Automatically generated column fields are not added to the Columns collection.

Binding to Data

The GridView control can be bound to a data source control (such as SqlDataSource, ObjectDataSource, and so on), as well as any data source that implements the System.Collections..::.IEnumerable interface (such as System.Data..::.DataView, System.Collections..::.ArrayList, or System.Collections..::.Hashtable). Use one of the following methods to bind the GridView control to the appropriate data source type:

  • To bind to a data source control, set the DataSourceID property of the GridView control to the ID value of the data source control. The GridView control automatically binds to the specified data source control and can take advantage of the data source control's capabilities to perform sorting, updating, deleting, and paging. This is the preferred method to bind to data.

  • To bind to a data source that implements the System.Collections..::.IEnumerable interface, programmatically set the DataSource property of the GridView control to the data source and then call the DataBind method. When using this method, the GridView control does not provide built-in sort, update, delete, and paging functionality. You need to provide this functionality by using the appropriate event.

For more information about data binding, see Accessing Data with ASP.NET.

Note:

This control can be used to display user input, which might include malicious client script. Check any information that is sent from a client for executable script, SQL statements, or other code before displaying it in your application. Whenever possible, it is strongly recommended that values are HTML-encoded before they are displayed in this control (the BoundField class HTML-encodes values by default). ASP.NET provides an input request validation feature to block script and HTML in user input. Validation server controls are also provided to assess user input. For more information, see Introduction to the Validation Controls.

Data Operations

The GridView control provides many built-in capabilities that allow the user to sort, update, delete, select, and page through items in the control. When the GridView control is bound to a data source control, the GridView control can take advantage of the data source control's capabilities and provide automatic sort, update, and delete functionality.

Note:

The GridView control can provide support for sorting, updating, and deleting with other types of data sources. However, you will need to provide an appropriate event handler with the implementation for these operations.

Sorting allows the user to sort the items in the GridView control with respect to a specific column by clicking on the column's header. To enable sorting, set the AllowSorting property to true.

The automatic updating, deleting, and selection functionalities are enabled when a button in a ButtonField or TemplateField column field, with a command name of "Edit", "Delete", and "Select", respectively, is clicked. The GridView control can automatically add a CommandField column field with an Edit, Delete, or Select button if the AutoGenerateEditButton, AutoGenerateDeleteButton, or AutoGenerateSelectButton property is set to true, respectively.

Note:

Inserting records into the data source is not directly supported by the GridView control. However, it is possible to insert records by using the GridView control in conjunction with the DetailsView or FormView control. For more information, see DetailsView or FormView, respectively.

Instead of displaying all the records in the data source at the same time, the GridView control can automatically break the records up into pages. To enable paging, set the AllowPaging property to true.

Note:

The GridView control is re-created on postback based on the information that is stored in ViewState. If the GridView control includes a TemplateField or a CommandField with the CausesValidation property set to true, then the EnableViewState property must also be set to true to ensure that concurrent data operations, such as updates and deletes, apply to the appropriate row.

Customizing the User Interface

You can customize the appearance of the GridView control by setting the style properties for the different parts of the control. The following table lists the different style properties.


Style property

Description

AlternatingRowStyle

The style settings for the alternating data rows in the GridView control. When this property is set, the data rows are displayed alternating between the RowStyle settings and the AlternatingRowStyle settings.

EditRowStyle

The style settings for the row being edited in the GridView control.

EmptyDataRowStyle

The style settings for the empty data row displayed in the GridView control when the data source does not contain any records.

FooterStyle

The style settings for the footer row of the GridView control.

HeaderStyle

The style settings for the header row of the GridView control.

PagerStyle

The style settings for the pager row of the GridView control.

RowStyle

The style settings for the data rows in the GridView control. When the AlternatingRowStyle property is also set, the data rows are displayed alternating between the RowStyle settings and the AlternatingRowStyle settings.

SelectedRowStyle

The style settings for the selected row in the GridView control.

You can also show or hide different parts of the control. The following table lists the properties that control which parts are shown or hidden.


Property

Description

ShowFooter

Shows or hides the footer section of the GridView control.

ShowHeader

Shows or hides the header section of the GridView control.

Events

The GridView control provides several events that you can program against. This enables you to run a custom routine whenever an event occurs. The following table lists the events that are supported by the GridView control.


Event

Description

PageIndexChanged

Occurs when one of the pager buttons is clicked, but after the GridView control handles the paging operation. This event is commonly used when you need to perform a task after the user navigates to a different page in the control.

PageIndexChanging

Occurs when one of the pager buttons is clicked, but before the GridView control handles the paging operation. This event is often used to cancel the paging operation.

RowCancelingEdit

Occurs when a row's Cancel button is clicked, but before the GridView control exits edit mode. This event is often used to stop the canceling operation.

RowCommand

Occurs when a button is clicked in the GridView control. This event is often used to perform a task when a button is clicked in the control.

RowCreated

Occurs when a new row is created in the GridView control. This event is often used to modify the contents of a row when the row is created.

RowDataBound

Occurs when a data row is bound to data in the GridView control. This event is often used to modify the contents of a row when the row is bound to data.

RowDeleted

Occurs when a row's Delete button is clicked, but after the GridView control deletes the record from the data source. This event is often used to check the results of the delete operation.

RowDeleting

Occurs when a row's Delete button is clicked, but before the GridView control deletes the record from the data source. This event is often used to cancel the deleting operation.

RowEditing

Occurs when a row's Edit button is clicked, but before the GridView control enters edit mode. This event is often used to cancel the editing operation.

RowUpdated

Occurs when a row's Update button is clicked, but after the GridView control updates the row. This event is often used to check the results of the update operation.

RowUpdating

Occurs when a row's Update button is clicked, but before the GridView control updates the row. This event is often used to cancel the updating operation.

SelectedIndexChanged

Occurs when a row's Select button is clicked, but after the GridView control handles the select operation. This event is often used to perform a task after a row is selected in the control.

SelectedIndexChanging

Occurs when a row's Select button is clicked, but before the GridView control handles the select operation. This event is often used to cancel the selection operation.

Sorted

Occurs when the hyperlink to sort a column is clicked, but after the GridView control handles the sort operation. This event is commonly used to perform a task after the user clicks a hyperlink to sort a column.

Sorting

Occurs when the hyperlink to sort a column is clicked, but before the GridView control handles the sort operation. This event is often used to cancel the sorting operation or to perform a custom sorting routine.


What is callback in aspnet?

ASP.NET 2.0 includes a new Client Callback feature that enables you to retrieve page values and populate them to an already-generated page with out reconstructing page. This makes it possible to use on a page with out going through the entire post back cycle; that means you can update your pages without completely redrawing the page.

see related links

A callback is executable code that is passed as an argument to other code. It allows a lower-level software layer to call a subroutine (or function) defined in a higher-level layer. Callbacks have a wide variety of uses. For example, imagine a function that reads..

What is validation in aspnet?

Validation is simply making sure any data coming back from the client is appropriate. It can be both client and server side and is handled by the ASP.NET server controls (valiation controls). These are very easy to work with, as its normally just a matter of dropping them on the page.

What is the best website for free asp.net 2.0 hosting why?

Brother, if you are looking for a hosting company that combines reliability and quality in work.

I highly recommend hostgator with whom I have had a great long experience due to my blogging work

This company has many advantages that are reflected in the diversity of its plans, which include a lot of fairy things at very reasonable prices, an easy control panel, in addition to its endless offers, which you can discover through this link

cutt.ly/yh2asNl

Which is the good language vb net or asp net?

Both VB.NET and ASP.NET use the ".NET" language. The implementation is different, though. VB.NET is a new version of BASIC and is used in Visual Basic programming for designing custom graphical user interfaces for windows applications. ASP.NET is the same language, but designed as a server side language for webpages.

The syntax and keywords of both languages is .NET, the implementation is the difference.

Display word document in aspnet?

I recommend Aceoffix. It can not only fill data in your Word document but also view the Word document in your web page. It does not use Office automation on server side and it is very easy to use. It is a visual asp.net control for Microsoft Office.

Upload image in jquery using aspnet?

http://www.mikesdotnetting.com/Article/95/Upload-and-Crop-Images-with-jQuery-JCrop-and-ASP.NET