-----------------------------------------------------------
New Message on cochindotnet
-----------------------------------------------------------
From: CyberRomeos
Message 1 in Discussion
<html> <head> <title>ASP.NET </title> </head> <body>
ASP.NET Source Codes And Articles
BY : Stephen Antony
kerala
programmers http://keralaprogrammers.home-page.org/
How to write a cookie to a client browser via the web server ? <textarea rows="20"
cols="51" name="cookies" style="color: #FFFFFF; border-style: double; border-width: 3;
background-color: #000000"> <%@ Page Language=VB Debug=true %> runat=server> Sub
SubmitBtnWrite_Click(Sender As Object, E As EventArgs)
Response.Cookies("stephenlovescookies1").Expires = "1/1/8000"
Response.Cookies("stephenlovescookies1").Value = _ "stephen cookie
examplef." Response.Cookies("stephenlovescookies2").Expires = "1/1/8000"
Response.Cookies("stephenlovescookies2").Value = _ "example two." End
Sub Sub SubmitBtnRead_Click(Sender As Object, E As EventArgs) Dim I as integer
For I = 0 to Request.Cookies.Count - 1 lblMessage1.Text = lblMessage1.Text _
& Request.Cookies.Item(I).Name & ": " _ &
Request.Cookies.Item(I).Value & "
" Next End Sub ' the above shows seeting up a cookie important part you can change
the variables that 1/1/8000 is simply some variable for date </SCRIPT> <HTML> <HEAD>
<meta http-equiv="Content-Language" content="en-us"> <TITLE>Cookies Sample
Page</TITLE> <style fprolloverstyle>A:hover {color: #000080; font-weight: bold}
</style> </HEAD> <BODY TEXT="#FF0000" LINK="#008000" VLINK="#FF0000" ALINK="#00FF00"
LEFTMARGIN="40" TOPMARGIN="30" bgcolor="#800000"> <form runat="server"> <asp:Label
id="lblMessage1" runat="Server" Font-Bold="True" />
<asp:button id="butOK1" runat="server" text="Write Cookies to Browser"
Type="Submit" OnClick="SubmitBtnWrite_Click" /> <asp:button id="butOK2"
runat="server" text="Read Cookies from Browser" Type="Submit"
OnClick="SubmitBtnRead_Click" /> </Form>
WRiting a cookie in ASP.NET From stephen antony
www.stephenonline.tk http://keralaprogrammers.home-page.org/ For all your
programming needs Dont forget to ask me all your doubts and questions i
am free to help you !!
http://askapro.cjb.net
I will be Happy to answer your questions </BODY>
</HTML></textarea>
How to save content for user computer i.e. user surveys to the web server or user
feedback to the web server
<textarea rows="18" cols="67" name="formsave" style="color: #000000; border-style:
double; border-width: 3; background-color: #C0C0C0"> <%@ Page Language=VB Debug=true
%> runat=server> Sub SubmitBtn_Click(Sender As Object, E As EventArgs) Dim I as
Integer lblMessage4.Text = "Total number of Form fields: " _ &
Request.Form.Count & "
" For I = 0 to Request.Form.Count - 1 If Request.Form.GetKey(I) =
"__VIEWSTATE" Then lblMessage4.Text = lblMessage4.Text _
& Request.Form.GetKey(I) & ": " _ & Left(Request.Form(I), 20) & "
" Else lblMessage4.Text = lblMessage4.Text _ &
Request.Form.GetKey(I) & ": " _ & Request.Form(I) & "
" End If Next Request.SaveAs("c:\Inetpub\wwwroot\uploadedfilenew.txt",
True) End Sub </SCRIPT> <HTML> <HEAD> <TITLE>using forms in asp</TITLE> </HEAD> <BODY
TEXT="#000080" LINK="#008000" VLINK="#FF00FF" ALINK="#000000" LEFTMARGIN="40"
TOPMARGIN="30" bgcolor="#FF0066"> <form runat="server"> <asp:Label
id="lblMessage1" runat="Server" Font-Bold="True" Text="Field 1: " />
<asp:TextBox id="Field1" runat="Server" />
<asp:Label id="lblMessage2" runat="Server" Font-Bold="True"
Text="Field 2: " /> <asp:TextBox id="Field2" runat="Server" />
<asp:Label id="lblMessage3" runat="Server" Font-Bold="True"
Text="Field 3: " /> <asp:TextBox id="Field3" runat="Server" />
<asp:button id="butOK" runat="server" text="OK" Type="Submit"
OnClick="SubmitBtn_Click" />
<asp:Label id="lblMessage4" runat="Server" Font-Bold="True" />
</Form>
The example shows how to handle forms in ASP.NET
www.stephenonline.tk http://keralaprogrammers.home-page.org/ For all your
programming needs Dont forget to ask me all your doubts and questions i
am free to help you !!
http://askapro.cjb.net
I will be Happy to answer your questions </BODY>
</HTML></textarea>
How to Get the client computer information to the web server
<TEXTAREA rows="31" cols="73" name="BROWINFO" style="color: #FFFFFF; border-style:
double; border-width: 3; background-color: #009900"> <%@ Page Language=VB Debug=true
%> runat=server> Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs) Dim
BCaps As HttpBrowserCapabilities BCaps = Request.Browser lblMessage1.Text =
lblMessage1.Text _ & "AOL: " & BCaps.AOL & "
" _ & "Mozzila: " & BCaps.Mozzila & "
" _ & "IE 6: " & BCaps.Internet Explorer 6 & "
" _ & "Supports BG Sounds: " & BCaps.BackgroundSounds & "
" _ & "Beta Browser: " & BCaps.Beta & "
" _ & "Browser Name: " & BCaps.Browser & "
" _ & "Supports Cookies: " & BCaps.Cookies & "
" _ & "Is a Web Crawler: " & BCaps.Crawler & "
" _ & "Browser Major Version: " & BCaps.MajorVersion & "
" _ & "Browser Minor Version: " & BCaps.MinorVersion & "
" _ & "Platform: " & BCaps.Platform & "
" _ & "Is Win 16: " & BCaps.Windows old version 18 bit & "
" _ & "Is Win NT: " & BCaps.Windows NT & "
" _ & "Is Win 32: " & BCaps.Win32 & "
" End Sub </SCRIPT> <HTML> <HEAD> <TITLE>Browser information from WEBSERVER</TITLE>
<style fprolloverstyle>A:hover {color: #FF0000; font-family: Arial (fantasy);
font-size: 10pt; font-style: oblique; font-weight: bold} </style> </HEAD> <BODY
TEXT="#808000" LINK="#008000" VLINK="#0000FF" ALINK="#00FFFF" LEFTMARGIN="40"
TOPMARGIN="30" bgcolor="#C0C0C0"> <form runat="server">
The example shows how to Get the client computer information to the webserver
www.stephenonline.tk http://keralaprogrammers.home-page.org/ For all your
programming needs Dont forget to ask me all your doubts and questions i
am free to help you !!
http://askapro.cjb.net
I will be Happy to answer your questions
<asp:Label id="lblMessage1" runat="Server" Font-Bold="True" /> </Form>
</BODY> </HTML></TEXTAREA>
How to read and write Data from and .MDB File Using ASP.NET <TEXTAREA rows="31"
cols="73" name="DATABASE" style="color: #808080; border-style: double; border-width:
3; background-color: #800000"> <%@ Page Language=VB Debug=true %> <%@ Import
Namespace="System.Data" %> <%@ Import Namespace="System.Data.OLEDB" %> runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs) Dim DBConn as
OleDbConnection Dim DBCommand As OleDbDataAdapter Dim DSPageData as New
DataSet If Len(Request.QueryString("DATABASEITEMID")) = 0 Then
Response.Redirect("./YOURWESITE.COM") End If DBConn = New
OleDbConnection("PROVIDER=" _ & "Microsoft.Jet.OLEDB.4.0;" _ & "DATA
SOURCE=" _ & Server.MapPath("DATABASE.mdb;")) DBCommand = New
OleDbDataAdapter _ ("Select DATABASEITEMID, LastName, FirstName, PhoneNumber,
" _ & "EmailAddress, Notes, DATABASESUBFIELDName " _ & "From
DATABASEITEMs Left Join DATABASESUBFIELDs On " _ &
"DATABASEITEMs.DATABASESUBFIELDID = " _ &
"DATABASESUBFIELDs.DATABASESUBFIELDID Where " _ & "DATABASEITEMID = " &
Request.QueryString("DATABASEITEMID") _ , DBConn)
DBCommand.Fill(DSPageData, _ "DATABASEITEMData") lblDATABASEITEMID.Text =
"DATABASEITEM ID: " _ & DSPageData.Tables("DATABASEITEMData"). _
Rows(0).Item("DATABASEITEMID") lblName.Text = "Name: " _ &
DSPageData.Tables("DATABASEITEMData"). _ Rows(0).Item("FirstName") & " " _
& DSPageData.Tables("DATABASEITEMData"). _
Rows(0).Item("LastName") lblDATABASESUBFIELD.Text = "DATABASESUBFIELD: " _
& DSPageData.Tables("DATABASEITEMData"). _
Rows(0).Item("DATABASESUBFIELDName") lblEmailAddress.Text = "Email Address: " _
& DSPageData.Tables("DATABASEITEMData"). _
Rows(0).Item("EmailAddress") & "" lblPhoneNumber.Text = "Phone Number: " _
& DSPageData.Tables("DATABASEITEMData"). _ Rows(0).Item("PhoneNumber")
lblNotes.Text = "Notes: " _ & DSPageData.Tables("DATABASEITEMData"). _
Rows(0).Item("Notes") End Sub </SCRIPT> <HTML> <HEAD> <TITLE>ACCESSIND A
DATABASE</TITLE> <style fprolloverstyle>A:hover {color: #008000; font-family: Arial
Black; font-size: 12pt; font-style: oblique; font-weight: bold} </style> </HEAD> <BODY
TEXT="#C0C0C0" LINK="#008000" VLINK="#808000" ALINK="#FF0000" LEFTMARGIN="40"
TOPMARGIN="60" bgcolor="#333333"> <form runat="server"> <asp:Label
id="lblDATABASEITEMID" runat="Server" />
<asp:Label id="lblName" runat="Server" />
<asp:Label id="lblDATABASESUBFIELD" runat="Server" />
<asp:Label id="lblEmailAddress" runat="Server" />
<asp:Label id="lblPhoneNumber" runat="Server" />
<asp:Label id="lblNotes" runat="Server" />
<asp:HyperLink id="hyp1" runat="server" Text="Return to Grid"
NavigateURL="./YOURWESITE.COM" /> </Form>
show how to read and write from a database in ASP.NET
www.stephenonline.tk http://keralaprogrammers.home-page.org/ For all your
programming needs Dont forget to ask me all your doubts and questions i
am free to help you !!
http://askapro.cjb.net
I will be Happy to answer your questions </BODY>
</HTML></TEXTAREA>
That finishes the examples for
now I will write more for this group COCHINDOTNET Later thanks a lot to
MR.Jayakrishnan For INTRODUCING ME TO SUCH A MARVELOUS GROUP you people are welcomed
to join the latest website for programmers by me
http://keralaprogrammers.home-page.org/
Join Up It Is Free help yourself and others It Is A non Profit Oriented Website
Thanks for Reading this tutorials
<SHADE>A</SHADE><SHADE>bout me :</SHADE>
Hai all
I am Stephen Antony I doing my graduation in chemistry in Fatima Mata national
college kollam kerala www.fatimacollege.net The Above website developed
by me is ASIA'S First W.A.P enabled Educational website I do have a lot of other
credits with me which are most related to programming I love programming at
present i am doing freelancing as a web programmer and also provides web hosting and
server co location services to Persons and companies I offer the best hosting
packages at unbelievable rates I offer Complete DOTNET Hosting 100 Mb with domain
Name for just Indian rupees 1000 with unlimited e-mail accounts ,online control
panel, unlimited traffic on Web servers Located In Japan And AUSTRALIA I believe
that knowledge is power and to share knowledge is the most noble thing
I do Speak on seminars about C # Programming
ASP.NET Programming
W.A.P
Wireless Game Development (Java And C #)
CGI and C++ Programming
You can also suggest me Topics
cc I also expect some good friends from you if you can be my friend pls do
contact me if you want to know more about me just search "Stephen Antony " in
www.google.com
Thanks
Stephen Antony
� Stephen Antony
</body> </html>
View Attachment(s):
http://groups.msn.com/cochindotnet/_notifications.msnw?type=msg&mview=1&parent=1&item=607
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/cochindotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]