.
Microsoft Windows Hosting, ASP, ASP.NET, Multiple Domain Name Plans
home
|
about us
|
contact us
Hosting web sites since 1997
WEB HOSTING
ECOMMERCE
DOMAIN NAMES
SUPPORT
REFERRAL PARTNERS
ORDER
LOGIN
For Phone Support Call:
1.212.753.1520
TOOLS
ASP Scripts
asp.NET Scripts
HTML Scripts
JAVA Scripts
PERL Scripts
PHP Scripts
WML Scripts
Support Tools
asp.NET Scripts
.
Data display
/
File read
/
MapPath
/
Data connection
/
Send Email
.
..
Data display
<%@ Page Language="C#" Debug="true" %> <%@ Import Namespace="System.Xml" %>
Paged Data Source Example
Name: <%# DataBinder.Eval(Container.DataItem, "Key") %>
Price: <%# DataBinder.Eval(Container.DataItem, "Value") %>
back to top
..
..
File read
<%@ Import Namespace="System" %> <%@ Import Namespace="System.IO" %>
The following example opens a text file for reading, and copies the information in the text file to an ArrayList. The ArrayList is then printed to the screen.
back to top
..
..
MapPath
<%@ Page Language="vb" %> <%@ Import Namespace="System.Data" %>
<%= server.mappath("/") %>
back to top
..
..
Data connection
<%@ Page Language="VB" Debug="True" CompilerOptions='/R:"C:\Program Files\Microsoft.NET\Odbc.Net\Microsoft.data.odbc.dll"'%> <%@ Import Namespace="System.Data" %> <%@ Import Namespace = "Microsoft.Data.Odbc" %>
back to top
..
..
Send Email
<%@Page Explicit="False" Language="VB" Debug="True" %> <%@Import Namespace="System.Web.Mail" %> <% Dim EmailTo As String = "info@general-hosting.net" Dim EmailFrom As String = "info@general-hosting.net" Dim EmailSubject As String = "Registration Email" Dim EmailBody As String = "Test" System.Web.Mail.SmtpMail.Send(EmailFrom, EmailTo, EmailSubject, EmailBody) Response.Write ("Mail sent OK.") %>
back to top
..
30-Day Money Back Guarantee
|
Terms & Conditions
| © GeneralHosting.com, Official Microsoft Windows 2003 Hosting