Interview Tips Interview Tips, Interview Questions and Answers

12Dec/110

New Generation Vehicle Tracking Telematics

From simply using GPS tracking for basic vehicle location to today's integrated technology systems, telematics vehicle tracking? technology has rapidly evolved in recent years, and can provide fleet control rooms with comprehensive data reporting on both vehicle performance and driver behaviour.

As simple or as complex as an individual business will require, ?new generation vehicle tracking systems are infinitely versatile and flexible, enabling customisable solutions to be implemented. Any size fleet, whether local region SME to mid size and national cross boundary operations, can benefit from a bespoke telematics specification.

There are a number of key investment benefits, which are directly obtainable from running-cost reductions and increased productivity. Selectively identifying and updating the perception of a web based gps vehicle tracking system as being directly applicable to a particular type of fleet operation, is essential to assist prospective fleet owners.

Installing realtime vehicle tracking is no longer simply about instructing drivers on the shortest delivery routes and having an accurate record of daily time sheets. In today's competitive industry, installation of fleet gps tracking involves implementation of essential technology infrastructure to provide vital control over every aspect of the monitoring of daily fleet delivery movements and running costs.

18Sep/110

Strongly Typed Data Controls in asp.net 5

Strongly Typed Data Controls

The next release of ASP.NET provides the ability to enable strongly-typed data templates.  Specifically, we’ve added the ability to declare what type of data a control is going to be bound to, by way of a new “ModelType” property on data controls.  Setting this property will cause two new typed variables to be generated in the scope of the data-bound template expressions: Item and BindItem.

Developers can use these variables in data-binding expressions and get full Intellisense and compile-time checking support.  For example, below we’ve set the ModelType on an <asp:repeater> control to be a “Customer” object.  Once we do this we can switch from using Eval(“FirstName”) to instead use Item.FirstName to reference the property.

We get full Visual Studio code intellisense when we do so:

 

For 2-way data-binding expressions, we can also now use the BindItem variable and get the same strongly-typed benefits:

<asp:FormView ID="editCustomer" runat="server">

    <EditItemTemplate>

        <div>

            First Name:

            <asp:TextBox ID="firstName" Text='<%# BindItem.FirstName %>' runat="server" />

        </div>

        <div>

            Last Name:

            <asp:TextBox ID="lastName" Text='<%# BindItem.LastName %>' runat="server" />

        </div>

        <asp:Button runat="server" CommandName="Update" />

    </EditItemTemplate>

</asp:FormView>

12Jun/110

Powerpacked new controls in Microsoft ASP.NET 3.5

DataPager - Controls like Gridview, Repeater exhibit the pagination behaviour. This is useful when display results return far too many records than an ideal web page height. A search may return countless records, but the web page size should not ideally go on and on depending on the number of records returned. For this, the feature of Page Numbers, OR Previous-Next feature at the bottom of the display results seem to be more ideal. For this purpose, the DataPager control has been introduced.

While using a ListView control, a DataPager control may be used along with it, to provide a paging functionality. The DataPager has a property called PagerControlId which is set to the ID of the ListView control. Simple!

ListView - This control is like an advanced Repeater control, and is as good as a GridView control in terms of features it has. It may be set to any standard data source like SQL, Oracle, Access, XML and even LINQ.

Say you want to display a matrix of values with 3 records per row, the ListView control is the ideal solution. The ListView settings may be made manually using the aspx page, OR may also be set using the Smart Tag feature to launch the properties dialog box.

ScriptManager - Every Ajax enabled page in ASP.NET that makes use of the Ajax Library needs to have a boss or a  manager that takes care of the internal Ajaxification process. All this is controlled by the ScriptManager control. Every page should have not more than one ScriptManager control. It takes care of the javascript functionalities, partial postbacks made by the web page by taking care of the XmlHttpRequest object from behind the scenes. More on Ajax, Read Here.

If the EnablePartialPostback property of the ScriptManager is set to false, the web page exhibits a full page postback.

ScriptManagerProxy - There might be a scenario where your master page and content page need to have separate ScriptManager controls. For such situations, the ScriptManagerProxy control comes to rescue. Here, the masterpage may contain the ScriptManager control, and the content page may use the ScriptManagerProxy control. However, internally, the ScripManagerProxy control communicates with the corresponding ScriptManager  class of the web page. The ScriptManagerProxy control actually transfers its set of responsibilities to the ScriptManager control.

UpdatePanel - This is the control that wraps all the controls that need to be partially posted back. A web page may comprise of several UpdatePanels. In case there is any event happening within the controls wrapped inside an UpdatePanel control, the entire page isn't posted back, rather only the contents within the UpdatePanel are posted back to the web server. If the partial postback property is to be avoided, set the ChildrenAsTriggers property of the UpdatePanel to false.

Further, the Triggers of an UpdatePanel may be used to set the application in such a way that the partial postback of the UpdatePanel may be invoked from controls that lie outside the UpdatePanel.

