-----------------------------------------------------------

New Message on cochindotnet

-----------------------------------------------------------
From: CyberRomeos
Message 1 in Discussion

 
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 
style="BORDER-RIGHT: 3px double; BORDER-TOP: 3px double; BORDER-LEFT: 3px double; 
COLOR: #ffffff; BORDER-BOTTOM: 3px double; BACKGROUND-COLOR: #000000" name=cookies 
rows=20 cols=51> <%@ Page Language=VB Debug=true %> <script 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 & "<BR>"     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"> <Font Face="Tahoma"> <asp:Label     
id="lblMessage1"     runat="Server"     Font-Bold="True" /> <BR><BR> <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" 
/> </Font> </Form> <p><font face="Times New Roman" size="6" 
color="#008000">W</font><font face="Times New Roman" color="#008000" size="5">Riting  
a cookie in ASP.NET From stephen antony </font></p> <p><font face="Times New Roman" 
size="5" color="#008000"> </font><font face="Times New Roman" color="#008000"><a 
href="http://www.stephenonline.tk";>www.stephenonline.tk</a>  <a 
href="http://keralaprogrammers.home-page.org/";> 
http://keralaprogrammers.home-page.org/</a>  For all your programming needs</font></p> 
<table border="5" cellpadding="0" cellspacing="0" style="border-collapse: collapse" 
width="100%" id="AutoNumber1" bordercolorlight="#C0C0C0" bordercolordark="#FF0066" 
bgcolor="#000000">   <tr>     <td width="100%"> <font size="4" color="#FFFFFF">Dont 
forget to ask me      all your doubts and questions i am free to help you !!</font><p> 
    <font size="4" color="#FFFFFF">                                          <a 
href="http://askapro.cjb.net";>http://askapro.cjb.net</a></font></p>     <p><font 
size="4" color="#FFFFFF">                                I will be Happy to answer 
your questions</font></td>   </tr> </table> </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 style="BORDER-RIGHT: 3px double; BORDER-TOP: 3px double; BORDER-LEFT: 3px 
double; COLOR: #000000; BORDER-BOTTOM: 3px double; BACKGROUND-COLOR: #c0c0c0" 
name=formsave rows=18 cols=67> <%@ Page Language=VB Debug=true %> <script 
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 & "<BR>"     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) & "<BR>"         Else             lblMessage4.Text  = 
lblMessage4.Text _                 & Request.Form.GetKey(I) & ": " _                 & 
Request.Form(I) & "<BR>"         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"> <Font Face="Tahoma"> <asp:Label     
id="lblMessage1"     runat="Server"     Font-Bold="True"     Text="Field 1: " /> 
<asp:TextBox     id="Field1"     runat="Server" /> <BR><BR> <asp:Label     
id="lblMessage2"     runat="Server"     Font-Bold="True"     Text="Field 2: " /> 
<asp:TextBox     id="Field2"     runat="Server" /> <BR><BR> <asp:Label     
id="lblMessage3"     runat="Server"     Font-Bold="True"     Text="Field 3: " /> 
<asp:TextBox     id="Field3"     runat="Server" /> <BR><BR> <asp:button      
id="butOK"     runat="server"     text="OK"     Type="Submit"     
OnClick="SubmitBtn_Click"  /> <BR><BR> <asp:Label     id="lblMessage4"     
runat="Server"     Font-Bold="True" />     </Font> </Form> <p><font size="5">The 
example shows how to handle forms in ASP.NET </font></p> <p><font face="Times New 
Roman" color="#008000"><a href="http://www.stephenonline.tk";>www.stephenonline.tk</a>  
<a href="http://keralaprogrammers.home-page.org/";> 
http://keralaprogrammers.home-page.org/</a>  For all your programming needs</font></p> 
<table border="5" cellpadding="0" cellspacing="0" style="border-collapse: collapse" 
width="100%" id="AutoNumber1" bordercolorlight="#C0C0C0" bordercolordark="#FF0066" 
bgcolor="#000000">   <tr>     <td width="100%"> <font size="4" color="#FFFFFF">Dont 
forget to ask me      all your doubts and questions i am free to help you !!</font><p> 
    <font size="4" color="#FFFFFF">                                          <a 
href="http://askapro.cjb.net";>http://askapro.cjb.net</a></font></p>     <p><font 
size="4" color="#FFFFFF">                                I will be Happy to answer 
your questions</font></td>   </tr> </table> </BODY> </HTML></TEXTAREA>  
  
How to Get the client computer information to the web server
 <TEXTAREA style="BORDER-RIGHT: 3px double; BORDER-TOP: 3px double; BORDER-LEFT: 3px 
double; COLOR: #ffffff; BORDER-BOTTOM: 3px double; BACKGROUND-COLOR: #009900" 
name=BROWINFO rows=31 cols=73> <%@ Page Language=VB Debug=true %> <script 
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 & "<BR>" _         & "Mozzila: " & 
BCaps.Mozzila & "<BR>" _         & "IE 6: " & BCaps.Internet Explorer 6 & "<BR>" _     
      & "Supports BG Sounds: " & BCaps.BackgroundSounds & "<BR>" _         & "Beta 
