|
|
Resources |
|
Finding
Correct Content Managemet System
This
list covers the full lifecycle of a content management system, from initially
creating the content, through to delivering it to end users...
|
|
Workflow Managemet Systems
Workflow
management is a crucial component in organizing a variety of business processes
so that they benefit the business as a whole and increase profitability...
|
|
Using the Power of Content Management Systems
With
page editors that resemble a word processor program, adding content with a CMS
interface is simple and fun. Most CMS software also allows you to change the
location of your content pages and links easily, while the back end processes
takes care of updating the links throughout your site...
|
|
Content Management Systems (CMS): What They Are And Why We Love Them
In the
past, individuals who took interest in having and operating their own websites
were burdened with the task of learning HTML, DHTML, and other web-based
technologies such as JavaScript and CSS. The only alternative to this was,
unfortunately, to pocket the expenses and costs required to pay a web developer
to build and maintain it for them...
|
|
Outsourcing
Post
your project for outsourcing and get bids from qualified programmers,
designers, interpreters, copywriters.
|
Code Walkthroughs |
|
Datagrid
Formatting the Data
We are
able to format the content of the datagrid cell by one of two simple methods,
dependant upon whether the column is a bound column or whether it is a template
column. In our example we shall format the column to have to digits after the
decimal point , followed by a...
|
|
Datagrid
Highlight a Row With Click Through
It is
relatively easy to add alternating colours to the rows in your datagrid.
However, when we move the mouse over the rows we may want to highlight this
row, and possibly to add the option of a click through based on the row
selected...
|
|
Add
a Delete Button to a Datagrid
To add
a delete button to a datagrid follows a similar process to adding an edit
button. In the datagrid header...
|
|
Add
an Edit Button to a Datagrid
The
datagrid has a predefined editColumn for handling the editing of a datagrid.
Adding this simple column definition to a datagrid adds a powerful feature.
When a row is not in edit mode the column item shows the word...
|
|
Making
a Datagrid Row Editable
Two of
the most popular methods of editing a datagrid in asp.net are to either select
the row and take the user off to a different presentation of the data, or to
change the formatting of the row presented in the database with appropriate
edit text boxes, checkboxes and...
|
|
Adding
Tooltips to Datagrid Rows
Adding
tooltips to datagrid rows is easy, assuming that you have already created the
code for adding row highlighting. In this article I shall assume that you have
already read the article entitled Datagrid Highlight a Row With Click
Through...
|
|
Binding
a Datagrid to an Access Database
This
list covers the full lifecycle of a content management system, from initially
creating the content, through to delivering it to end users...
|
|
Adding
Data to a DropDownList
The aim
of this article is to answer the question 'How do I add items to a
DropDownList?' Initially as part of the declaration for the DropDownList we can
also define a number of items, much in the same way as in classic ASP...
|
|
Getting
Current Date Time
In
classic ASP we had now() which would return the current date and time. For
asp.net this no longer exists. So what should we use...
|
|
Test
if File Exists
Sometimes,
in order to reduce our chance of error, when working with the filesystem in
ASP.NET, we need to determine wether a file exists before performing an action
on it. The following short piece of code will enable us to test whether a file
exists...
|
|
Using
Javascript with ASP.NET Form Elements
Adding
simple pieces of Javascript to an Asp.net page can be acheived by adding to the
attributes of the particular imagebutton or linkbutton. if its normal ASP.Net
Button then you can...
|
|
Regular
Expressions
In the table below we list the characters used in .Net
regular expressions, together with their meaning, But first...
|
|
Authentication
in Asp.net
Forms
authentication in ASP.Net is far more easier and safe than Asp 3. It is
possible to place a web.config file in any directory of a web site.Therefore,
we are able to make most of a web site public, whilst providing authentication
on, say, one directory...
|
|
|
20.1 How to bind an ArrayList to a DropDownList?
|

 |
Dim arrList As ArrayList = New
ArrayList
|
DropDownList1.DataSource = arrList
|
ArrayList arrList = new ArrayList();
|
DropDownList1.DataSource = arrList;
|
DropDownList1.DataBind();
|
20.2 How to check if the ArrayList is empty?
|

 |
20.3 I get the error message "DataGrid with id 'DataGrid1' could not
automatically generate any columns from the selected data source" when I bind a
HashTable to the DataGrid?
|

 |