UpdateProgress - There are scenarios where a request may take time, an image may take time to load, a business logic may time to calculate, data may take time to load due to diversities in the source. In UpdatePanels, as postbacks are partial in nature, the browser's default progress bar does not appear. For avoiding any confusion to the end user, that a page process is going on in the background, the UpdateProgress control may be used. This is like a progress bar that shows to the end user that a process is going on. The progress may be set to any moving gif image as well, to enhance the look & feel of the web application.

13Apr/110

ViewState is responsible for maintaining data across the Page Post Back

Does ViewState is responsible for maintaining data across the Page Post Back for Postback controls (like textbox, dropdownlist) and non-postbackcontrols(like label)?

It is false. For NonPostback controls it is true but for postback controls, ASP.NET retrieves their values one by one from the HTTP request and copies them to the control values while creating the HTTP response.

Compete in Cloud Code Contests, Win Cash
CloudSpokes is a new dev community, focused exclusively on cloud platforms. Come develop new skills with real world contests and win cash for winning entries. Join us!

2Mar/110

ASP.NET – HTML Server Controls

HTML server controls are HTML tags understood by the server.

HTML elements in ASP.NET files are, by default, treated as text. To make these elements programmable, add a runat="server" attribute to the HTML element. This attribute indicates that the element should be treated as a server control. The id attribute is added to identify the server control. The id reference can be used to manipulate the server control at run time.

Note: All HTML server controls must be within a <form> tag with the runat="server" attribute. The runat="server" attribute indicates that the form should be processed on the server. It also indicates that the enclosed controls can be accessed by server scripts.

In the following example we declare an HtmlAnchor server control in an .aspx file. Then we manipulate the HRef attribute of the HtmlAnchor control in an event handler (an event handler is a subroutine that executes code for a given event). The Page_Load event is one of many events that ASP.NET understands:

<script runat="server">
Sub Page_Load
link1.HRef="http://www.jack-fx.com"
End Sub
</script>

<html>
<body>

<form runat="server">
<a id="link1" runat="server">Hello world</a>
</form>

</body>
</html>

The executable code itself has been moved outside the HTML.

27Feb/110

ASP.NET Validation Server Controls

CompareValidator     Compares the value of one input control to the value of another input control or to a fixed value
CustomValidator     Allows you to write a method to handle the validation of the value entered
RangeValidator     Checks that the user enters a value that falls between two values
RegularExpressionValidator     Ensures that the value of an input control matches a specified pattern
RequiredFieldValidator     Makes an input control a required field
ValidationSummary     Displays a report of all validation errors occurred in a Web page

20Feb/110

Web Server Controls

AdRotator     Displays a sequence of images
Button     Displays a push button
Calendar     Displays a calendar
CalendarDay     A day in a calendar control
CheckBox     Displays a check box
CheckBoxList     Creates a multi-selection check box group
DataGrid     Displays fields of a data source in a grid
DataList     Displays items from a data source by using templates
DropDownList     Creates a drop-down list
HyperLink     Creates a hyperlink
Image     Displays an image
ImageButton     Displays a clickable image
Label     Displays static content which is programmable (lets you apply styles to its content)
LinkButton     Creates a hyperlink button
ListBox     Creates a single- or multi-selection drop-down list
ListItem     Creates an item in a list
Literal     Displays static content which is programmable(does not let you apply styles to its content)
Panel     Provides a container for other controls
PlaceHolder     Reserves space for controls added by code
RadioButton     Creates a radio button
RadioButtonList     Creates a group of radio buttons
BulletedList     Creates a list in bullet format
Repeater     Displays a repeated list of items bound to the control
Style     Sets the style of controls
Table     Creates a table
TableCell     Creates a table cell
TableRow     Creates a table row
TextBox     Creates a text box
Xml     Displays an XML file or the results of an XSL transform

12Feb/110

HTML Server Controls

HtmlAnchor     Controls an <a> HTML element
HtmlButton     Controls a <button> HTML element
HtmlForm     Controls a <form> HTML element
HtmlGeneric     Controls other HTML element not specified by a specific HTML server control, like <body>, <div>, <span>, etc.
HtmlImage     Controls an <image> HTML element
HtmlInputButton     Controls <input type="button">, <input type="submit">, and <input type="reset"> HTML elements
HtmlInputCheckBox     Controls an <input type="checkbox"> HTML element
HtmlInputFile     Controls an <input type="file"> HTML element
HtmlInputHidden     Controls an <input type="hidden"> HTML element
HtmlInputImage     Controls an <input type="image"> HTML element
HtmlInputRadioButton     Controls an <input type="radio"> HTML element
HtmlInputText     Controls <input type="text"> and <input type="password"> HTML elements
HtmlSelect     Controls a <select> HTML element
HtmlTable     Controls a <table> HTML element
HtmlTableCell     Controls <td>and <th> HTML elements
HtmlTableRow     Controls a <tr> HTML element
HtmlTextArea     Controls a <textarea> HTML element