Browser: " & BCaps.Beta & "<BR>" _         & "Browser Name: " & BCaps.Browser & "<BR>" 
_         & "Supports Cookies: " & BCaps.Cookies & "<BR>" _         & "Is a Web 
Crawler: " & BCaps.Crawler & "<BR>" _         & "Browser Major Version: " & 
BCaps.MajorVersion & "<BR>" _         & "Browser Minor Version: " & BCaps.MinorVersion 
& "<BR>" _         & "Platform: " & BCaps.Platform & "<BR>" _         & "Is Win 16: " 
& BCaps.Windows old version 18 bit & "<BR>" _         & "Is Win NT: " & BCaps.Windows 
NT & "<BR>" _          & "Is Win 32: " & BCaps.Win32 & "<BR>"  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"> <Font Face="Tahoma"> <p><font size="5">The 
example shows how to Get the client computer information  to the webserver</font></p> 
<p><font face="Times New Roman" color="#008000"><a 
href="http://www.stephenonline.tk";>www.stephenonline.tk</a>  <a 
href="http://keralaprogrammers.home-page.org/";> 
http://keralaprogrammers.home-page.org/</a>  For all your programming needs</font></p> 
<table border="5" cellpadding="0" cellspacing="0" style="border-collapse: collapse" 
width="100%" id="AutoNumber1" bordercolorlight="#C0C0C0" bordercolordark="#FF0066" 
bgcolor="#000000">   <tr>     <td width="100%"> <font size="4" color="#FFFFFF">Dont 
forget to ask me      all your doubts and questions i am free to help you !!</font><p> 
    <font size="4" color="#FFFFFF">                                          <a 
href="http://askapro.cjb.net";>http://askapro.cjb.net</a></font></p>     <p><font 
size="4" color="#FFFFFF">                                I will be Happy to answer 
your questions</font></td>   </tr> </table> <asp:Label     id="lblMessage1"     
runat="Server"     Font-Bold="True" /> </Font> </Form> </BODY> </HTML></TEXTAREA>  
How to read and write Data from and .MDB File Using ASP.NET<TEXTAREA 
style="BORDER-RIGHT: 3px double; BORDER-TOP: 3px double; BORDER-LEFT: 3px double; 
COLOR: #808080; BORDER-BOTTOM: 3px double; BACKGROUND-COLOR: #800000" name=DATABASE 
rows=31 cols=73> <%@ Page Language=VB Debug=true %> <%@ Import Namespace="System.Data" 
%> <%@ Import Namespace="System.Data.OLEDB" %> <script 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: <A 
HREF=""mailto:"; _         & DSPageData.Tables("DATABASEITEMData"). _             
Rows(0).Item("EmailAddress") & """>" _         & 
DSPageData.Tables("DATABASEITEMData"). _             Rows(0).Item("EmailAddress") & 
"</A>"     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"> <Font Face="Tahoma" Size="+1"> 
<asp:Label     id="lblDATABASEITEMID"     runat="Server" />     <BR> <asp:Label     
id="lblName"     runat="Server" />     <BR> <asp:Label     id="lblDATABASESUBFIELD"    
 runat="Server" />     <BR> <asp:Label     id="lblEmailAddress"     runat="Server" />  
   <BR> <asp:Label     id="lblPhoneNumber"     runat="Server" />     <BR> <asp:Label   
  id="lblNotes"     runat="Server" />     <BR><BR> <asp:HyperLink      id="hyp1"     
runat="server"     Text="Return to Grid"     NavigateURL="./YOURWESITE.COM" /> </Font> 
</Form> <p><font face="Times New Roman" size="6" color="#008000">show how to read and  
write from a database in ASP.NET</font></p> <p><font face="Times New Roman" size="5" 
color="#008000"> </font><font face="Times New Roman" color="#008000"><a 
href="http://www.stephenonline.tk";>www.stephenonline.tk</a>  <a 
href="http://keralaprogrammers.home-page.org/";> 
http://keralaprogrammers.home-page.org/</a>  For all your programming needs</font></p> 
<table border="5" cellpadding="0" cellspacing="0" style="border-collapse: collapse" 
width="100%" id="AutoNumber1" bordercolorlight="#C0C0C0" bordercolordark="#FF0066" 
bgcolor="#000000">   <tr>     <td width="100%"> <font size="4" color="#FFFFFF">Dont 
forget to ask me      all your doubts and questions i am free to help you !!</font><p> 
    <font size="4" color="#FFFFFF">                                          <a 
href="http://askapro.cjb.net";>http://askapro.cjb.net</a></font></p>     <p><font 
size="4" color="#FFFFFF">                                I will be Happy to answer 
your questions</font></td>   </tr> </table> </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 

-----------------------------------------------------------

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]

Reply via email to