Click here to Skip to main content
15,894,539 members
Articles / Web Development / ASP.NET

Pushing data into a SharePoint server

Rate me:
Please Sign up or sign in to vote.
3.12/5 (13 votes)
25 Jan 2004CPOL3 min read 149.8K   703   37  
Describes a way to push data into a Windows 2003 SharePoint server, from a web form.
<%@ Page language="c#" Codebehind="Feedback.aspx.cs" AutoEventWireup="false" Inherits="SharePointDemo.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>WebForm1</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 25px; POSITION: absolute; TOP: 20px" runat="server">Your Name</asp:Label>
			<asp:RequiredFieldValidator id="RequiredFieldValidator3" style="Z-INDEX: 109; LEFT: 306px; POSITION: absolute; TOP: 184px" runat="server" ErrorMessage="Email address is required" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
			<asp:RequiredFieldValidator id="RequiredFieldValidator2" style="Z-INDEX: 108; LEFT: 400px; POSITION: absolute; TOP: 69px" runat="server" ErrorMessage="Please enter some comments" ControlToValidate="txtComments"></asp:RequiredFieldValidator>
			<asp:TextBox id="txtEmail" style="Z-INDEX: 106; LEFT: 135px; POSITION: absolute; TOP: 182px" runat="server"></asp:TextBox>
			<asp:Label id="Label3" style="Z-INDEX: 105; LEFT: 32px; POSITION: absolute; TOP: 181px" runat="server">Email Address</asp:Label>
			<asp:TextBox id="txtComments" style="Z-INDEX: 104; LEFT: 134px; POSITION: absolute; TOP: 69px" runat="server" TextMode="MultiLine" Width="255px" Height="99px"></asp:TextBox>
			<asp:Label id="Label2" style="Z-INDEX: 103; LEFT: 28px; POSITION: absolute; TOP: 60px" runat="server">Comments</asp:Label>
			<asp:TextBox id="txtName" style="Z-INDEX: 102; LEFT: 135px; POSITION: absolute; TOP: 20px" runat="server"></asp:TextBox>
			<asp:RequiredFieldValidator id="RequiredFieldValidator1" style="Z-INDEX: 107; LEFT: 305px; POSITION: absolute; TOP: 23px" runat="server" ErrorMessage="Name is required" ControlToValidate="txtName"></asp:RequiredFieldValidator>
			<asp:Button id="cmdSubmit" style="Z-INDEX: 110; LEFT: 134px; POSITION: absolute; TOP: 216px" runat="server" Text="Submit your Feedback"></asp:Button>
			<asp:Label id="lblError" style="Z-INDEX: 111; LEFT: 138px; POSITION: absolute; TOP: 255px" runat="server" ForeColor="Red"></asp:Label>
		</form>
	</body>
</HTML>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
Steve is a software developer working in Minneapolis, MN.

Comments and Discussions