|
|
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...
|
|
|
4.1 How to get the currently logged in user?
|

 |
|
To get the user ID of the user who is currently logged in, you would get it
using this: System.Web.HttpContext.Current.User.Identity.Name VB.NET
|
'Displays the currently logged in
user
|
Response.Write(User.Identity.Name.ToString())
|
//Displays the currently logged in
user
|
Response.Write(User.Identity.Name.ToString());
|
4.2 How to specify a line break in a Label's Text?
|

 |
|
Use the "<br>" tag to specify line breaks. For example:
VB.NET
|
Label1.Text = "<sometag1>" +
"<br>" + "<sometag1>"
|
Label1.Text = "<sometag1>" +
"<br>" + "<sometag1>";
|
4.3 How to convert a string to HTML format?
|

 |
|
Use namespace System.Web.HttpUtility
VB.NET
|
Dim mystring as string =”Tom &
Jerry”
|
Response.Write
(HttpUtility.HtmlDecode (mystring))
|
string mystring=”Tom & Jerry”;
|
Response.Write
(HttpUtility.HtmlDecode (mystring));
|
4.4 How do I determine if the user clicked a "Submit" button twice in the page?
|

 |
4.5 How to write date-time values of fields in a dataset into xml in a specific
format?
|

 |
4.6 What does "~" mean in ASP.NET applications?
|

 |
|
The tilde (~) in front of URLs means that these URLs point to the root of your
web application.
Web developers are familiar with using relative paths for all links, including
hyperlinks, images, and stylesheets, to be able to move around web pages
collectively.
In ASP.NET when using User controls the relative paths can be difficult to use.
The typical solution to this is to use web-root absolute paths instead here,
resulting in the hard-coded sub-directories that are common on ASP.NET sites.
The correct solution to this problem is to use app-relative paths instead, which
ASP.NET nicely makes possible through the use of the tilde (~) prefix. Instead
of <a href="/UC/Page.aspx">, use <a href="~/Page.aspx"
runat="server">. The same ~ notation works for images also, as long as you
add runat="server". There is also a ResolveUrl method that allows you to use ~
in your own code, which is one possible way to get stylesheet paths
app-relative. Refer
Tilde: Reference the Application Root
|
4.7 How can I reference simple DLL which contains one class but has no
namespace assigned to it in an .aspx page?
|

 |
|
You don't need a namespace to reference it; anything in the bin folder is
implicitly in the same namespace as the page being compiled. So if your class
looks like this:
|
public Function getTheName(byval
strval as string) as string
|
Response.Write(mc.getTheName)
|
MyClass1 mc = new MyClass1();
|
Response.Write(mc.getTheName);
|
4.8 How do I specify the Japanese locale for the controls in my Japanese
localized page?
|

 |
|
Just set the locale to Japanese in the Page directive.
i. e Set the Culture= "ja-JP" for the Page Directive.
-
ASP.NET pages support Culture and UICulture attributes to support independent
localized pages.
-
Controls on pages can pick the culture of the page and can render
culture-dependent content.
|
4.9 Why do some of the events on my page fire twice?
|

 |
|
This is probably because you explicitly subscribed to the events in code and
also specified the AutoEventWireUp
of Page to true (it's true by default). If so, the Page_Load, for example, will
be fired once for your event subscription and once because the Page subscribed
it for you (by looking for a specific event handler method signature).
To avoid this turn off AutoEventWireUp or remove your subscription code.
|
4.10 How to remove the spaces in a given string?
|

 |
|
Use the Namespace System.Text.RegularExpressions VB.NET
|
Dim strval As String = "Jack and
Jill"
|
Dim strnewval As String =
Regex.Replace(strval, " ", "")
|
Response.Write(strnewval)
|
string strval = "Jack and Jill";
|
string strnewval =
Regex.Replace(strval, " ", "");
|
Response.Write(strnewval) ;
|
4.11 I get the error System.__ComObject when using recordset?
|

 |
|
This error occurs if you are trying to fetch the recordset value as follows
|
|
To avoid this error try VB.NET
|
rs.Fields("productname").Value.ToString()
|
rs.Fields["productname").Value.ToString()
;
|
4.12 Why do I get error "A generic error occurred in GDI+." when trying to save
the bitmap file?
|

 |
|
May be the path of the file you are giving is wrong or you do not have write
permissions on the specific folder.
|
4.13 How can I force a Save As dialog box from an ASP.NET Web page.
|

 |
Response.AppendHeader("content-disposition",
"attachment; filename=document1.doc")
|
Response.ContentType = "text/plain"
|
Response.WriteFile(Server.MapPath("document1.doc"))
|
Response.AppendHeader("content-disposition",
"attachment; filename=document1.doc");
|
Response.ContentType = "text/plain";
|
Response.WriteFile(Server.MapPath("document1.doc"));
|
4.14 In ASP.NET is there a control similar to Combobox in Windows forms?
|

 |
4.15 How to do text encryption and decryption?
|

 |
|
Here are some interesting articles that talk about encryption and decryption:
|
4.16 How can I trigger a submit on my form when the enter key is pressed?
|

 |
|
Add this to the body element:
|
<body MS_POSITIONING=
"GridLayout"onkeypress="if(window.event.keyCode==13){
document.Form1.submit();}">
|
|
Also check out Andy Smith's
DefaultButton Control which triggers submit selectively on one of many
buttons based on the context.
|
| | |