Академический Документы
Профессиональный Документы
Культура Документы
iBlog
Submitted in particular fulfillment of the requirement for the award of the degree of
BACHELOR OF TECHNOLOGY
IN
Department of Computer Science & Engineering MEERUT INSTITUTE OF ENGINEERING & TECHNOLOGY
Approved by A.I.C.T.E Affilated to G.B. Technical University Lucknow Meerut-250005 1
CERTIFICATE
This is to certify that PULKIT TOMAR, RAKSHIT JAIN, SAURABH JOSHI AND SAHIL JAISWAL of the final year Btech.(CSE) have carried out a project work on I-BLOG under the guidance of Mr. Bhupendra Singh is a bonafide record of work done by them during 15 June 2011 to 15 July 2011.
Internal Guide
ACKNOWLEDGEMENT
We are highly grateful to the Meerut Institute of Engineering & Technology (M.I.E.T), Meerut, for providing this opportunity to carry out the present Report work. We would like to take this opportunity to thank our Internal Guide who guided us and extended possible help for the successful completion of this project. We take the opportunity to express our deep sense of gratitude to our guide Ms. Nitisha Payal for her guidance, her valuable suggestions and all possible help at every stage of this project. Her untiring support and constructive suggestions kept us motivated throughout the project.
ABSTRACT
i. Name of Project
I-BLOG.
v. Methodology
Our system is based on the waterfall model. It is called waterfall because of its structure and diagrammatic representation which looks like a cascade of waterfall.
The developers must complete each phase before the next phase begins. In this model we have used various phases like Requirement Analysis, Designing, Coding, Testing and Maintenance. This model is usually used when requirements are easily understandable and well defined early in the process.
vi.
Software Category WINDOWS XP. MICROSOFT VISUAL STUDIO 2008. INTERNET BROWSER. .NET FRAMEWORK. MS-ACCESS.
LIST OF FIGURES
S.NO 1 2 3 FIGURE NAME Registration process for user. ER-Diagram DFD(LEVEL-1) PAGE NO. 11 13 14
CONTENTS
2 3 4
6
8 8 8 9
CHAPTER 2: USERS OF THE SYSTEM 2.1 2.2 2.3 Blog Viewer User Administrator
11 11 11 12
15 16 36
BLOGGING BASICS
INTRODUCTION
A blog (a blend of the term web log) is a type of website or part of a website supposed to be updated with new content from time to time. Blogs are usually maintained by an individual with regular entries of commentary, descriptions of events, or other material such as graphics or video. Entries are commonly displayed in reverse-chronological order. Blog can also be used as a verb, meaning to maintain or add content to a blog. The term "weblog" was coined by Jorn Barger on 17 December 1997. The short form, "blog," was coined by Peter Merholz, who jokingly broke the word weblog into the phrase we blog in the sidebar of his blog Peterme.com in April or May 1999. Shortly thereafter, Evan Williams at Pyra Labs used "blog" as both a noun and verb ("to blog," meaning "to edit one's weblog or to post to one's weblog") and devised the term "blogger" in connection with Pyra Labs' Blogger product, leading to the popularization of the terms.
ORIGIN
Before blogging became popular, digital communities took many forms, including Usenet, commercial online services such as GEnie, BiX and the early CompuServe, e-mail lists andBulletin Board Systems (BBS). In the 1990s, Internet forum software, created running conversations with "threads." Threads are topical connections between messages on a virtual "corkboard." The modern blog evolved from the online diary, where people would keep a running account of their personal lives. Most such writers called themselves diarists, journalists, or journalers.Justin Hall, who began personal blogging in 1994 while a student at Swarthmore College, is generally recognized as one of the earliest bloggers, as is Jerry Pournelle. Dave Winer's Scripting News is also credited with being one of the oldest and longest running weblogs. Another early blog was Wearable Wireless Webcam, an online shared diary of a person's personal life combining text, video, and pictures transmitted live from a wearable computer and EyeTap device to a web site in 1994. This practice of semi-automated blogging with live video together with text was referred to as sousveillance, and such journals were also used as evidence in legal matters. Early blogs were simply manually updated components of common Web sites. However, the evolution of tools to facilitate the production and maintenance of Web articles posted in reverse
8
chronological order made the publishing process feasible to a much larger, less technical, population. Ultimately, this resulted in the distinct class of online publishing that produces blogs we recognize today. For instance, the use of some sort of browser-based software is now a typical aspect of "blogging". Blogs can be hosted by dedicated blog hosting services, or they can be run using blog software, or on regular web hosting services. Some early bloggers, such as The Misanthropic Bitch, who began in 1997, actually referred to their online presence as a zine, before the term blog entered common usage.
TYPES
There are many different types of blogs, differing not only in the type of content, but also in the way that content is delivered or written.
Personal blogs
The personal blog, an ongoing diary or commentary by an individual, is the traditional, most common blog. Personal bloggers usually take pride in their blog posts, even if their blog is never read. Blogs often become more than a way to just communicate; they become a way to reflect on life, or works of art. Blogging can have a sentimental quality. Few personal blogs rise to fame and the mainstream but some personal blogs quickly garner an extensive following. One type of personal blog, referred to as a microblog, is extremely detailed and seeks to capture a moment in time. Some sites, such as Twitter, allow bloggers to share thoughts and feelings instantaneously with friends and family, and are much faster than emailing or writing.
By genre
Some blogs focus on a particular subject, such as political blogs, travel blogs (also known as travelogs), house blogs, fashion blogs, project blogs, education blogs, niche blogs, classical
9
music blogs, quizzing blogs and legal blogs (often referred to as a blawgs) or dreamlogs. Two common types of genre blogs are art blogs and music blogs. A blog featuring discussions especially about home and family is not uncommonly called a mom blog and one made popular is by Erica Diamond who created Womenonthefence.com which is syndicated to over two million readers monthly. While not a legitimate type of blog, one used for the sole purpose of spamming is known as a Splog.
By media type
A blog comprising videos is called a vlog, one comprising links is called a linklog, a site containing a portfolio of sketches is called a sketchblog or one comprising photos is called aphotoblog. Blogs with shorter posts and mixed media types are called tumblelogs. Blogs that are written on typewriters and then scanned are called typecast or typecast blogs; see typecasting (blogging). A rare type of blog hosted on the Gopher Protocol is known as a Phlog.
By device
Blogs can also be defined by which type of device is used to compose it. A blog written by a mobile device like a mobile phone or PDA could be called a moblog. One early blog was Wearable Wireless Webcam, an online shared diary of a person's personal life combining text, video, and pictures transmitted live from a wearable computer and EyeTap device to a web site. This practice of semi-automated blogging with live video together with text was referred to as sousveillance. Such journals have been used as evidence in legal matters.
10
2.
User
Users Age Must Be At least 10 years or more to Register for this Website . Every user can login and access his information page.
11
3. Administrator.
Administrator can View/create Notices- Notices are issued to all bloggers regarding rules and regulations on how to use the site(blog) View/Ban blogs- Administrator can view the blogs of all users. If he found the content of any blog mischievous then the administrator may delete that blog or ban it temporarily. View/Ban users -Administrator can view the blogs and comments of all users. If he found the activities of any blogger mischievous then the administrator may ban that user permanently or temporarily.
Administrator cant Change his own profile or the profile of any user. Edit the contents of any blog or any comment.
12
ER-DIAGRAM
13
DFD(LEVEL-1)
14
15
CODING
HOMEPAGE:
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master" Inherits="Home" %> <asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div> <table cellpadding="0" cellspacing="0" border="0" width="100%" > <tr><td valign="top" align="center" height="60px"> <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/Blog.mdb" SelectCommand="SELECT [blogsub], [username], [blogtext], [ID], [cday], [cmon], [cyear] FROM [blogtable] WHERE ([username] = ?)" DeleteCommand="DELETE FROM [blogtable] WHERE [ID] = ?" CodeFile="Home.aspx.cs"
InsertCommand="INSERT INTO [blogtable] ([blogsub], [username], [blogtext], [ID], [cday], [cmon], [cyear]) VALUES (?, ?, ?, ?, ?, ?, ?)" OldValuesParameterFormatString="original_{0}"
UpdateCommand="UPDATE [blogtable] SET [blogsub] = ?, [username] = ?, [blogtext] = ?, [cday] = ?, [cmon] = ?, [cyear] = ? WHERE [ID] = ?"> <SelectParameters> <asp:SessionParameter Name="username" SessionField="reguser" Type="String" /> </SelectParameters> <DeleteParameters > <asp:Parameter Name="original_ID" Type="Int32" /> </DeleteParameters> <UpdateParameters> <asp:Parameter Name="blogsub" Type="String" /> <asp:Parameter Name="username" Type="String" /> <asp:Parameter Name="blogtext" Type="String" /> <asp:Parameter Name="cday" Type="String" /> <asp:Parameter Name="cmon" Type="String" /> <asp:Parameter Name="cyear" Type="String" /> <asp:Parameter Name="original_ID" Type="Int32" /> </UpdateParameters> <InsertParameters> <asp:Parameter Name="blogsub" Type="String" /> <asp:Parameter Name="username" Type="String" /> <asp:Parameter Name="blogtext" Type="String" /> <asp:Parameter Name="ID" Type="Int32" /> <asp:Parameter Name="cday" Type="String" /> <asp:Parameter Name="cmon" Type="String" /> <asp:Parameter Name="cyear" Type="String" /> </InsertParameters> </asp:AccessDataSource> <asp:Image ID="Image1" ImageUrl="~/Images/home.bmp" runat="server" />
16
</td></tr> <tr> <td valign="top" align="center" height="20px"> <asp:Label ID="Label1" runat="server" Text="Welcome" Font-Bold="True" ForeColor="#333399"></asp:Label> </td> </tr> <tr><td> </td></tr> <tr><td valign="top" align="center"> <asp:GridView ID="GridView2" runat="server" AllowPaging="True" DataSourceID="AccessDataSource1" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="ID" ForeColor="#333333" GridLines="None" onrowcancelingedit="GridView2_RowCancelingEdit" onrowediting="GridView2_RowEditing" Width="480px" style="margin-left: 0px; margin-right: 7px" > <RowStyle BackColor="#FFFBD6" ForeColor="#333333" /> <Columns> <asp:BoundField DataField="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID" > <ItemStyle ForeColor="#FFFFCC" /> </asp:BoundField> <asp:BoundField DataField="blogsub" SortExpression="blogsub" HeaderText="Blogs Created By You" > <ItemStyle Font-Bold="True" /> </asp:BoundField> <asp:TemplateField HeaderText="Created On"> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%#Bind("cday")%>' ></asp:Label>/ <asp:Label ID="Label3" runat="server" Text='<%#Bind("cmon")%>' ></asp:Label>/ <asp:Label ID="Label4" runat="server" Text='<%#Bind("cyear")%>' ></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" /> <asp:ButtonField CommandName="Cancel" Text="View" /> </Columns> <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" /> <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" /> <HeaderStyle BackColor="#990000" BorderColor="#80FF00" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" /> </asp:GridView> </td></tr> <tr><td>   </td></tr> </table> </div> </asp:Content>
17
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="register.aspx.cs" MasterPageFile="~/MasterPage1.master" Inherits="register" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %> <asp:Content ContentPlaceHolderID="ContentPlaceHolder2" runat="server"> <div> <table border="0" cellpadding="0" cellspacing="0" width="100%" > <tr><td align="center" colspan="1"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/register.bmp" Height="100px" Width="500px"/> </td></tr> <tr><td height="400px"> <table border="0" cellpadding="5" cellspacing="3" width="100%">
<tr> <td class="txt" align="right"> First Name </td> <td> <asp:TextBox ID="TextBox1" runat="server" Width="130px" CssClass="regtext" ></asp:TextBox> <cc1:TextBoxWatermarkExtender ID="TextBox1_TextBoxWatermarkExtender" WatermarkText="First Name" WatermarkCssClass="water" runat="server" Enabled="True" TargetControlID="TextBox1"> </cc1:TextBoxWatermarkExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ForeColor="red" ControlToValidate="TextBox1" ErrorMessage="*"></asp:RequiredFieldValidator > <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="*" ForeColor="Red" ValidationExpression="^[a-zA-Z]{1,20}$" ControlToValidate="TextBox1"></asp:RegularExpressionValidator> </td></tr> <tr> <td class="txt" align="right"> Last Name </td> <td> <asp:TextBox ID="TextBox2" runat="server" Width="130px" CssClass="regtext" ></asp:TextBox> <cc1:TextBoxWatermarkExtender ID="TextBox2_TextBoxWatermarkExtender" WatermarkText="Last Name" WatermarkCssClass="water" runat="server" Enabled="True" TargetControlID="TextBox2"> </cc1:TextBoxWatermarkExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ForeColor="red" ControlToValidate="TextBox2" ErrorMessage="*"></asp:RequiredFieldValidator > <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="*" ForeColor="Red" ValidationExpression="^[a-zA-Z]{1,20}$" ControlToValidate="TextBox2"></asp:RegularExpressionValidator>
18
</td></tr> <tr><td align="right" class="txt"> Sex </td> <td> <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"> <asp:ListItem>Male</asp:ListItem> <asp:ListItem>Female</asp:ListItem> </asp:RadioButtonList> <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="RadioButtonList1" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="txt" align="right"> Desired UserName </td> <td> <asp:UpdatePanel ID="UpdatePanel2" runat="server"><ContentTemplate > <asp:TextBox ID="TextBox3" runat="server" ontextchanged="TextBox3_TextChanged" Width="130px" CssClass="regtext" AutoPostBack="True" ></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ForeColor="red" ControlToValidate="TextBox2" ErrorMessage="*"></asp:RequiredFieldValidator > <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="Red" Text="UserName Already Exists" Visible="False"></asp:Label> </ContentTemplate> </asp:UpdatePanel> </td></tr> <tr><td class="txt" align="right"> Age </td> <td> <asp:TextBox ID="TextBox11" MaxLength="2" runat="server" Width="46px" CssClass="regtext" ontextchanged="TextBox11_TextChanged" Height="22px"></asp:TextBox>
19
</cc1:FilteredTextBoxExtender> <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TextBox11" MaximumValue="99" MinimumValue="10" ErrorMessage="Out Of Range"></asp:RangeValidator> <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ForeColor="red" ControlToValidate="TextBox11" ErrorMessage="*"></asp:RequiredFieldValidator > </td> </tr> <tr> <td class="txt" align="right"> Email ID </td> <td> <asp:UpdatePanel ID="UpdatePanel7" runat="server"> <ContentTemplate> <asp:TextBox ID="TextBox10" runat="server" AutoPostBack="True" Width="130px" CssClass="regtext" ontextchanged="TextBox10_TextChanged"></asp:TextBox> <cc1:TextBoxWatermarkExtender ID="TextBox10_TextBoxWatermarkExtender" WatermarkCssClass="water" WatermarkText="Your Email ID" runat="server" Enabled="True" TargetControlID="TextBox10"> </cc1:TextBoxWatermarkExtender> <asp:Label ID="Label2" runat="server" Visible="False"></asp:Label> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ForeColor="red" ControlToValidate="TextBox10" ErrorMessage="*"></asp:RequiredFieldValidator > <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" Font-Size="Small" FontBold="true" ControlToValidate="TextBox10" ValidationExpression="^([0-9a-zA-Z]([-\.\w]*[0-9a-zA-Z])*@([0-9a-zAZ][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$" ErrorMessage="Email Id is not Valid"></asp:RegularExpressionValidator> </ContentTemplate> </asp:UpdatePanel> </td></tr> <tr> <td align="right" class="txt"> Country </td> <td> <asp:UpdatePanel ID="UpdatePanel4" runat="server"> <ContentTemplate> <asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList3_SelectedIndexChanged"> <asp:ListItem>Select</asp:ListItem> </asp:DropDownList> <asp:TextBox ID="TextBox4" runat="server" style="margin-left: 25px" Width="130px" CssClass="regtext" Visible="False"></asp:TextBox> <cc1:TextBoxWatermarkExtender ID="TextBox4_TextBoxWatermarkExtender" WatermarkCssClass="water" WatermarkText="Country" runat="server" Enabled="True" TargetControlID="TextBox4"> </cc1:TextBoxWatermarkExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ForeColor="red" ControlToValidate="TextBox4" ErrorMessage="*"></asp:RequiredFieldValidator > <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="*" ForeColor="Red" ValidationExpression="^[a-zA-Z]{1,20}$" ControlToValidate="TextBox4"></asp:RegularExpressionValidator>
20
</ContentTemplate> </asp:UpdatePanel>
</td></tr> <tr> <td class="txt" align="right"> State </td> <td> <asp:UpdatePanel ID="UpdatePanel5" runat="server"> <ContentTemplate> <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList2_SelectedIndexChanged"> <asp:ListItem>Select</asp:ListItem> </asp:DropDownList> <asp:TextBox ID="TextBox5" runat="server" style="margin-left: 28px" Width="130px" CssClass="regtext" Visible="False"></asp:TextBox> <cc1:TextBoxWatermarkExtender ID="TextBox5_TextBoxWatermarkExtender" WatermarkCssClass="water" WatermarkText="State" runat="server" Enabled="True" TargetControlID="TextBox5"> </cc1:TextBoxWatermarkExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ForeColor="red" ControlToValidate="TextBox5" ErrorMessage="*"></asp:RequiredFieldValidator > <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="*" ForeColor="Red" ValidationExpression="^[a-zA-Z]{1,20}$" ControlToValidate="TextBox5"></asp:RegularExpressionValidator> </ContentTemplate> </asp:UpdatePanel>
</td></tr> <tr> <td class="txt" align="right"> City </td> <td> <asp:UpdatePanel ID="UpdatePanel6" runat="server"> <ContentTemplate> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"> <asp:ListItem>Select</asp:ListItem> </asp:DropDownList> <asp:TextBox ID="TextBox6" runat="server" style="margin-left: 28px" Width="130px" CssClass="regtext" Visible="False"></asp:TextBox> <cc1:TextBoxWatermarkExtender ID="TextBox6_TextBoxWatermarkExtender" WatermarkCssClass="water" WatermarkText="City" runat="server" Enabled="True" TargetControlID="TextBox6"> </cc1:TextBoxWatermarkExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ForeColor="red" ControlToValidate="TextBox6" ErrorMessage="*"></asp:RequiredFieldValidator > <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ErrorMessage="*" ForeColor="Red" ValidationExpression="^[a-zA-Z]{1,20}$" ControlToValidate="TextBox6"></asp:RegularExpressionValidator> </ContentTemplate> </asp:UpdatePanel>
</td></tr>
21
<tr> <td class="txt" align="right"> Street Address </td> <td> <asp:TextBox ID="TextBox7" runat="server" TextMode="MultiLine" CssClass="regtext" ></asp:TextBox> <cc1:TextBoxWatermarkExtender ID="TextBox7_TextBoxWatermarkExtender" WatermarkCssClass="water" WatermarkText="Local Address" runat="server" Enabled="True" TargetControlID="TextBox7"> </cc1:TextBoxWatermarkExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TextBox7" ErrorMessage="*"></asp:RequiredFieldValidator> </td></tr> <tr> <td class="txt" align="right"> Password </td> <td> <asp:TextBox ID="TextBox8" runat="server" TextMode="Password" Width="130px" CssClass="regtext1" ></asp:TextBox> <cc1:PasswordStrength ID="TextBox8_PasswordStrength" runat="server" PreferredPasswordLength="6" StrengthIndicatorType="Text" Enabled="True" TargetControlID="TextBox8"> </cc1:PasswordStrength> <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ForeColor="red" ControlToValidate="TextBox8" ErrorMessage="*"></asp:RequiredFieldValidator > </td></tr> <tr> <td class="txt" align="right"> Confirm Password </td> <td class="style1"> <asp:TextBox ID="TextBox9" runat="server" TextMode="Password" Width="130px" CssClass="regtext1" ></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ForeColor="red" ControlToValidate="TextBox9" ErrorMessage="*"></asp:RequiredFieldValidator > <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Passwords don't Match" ControlToValidate="TextBox9" ControlToCompare="TextBox8" ></asp:CompareValidator> </td></tr> <tr><td colspan="2" align="center" class="txt"> <asp:UpdatePanel ID="UpdatePanel3" runat="server"> <ContentTemplate > <asp:CheckBox ID="CheckBox1" runat="server" oncheckedchanged="CheckBox1_CheckedChanged" AutoPostBack="True" Enabled="False" /> I Agree to the Terms And Conditions </ContentTemplate> </asp:UpdatePanel> </td></tr> <tr><td colspan="2" align="center"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate > <asp:Button ID="Button1" runat="server" Text="Submit" CssClass="button" onclick="Button1_Click" Visible="False" /> </ContentTemplate> </asp:UpdatePanel>
22
</td></tr> </table> </td></tr> </table> </div> </asp:Content> <asp:Content ID="Content1" runat="server" contentplaceholderid="head">
</asp:Content>
VIEW BLOG
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="viewblogs.aspx.cs" Inherits="viewblogs" Theme="Greenery" MasterPageFile="~/MasterPage2.master" StylesheetTheme="Greenery" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div> <table cellpadding="4" cellspacing="4" width="100%" class="table" > <tr> <td colspan="2" align="right" class="style2"> <div align="left"> <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/Blog.mdb" SelectCommand="SELECT [user], [comment], [ID], [blogid], [coday], [comon], [coyear] FROM [commenttab] WHERE ([blogid] = ?)" DeleteCommand="DELETE FROM [commenttab] WHERE [ID] = ?" InsertCommand="INSERT INTO [commenttab] ([user], [comment], [ID], [blogid], [coday], [comon], [coyear]) VALUES (?, ?, ?, ?, ?, ?, ?)" UpdateCommand="UPDATE [commenttab] SET [user] = ?, [comment] = ?, [blogid] = ?, [coday] = ?, [comon] = ?, [coyear] = ? WHERE [ID] = ?"> <SelectParameters> <asp:QueryStringParameter Name="blogid" QueryStringField="blogid" Type="String" />
23
</SelectParameters> <DeleteParameters> <asp:Parameter Name="ID" Type="Int32" /> </DeleteParameters> <UpdateParameters> <asp:Parameter Name="user" Type="String" /> <asp:Parameter Name="comment" Type="String" /> <asp:Parameter Name="blogid" Type="String" /> <asp:Parameter Name="coday" Type="String" /> <asp:Parameter Name="comon" Type="String" /> <asp:Parameter Name="coyear" Type="String" /> <asp:Parameter Name="ID" Type="Int32" /> </UpdateParameters> <InsertParameters> <asp:Parameter Name="user" Type="String" /> <asp:Parameter Name="comment" Type="String" /> <asp:Parameter Name="ID" Type="Int32" /> <asp:Parameter Name="blogid" Type="String" /> <asp:Parameter Name="coday" Type="String" /> <asp:Parameter Name="comon" Type="String" /> <asp:Parameter Name="coyear" Type="String" /> </InsertParameters> </asp:AccessDataSource> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:AccessDataSource ID="AccessDataSource2" runat="server" DataFile="~/Blog.mdb" SelectCommand="SELECT [ID], [blogsub], [blogtext], [username], [cday], [cmon], [cyear] FROM [blogtable] WHERE ([ID] = ?)"> <SelectParameters> <asp:QueryStringParameter Name="ID" QueryStringField="blogid" Type="Int32" /> </SelectParameters> </asp:AccessDataSource> </div>
</td> </tr>
<tr><td colspan="2" align="center" class="vbhead" height="40px"> <asp:Label ID="Label1" runat="server" Text="blogsub" CssClass="vbhead"></asp:Label> </td></tr> <tr> <td class="vbpage" align="center" height="400px" width="80%"> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"> <tr><td colspan="3" class="vbpage" height="20px"> </td></tr> <tr> <td class="vbpage" width="50px"> </td> <td valign="top" align="left"> <asp:Literal ID="Literal1" runat="server"></asp:Literal> </td> <td class="vbpage" width="50px"> </td></tr>
24
</td> <td width="20%" valign="top" rowspan="6"> <table cellpadding="2" cellspacing="0" width="100%" class="table" > <tr><td class="txt"> Created By:<asp:LinkButton ID="LinkButton1" runat="server" Text="Link" onclick="LinkButton1_Click" ></asp:LinkButton> </td></tr> <tr><td class="txt"> Created On: </td></tr> <tr><td> <asp:DataList ID="DataList1" runat="server" DataSourceID="AccessDataSource2"> <ItemStyle/> <ItemTemplate> <asp:Label ID="Label3" runat="server" Text='<%#Bind("cday") %>'></asp:Label>/ <asp:Label ID="Label4" runat="server" Text='<%#Bind("cmon") %>'></asp:Label>/ <asp:Label ID="Label5" runat="server" Text='<%#Bind("cyear") %>'></asp:Label> </ItemTemplate> </asp:DataList> </td></tr> <tr><td> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" width="200" height="200" > <param name="movie" value="Ads/Smart_Play_300x250.swf"/> <param name="quality" value="high"/> <param name="play" value="true"/> <param name="LOOP" value="true"/> <embed src="Ads/Smart_Play_300x250.swf" width="200" height="200" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"type="application/x-shockwave-flash"> </embed> </object> </td></tr> <tr><td align="center"> <img src="Ads/070319_BNET_gen_125x125.gif" /> </td></tr> </table> </td> </tr>
<tr><td align="center" height="25px" > <asp:Button ID="Button2" runat="server" Text="Report this Blog" CssClass="button" onclick="Button2_Click" /> <cc1:ConfirmButtonExtender ID="Button2_ConfirmButtonExtender" runat="server" ConfirmText="Are You Sure you Want to Report this blog ?" Enabled="True" TargetControlID="Button2"> </cc1:ConfirmButtonExtender>
25
<asp:Label ID="Label9" runat="server" Text="This Blog has been Reported !" CssClass="labstyle" Visible="False"></asp:Label> </td></tr> <tr><td align="center" class="txtcom">  Comments </td></tr> <tr> <td >
<asp:DataList ID="DataList2" runat="server" DataSourceID="AccessDataSource1" Width="80%" align="center" CellPadding="4" OnDeleteCommand="Delete_Command" DataKeyField="ID" > <ItemTemplate> <table border="1" cellpadding="0" cellspacing="0" width="100%" > <tr> <td align="center" class="txtcomment" > <asp:Label ID="Label8" runat="server" Text='<%#Bind("ID") %>' ForeColor="#000099" Font-Bold="true" Visible="false" ></asp:Label> <asp:Label ID="Label6" runat="server" Text='<%#Bind("user") %>' ForeColor="#000099" Font-Bold="true" ></asp:Label>   on   <asp:Label ID="Label3" runat="server" Text='<%#Bind("coday") %>'></asp:Label>/ <asp:Label ID="Label4" runat="server" Text='<%#Bind("comon") %>'></asp:Label>/ <asp:Label ID="Label5" runat="server" Text='<%#Bind("coyear") %>'></asp:Label>   <asp:LinkButton ID="LinkButton2" runat="server" Text="Delete" CommandName="Delete" ></asp:LinkButton> </td> </tr> <tr > <td align="center" valign="top" height="60px" style="background-color:#F0F8FF; color:Black;"> <asp:Label ID="Label7" runat="server" Text='<%#Bind("comment") %>'></asp:Label> </td> </tr> </table> </ItemTemplate> </asp:DataList> </td> </tr> <tr> <td align="center"> <asp:TextBox ID="TextBox1" runat="server" Height="37px" style="margin-left: 0px" TextMode="MultiLine" Width="351px"></asp:TextBox>
</td> </tr> <tr> <td align="center"> <asp:Button ID="Button1" runat="server" Text="Add Comment" CssClass="button" onclick="Button1_Click" /></td> </tr> <tr><td colspan="2">
26
ADMIN HOMEPAGE
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="viewblogs.aspx.cs" Inherits="viewblogs" Theme="Greenery" MasterPageFile="~/MasterPage2.master" StylesheetTheme="Greenery" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div> <table cellpadding="4" cellspacing="4" width="100%" class="table" > <tr> <td colspan="2" align="right" class="style2"> <div align="left"> <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/Blog.mdb" SelectCommand="SELECT [user], [comment], [ID], [blogid], [coday], [comon], [coyear] FROM [commenttab] WHERE ([blogid] = ?)" DeleteCommand="DELETE FROM [commenttab] WHERE [ID] = ?" InsertCommand="INSERT INTO [commenttab] ([user], [comment], [ID], [blogid], [coday], [comon], [coyear]) VALUES (?, ?, ?, ?, ?, ?, ?)" UpdateCommand="UPDATE [commenttab] SET [user] = ?, [comment] = ?, [blogid] = ?, [coday] = ?, [comon] = ?, [coyear] = ? WHERE [ID] = ?"> <SelectParameters> <asp:QueryStringParameter Name="blogid" QueryStringField="blogid" Type="String" /> </SelectParameters> <DeleteParameters> <asp:Parameter Name="ID" Type="Int32" /> </DeleteParameters> <UpdateParameters> <asp:Parameter Name="user" Type="String" /> <asp:Parameter Name="comment" Type="String" /> <asp:Parameter Name="blogid" Type="String" /> <asp:Parameter Name="coday" Type="String" /> <asp:Parameter Name="comon" Type="String" /> <asp:Parameter Name="coyear" Type="String" /> <asp:Parameter Name="ID" Type="Int32" /> </UpdateParameters> <InsertParameters> <asp:Parameter Name="user" Type="String" />
27
<asp:Parameter Name="comment" Type="String" /> <asp:Parameter Name="ID" Type="Int32" /> <asp:Parameter Name="blogid" Type="String" /> <asp:Parameter Name="coday" Type="String" /> <asp:Parameter Name="comon" Type="String" /> <asp:Parameter Name="coyear" Type="String" /> </InsertParameters> </asp:AccessDataSource> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:AccessDataSource ID="AccessDataSource2" runat="server" DataFile="~/Blog.mdb" SelectCommand="SELECT [ID], [blogsub], [blogtext], [username], [cday], [cmon], [cyear] FROM [blogtable] WHERE ([ID] = ?)"> <SelectParameters> <asp:QueryStringParameter Name="ID" QueryStringField="blogid" Type="Int32" /> </SelectParameters> </asp:AccessDataSource> </div>
</td> </tr>
<tr><td colspan="2" align="center" class="vbhead" height="40px"> <asp:Label ID="Label1" runat="server" Text="blogsub" CssClass="vbhead"></asp:Label> </td></tr> <tr> <td class="vbpage" align="center" height="400px" width="80%"> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"> <tr><td colspan="3" class="vbpage" height="20px"> </td></tr> <tr> <td class="vbpage" width="50px"> </td> <td valign="top" align="left"> <asp:Literal ID="Literal1" runat="server"></asp:Literal> </td> <td class="vbpage" width="50px"> </td></tr> <tr><td colspan="3" class="vbpage" height="20px"> </td></tr> </table>
</td> <td width="20%" valign="top" rowspan="6"> <table cellpadding="2" cellspacing="0" width="100%" class="table" > <tr><td class="txt"> Created By:<asp:LinkButton ID="LinkButton1" runat="server" Text="Link" onclick="LinkButton1_Click" ></asp:LinkButton> </td></tr> <tr><td class="txt"> Created On: </td></tr> <tr><td>
28
<asp:DataList ID="DataList1" runat="server" DataSourceID="AccessDataSource2"> <ItemStyle/> <ItemTemplate> <asp:Label ID="Label3" runat="server" Text='<%#Bind("cday") %>'></asp:Label>/ <asp:Label ID="Label4" runat="server" Text='<%#Bind("cmon") %>'></asp:Label>/ <asp:Label ID="Label5" runat="server" Text='<%#Bind("cyear") %>'></asp:Label> </ItemTemplate> </asp:DataList> </td></tr> <tr><td> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" width="200" height="200" > <param name="movie" value="Ads/Smart_Play_300x250.swf"/> <param name="quality" value="high"/> <param name="play" value="true"/> <param name="LOOP" value="true"/> <embed src="Ads/Smart_Play_300x250.swf" width="200" height="200" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"type="application/x-shockwave-flash"> </embed> </object> </td></tr> <tr><td align="center"> <img src="Ads/070319_BNET_gen_125x125.gif" /> </td></tr> </table> </td> </tr>
<tr><td align="center" height="25px" > <asp:Button ID="Button2" runat="server" Text="Report this Blog" CssClass="button" onclick="Button2_Click" /> <cc1:ConfirmButtonExtender ID="Button2_ConfirmButtonExtender" runat="server" ConfirmText="Are You Sure you Want to Report this blog ?" Enabled="True" TargetControlID="Button2"> </cc1:ConfirmButtonExtender> <asp:Label ID="Label9" runat="server" Text="This Blog has been Reported !" CssClass="labstyle" Visible="False"></asp:Label> </td></tr> <tr><td align="center" class="txtcom">  Comments </td></tr> <tr> <td >
<asp:DataList ID="DataList2" runat="server" DataSourceID="AccessDataSource1" Width="80%" align="center" CellPadding="4" OnDeleteCommand="Delete_Command" DataKeyField="ID" > <ItemTemplate> <table border="1" cellpadding="0" cellspacing="0" width="100%" > <tr>
29
<td align="center" class="txtcomment" > <asp:Label ID="Label8" runat="server" Text='<%#Bind("ID") %>' ForeColor="#000099" Font-Bold="true" Visible="false" ></asp:Label> <asp:Label ID="Label6" runat="server" Text='<%#Bind("user") %>' ForeColor="#000099" Font-Bold="true" ></asp:Label>   on   <asp:Label ID="Label3" runat="server" Text='<%#Bind("coday") %>'></asp:Label>/ <asp:Label ID="Label4" runat="server" Text='<%#Bind("comon") %>'></asp:Label>/ <asp:Label ID="Label5" runat="server" Text='<%#Bind("coyear") %>'></asp:Label>   <asp:LinkButton ID="LinkButton2" runat="server" Text="Delete" CommandName="Delete" ></asp:LinkButton> </td> </tr> <tr > <td align="center" valign="top" height="60px" style="background-color:#F0F8FF; color:Black;"> <asp:Label ID="Label7" runat="server" Text='<%#Bind("comment") %>'></asp:Label> </td> </tr> </table> </ItemTemplate> </asp:DataList> </td> </tr> <tr> <td align="center"> <asp:TextBox ID="TextBox1" runat="server" Height="37px" style="margin-left: 0px" TextMode="MultiLine" Width="351px"></asp:TextBox>
</td> </tr> <tr> <td align="center"> <asp:Button ID="Button1" runat="server" Text="Add Comment" CssClass="button" onclick="Button1_Click" /></td> </tr> <tr><td colspan="2">   </td></tr> </table> </div> </asp:Content>
30
CREATE BLOG
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="createblog.aspx.cs" MasterPageFile="~/MasterPage.master" Inherits="createblog" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc2" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %> <asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div> <table border="0" cellpadding="2" cellspacing="4" width="100%" > <tr> <td colspan="2" align="center"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:Image ID="Image1" ImageUrl="~/Images/createblog.bmp" runat="server" /> </td>
</tr> <tr> <td class="txt" align="right"> Blog Subject: </td> <td align="left"> <asp:TextBox ID="TextBox1" runat="server" Width="472px" Font-Bold="True"></asp:TextBox> </td> </tr> <tr> <td class="txt" align="right" > Blog Text: </td> <td align="left">
</td> </tr> <tr> <td colspan="2" align="center"> <asp:Button ID="Button1" runat="server" CssClass="button" Text="Submit" onclick="Button1_Click" /> <cc1:ConfirmButtonExtender ID="Button1_ConfirmButtonExtender" runat="server" ConfirmText="Save ?" Enabled="True" TargetControlID="Button1">
31
</cc1:ConfirmButtonExtender>
</td> </tr> <tr> <td colspan="2" align="center"> <asp:Label ID="Label1" runat="server" Visible="false" ForeColor="Red" Font-Bold="true" Text="Label"></asp:Label> </td></tr> </table> </div> </asp:Content>
EDIT BLOG
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="editblog.aspx.cs" MasterPageFile="~/MasterPage.master" Inherits="editblog" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc2" %> <asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div> <table border="0" cellpadding="2" cellspacing="4" width="100%" > <tr> <td colspan="2" align="center"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:Image ID="Image1" ImageUrl="~/Images/editblog.bmp" runat="server" /> </td>
</tr> <tr> <td class="txt" align="right"> Blog Subject: </td> <td align="left"> <asp:TextBox ID="TextBox1" runat="server" Width="472px" Font-Bold="True"></asp:TextBox> </td>
32
</tr> <tr> <td class="txt" align="right" > Blog Text: </td> <td align="left"> <cc1:Editor ID="Editor1" runat="server" Height="300px" Width="474px" /> </td> </tr> <tr> <td colspan="2" align="center"> <asp:Button ID="Button1" runat="server" CssClass="button" Text="Submit" onclick="Button1_Click" /> <cc2:ConfirmButtonExtender ID="Button1_ConfirmButtonExtender" runat="server" ConfirmText="Update ?" Enabled="True" TargetControlID="Button1"> </cc2:ConfirmButtonExtender> </td> </tr> <tr> <td colspan="2" align="center"> <asp:Label ID="Label1" runat="server" Visible="false" ForeColor="Red" Font-Bold="true" Text="Label"></asp:Label> </td> </tr> </table> </div> </asp:Content>
EDIT PROFILE
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="editprofile.aspx.cs" MasterPageFile="~/MasterPage.master" Inherits="editprofile" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %> <asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div> <table border="0" cellpadding="0" cellspacing="0" width="100%" > <tr><td align="center" colspan="1"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/editprofile.bmp" /> </td></tr> <tr><td height="400px"> <table border="0" cellpadding="5" cellspacing="3" width="100%">
33
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ForeColor="red" ControlToValidate="TextBox1" ErrorMessage="*"></asp:RequiredFieldValidator > <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="*" ForeColor="Red" ValidationExpression="^[a-zA-Z]{1,20}$" ControlToValidate="TextBox1"></asp:RegularExpressionValidator> </td></tr> <tr> <td class="txt" align="right"> Last Name </td> <td> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="*" ForeColor="Red" ValidationExpression="^[a-zA-Z]{1,20}$" ControlToValidate="TextBox2"></asp:RegularExpressionValidator> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ForeColor="red" ControlToValidate="TextBox2" ErrorMessage="*"></asp:RequiredFieldValidator > </td></tr> <tr><td align="right" class="txt"> Sex </td> <td> <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"> <asp:ListItem>Male</asp:ListItem> <asp:ListItem>Female</asp:ListItem> </asp:RadioButtonList> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="RadioButtonlist1" ></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="txt" align="right"> About Me </td> <td class="style1"> <asp:TextBox ID="TextBox3" runat="server" Height="136px" style="margin-bottom: 26px" TextMode="MultiLine" Width="281px" ></asp:TextBox>
</td></tr> <tr><td class="txt" align="right"> Age </td> <td> <asp:TextBox ID="TextBox11" MaxLength="2" runat="server" Width="46px" ></asp:TextBox> <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Out Of Range" ControlToValidate="TextBox11" MaximumValue="99" MinimumValue="10" ></asp:RangeValidator> <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ErrorMessage="*" ControlToValidate="TextBox11" ValidationExpression="^[0-9]{1,2}$" ></asp:RegularExpressionValidator> <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ForeColor="red" ControlToValidate="TextBox11" ErrorMessage="*"></asp:RequiredFieldValidator >
34
<asp:TextBox ID="TextBox10" runat="server" ></asp:TextBox> </td></tr> <tr> <td align="right" class="txt"> Country </td> <td> <asp:UpdatePanel ID="UpdatePanel4" runat="server"> <ContentTemplate> <asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList3_SelectedIndexChanged"> <asp:ListItem>Select</asp:ListItem> </asp:DropDownList> <asp:TextBox ID="TextBox4" runat="server" style="margin-left: 25px" Visible="False" Height="22px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ForeColor="red" ControlToValidate="TextBox4" ErrorMessage="*"></asp:RequiredFieldValidator > <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="*" ForeColor="Red" ValidationExpression="^[a-zA-Z]{1,20}$" ControlToValidate="TextBox4"></asp:RegularExpressionValidator> </ContentTemplate> </asp:UpdatePanel>
</td></tr> <tr> <td class="txt" align="right"> State </td> <td> <asp:UpdatePanel ID="UpdatePanel5" runat="server"> <ContentTemplate> <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList2_SelectedIndexChanged"> <asp:ListItem>Select</asp:ListItem> </asp:DropDownList> <asp:TextBox ID="TextBox5" runat="server" style="margin-left: 28px" Visible="False"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ForeColor="red" ControlToValidate="TextBox5" ErrorMessage="*"></asp:RequiredFieldValidator > <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="*" ForeColor="Red" ValidationExpression="^[a-zA-Z]{1,20}$" ControlToValidate="TextBox5"></asp:RegularExpressionValidator> </ContentTemplate> </asp:UpdatePanel>
35
</td></tr> <tr> <td class="txt" align="right"> City </td> <td> <asp:UpdatePanel ID="UpdatePanel6" runat="server"> <ContentTemplate> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"> <asp:ListItem>Select</asp:ListItem> </asp:DropDownList> <asp:TextBox ID="TextBox6" runat="server" style="margin-left: 28px" Visible="False"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ForeColor="red" ControlToValidate="TextBox6" ErrorMessage="*"></asp:RequiredFieldValidator > <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ErrorMessage="*" ForeColor="Red" ValidationExpression="^[a-zA-Z]{1,20}$" ControlToValidate="TextBox6"></asp:RegularExpressionValidator> </ContentTemplate> </asp:UpdatePanel>
</td></tr> <tr> <td class="txt" align="right"> Street Address </td> <td> <asp:TextBox ID="TextBox7" runat="server" TextMode="MultiLine" Height="43px" Width="206px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ForeColor="red" ControlToValidate="TextBox7" ErrorMessage="*"></asp:RequiredFieldValidator > </td></tr> <tr><td colspan="2" align="center"> <asp:Button ID="Button1" runat="server" Text="Submit" CssClass="button" onclick="Button1_Click" Visible="True" />
36
Snap Shots
37
38
39
40
41
42