|
Set the AutoGenerateColumns property of the DataGrid to False.Sample code below
VB.NET
|
<asp:DataGrid
AutoGenerateColumns=False id="DataGrid1" runat="server">
|
<asp:TemplateColumn
HeaderText="HashTable">
|
<%#
Container.DataItem.Key %> <br>
|
<%# Container.DataItem.Value %>
|
Dim ht As New Hashtable()
|
DataGrid1.DataSource = ht
|
<asp:DataGrid
AutoGenerateColumns=False id="DataGrid1" runat="server">
|
<asp:TemplateColumn
HeaderText="HashTable">
|
<%# ((DictionaryEntry)Container.DataItem).Key %><br>
|
<%# ((DictionaryEntry)Container.DataItem).Value %>
|
Hashtable ht = new Hashtable();
|
DataGrid1.DataSource = ht;
|
20.4 How to sort ArrayList?
|

 |
<asp:Button id="btnAsc"
runat="server" Text="Asc"></asp:Button>
|
<asp:ListBox id="ListBox1"
runat="server"></asp:ListBox>
|
<asp:Button id="btnDesc"
runat="server" Text="Desc"></asp:Button>
|
Private Sub Page_Load(sender As
Object, e As System.EventArgs)
|
' Put user code to initialize the
page here
|
Dim
arrlist As New ArrayList()
|
ListBox1.DataSource
= arrlist
|
ViewState("AList")
= arrlist
|
Private Sub btnAsc_Click(sender As
Object, e As System.EventArgs)
|
CType(ViewState("AList"),
ArrayList).Sort()
|
ListBox1.DataSource
= CType(ViewState("AList"), ArrayList)
|
Private Sub btnDesc_Click(sender As
Object, e As System.EventArgs)
|
CType(ViewState("AList"),
ArrayList).Sort()
|
CType(ViewState("AList"),
ArrayList).Reverse()
|
ListBox1.DataSource
= CType(ViewState("AList"), ArrayList)
|
private void Page_Load(object
sender, System.EventArgs e)
|
// Put
user code to initialize the page here
|
ArrayList
arrlist = new ArrayList ();
|
ListBox1.DataSource
=arrlist ;
|
ViewState["AList"]
= arrlist ;
|
private void btnAsc_Click(object
sender, System.EventArgs e)
|
((ArrayList)ViewState["AList"]).Sort()
;
|
ListBox1.DataSource
=(ArrayList)ViewState["AList"] ;
|
private void btnDesc_Click(object
sender, System.EventArgs e)
|
((ArrayList)ViewState["AList"]).Sort()
;
|
((ArrayList)ViewState["AList"]).Reverse
();
|
ListBox1.DataSource
=(ArrayList)ViewState["AList"] ;
|
20.5 How to sort the DataGrid using an ArrayList as the DataSource?
|

 |
<asp:DataGrid AllowSorting =True
OnSortCommand="SortData" id="DataGrid1" runat="server"
EnableViewState="false"></asp:DataGrid>
|
Private Sub Page_Load(sender As
Object, e As System.EventArgs)
|
' Put user code to initialize the
page here
|
Dim
arrlist As New ArrayList()
|
DataGrid1.DataSource
= arrlist
|
ViewState("AList")
= arrlist
|
Protected Sub SortData([source] As
[Object], e As System.Web.UI.WebControls.DataGridSortCommandEventArgs)
|
If
ViewState("SortOrder") Is Nothing Then
|
If
ViewState("SortOrder").ToString() = " ASC" Then
|
ViewState("SortOrder")
= " ASC"
|
CType(ViewState("AList"),
ArrayList).Sort()
|
DataGrid1.DataSource
= ViewState("AList")
|
ViewState("Sort")
= "DESC"
|
ViewState("SortOrder")
= " DESC"
|
CType(ViewState("AList"),
ArrayList).Sort()
|
CType(ViewState("AList"),
ArrayList).Reverse()
|
DataGrid1.DataSource
= ViewState("AList")
|
ViewState("Sort")
= "ASC"
|
private void Page_Load(object
sender, System.EventArgs e)
|
// Put
user code to initialize the page here
|
ArrayList
arrlist = new ArrayList ();
|
DataGrid1.DataSource
= arrlist ;
|
ViewState["AList"]
= arrlist ;
|
protected void SortData(Object
source, System.Web.UI.WebControls.DataGridSortCommandEventArgs e )
|
if
(ViewState["SortOrder"] ==null)
|
else
if (ViewState["SortOrder"].ToString () == " ASC" )
|
ViewState["SortOrder"]
= " ASC";
|
((ArrayList)ViewState["AList"]).Sort
();
|
DataGrid1.DataSource
= ViewState["AList"];
|
ViewState["Sort"]="DESC";
|
ViewState["SortOrder"]
= " DESC";
|
((ArrayList)ViewState["AList"]).Sort
();
|
((ArrayList)ViewState["AList"]).Reverse
();
|
DataGrid1.DataSource
= ViewState["AList"];
|
|
|
|