C# - Creating Custom Webapp In Sharepoint _layouts Folder?

Jul 20, 2010

I am attempting to for the first time create a custom asp.net website on a sharepoint web server, i have created the following Default.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" MasterPageFile="~/_layouts/application.master" %>
<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages,Version=12.0.0.0, Culture=neutral,

[code]...

View 1 Replies


Similar Messages:

Web Forms :: Vb.net - Creating Click Event To Search Sharepoint Folder?

Apr 15, 2010

From my web page, I want to create a button click event that will go to a page

on Sharepoint (I will direct to this link), then search the folder for a record number

(first five numbers of the file).

Is this possible with Sharpoint?

View 2 Replies

Unable To Call The SharePoint Custom Web Service From Another SharePoint Farm

Jan 12, 2011

I have deployed a custom SharePoint Web service on Farm A. I am trying to access this Web service from a SharePoint timer job on Farm B. On Farm B, I am creating Class Library project, packaging it (wsp) and then deploying to GAC. The problem is I'm unable to access the Web Service using the following code. TodaysNewSVC is a service reference

TodaysNewSVC.GetTodaysnewsfromInsite objGetNews = new TodaysNewSVC.GetTodaysnewsfromInsite();
objGetNews.PreAuthenticate = true;
objGetNews.Credentials = CredentialCache.DefaultCredentials;
objGetNews.Url = "http://insite-dev.portal/_vti_bin/todaysnews.asmx";
DataTable dt2 = objGetNews.getNewsFromInsite(true, true);

//getNewsFromInsite is a WebMethod which returns the DataTable.

Note: Both farms use the same active directory authentication. I have also done the debugging for Timer Job and feature activation and they are working fine. The problem occurs during the call i.e. getNewsFromInsite
The asmx and wsdl files are accessible from Internet Explorer and also from Windows Console application. Here is the code which I use from console application:

GetTodaysnewsfromInsiteSoapClient objWSClient = new GetTodaysnewsfromInsiteSoapClient();
objWSClient.ClientCredentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials;[code]...

Here is the error message:The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="%2fPages%2fproblem-with-page.aspx%3fc%3d500">here</a>.</h2>
</body></html>

View 1 Replies

C# - How To Create A Custom Web Part From A Custom List In Sharepoint 2007

Dec 19, 2010

I want to create a custom web part in SharePoint 2007 that allows me to take items from an existing custom list (i.e. Title, Hyperlink, Description and photo) and then render it in a format of my choice. How can I do this using C# asp.net and a web part?

View 1 Replies

Web Forms :: Folder To Store WebControl, Without Actually Creating That Folder On Website

Dec 16, 2010

I want to create a folder to store some web controls, so the site structure doesn't have a zillion files in the root.

Except that if I create an ordinary folder, that folder is also visible on the web site. MSDN said you cannot put it in App_Code, and it doesn't really make sense to put it in other special folder like App_Data or App_Theme.

View 3 Replies

Custom Server Controls :: Hide A Method While Creating Custom Control By Inheriting WebControl?

Nov 29, 2010

I am creating a custom control by inheriting a server control, say LinkButton. There are properties like "BorderColor" available in LinkButton. Let's say, I don't want this particular property to be available when I create an instance of the custom control.

I want to completely hide this particular property (I don't want to override it but disable it.)

My code is as follows:

[Code]....

View 3 Replies

Web Forms :: Create Custom Templates In Sharepoint?

Jun 29, 2010

I am new to sharepoint I am familiar with creating webparts and using them in sharepoint, but how to create an entire site as template and make it to use in another sites

View 2 Replies

C# - Page Inheritance In Custom Sharepoint Application?

Aug 2, 2010

I have a default.aspx in a folder _layouts/sandbox on the sharepoint server.

It has the following code:

using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;

[Code]....

View 1 Replies

Custom Server Controls :: Creating A Custom Control?

Mar 3, 2010

How to create a custom control and REGISTER IT AND WHERE TO INSERT A CODE IN IT FOR AN EXISTING WEB SITE?

View 4 Replies

Configuration :: Custom Web App Integration Into Sharepoint With MS-Access Connectivity?

Jan 10, 2011

Ive integrated a custom asp.net web application into a Sharepoint site by creating a virual directory, that contains my web app files, that points to a directory in the Sharepoint inetpub folder.

On my local dev server I can access all my web app pages just fine by typing in /virtualdirectoryname/page.aspx

My Problem is that: When I deploy to my Live Test server that is internet facing, none of the pages that make a MS-Access database call will work.

The Error I receive is '[SecurityException: Request for the permission of type 'System.Data.Odbc.OdbcPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]'

I have researched the issue online and tried numerous solutions which include giving all the assemblies in my application a strong name, and modifying the security policy to trust this strong name.

My Custom Web App consists of 2 projects

1. A Class Library Project (Data Layer)

2. A Web Application Project (Web Layer)

My .mdb database file is stored at root level within the Virtual Directory.

I have 1 class in the Data Layer (ClassConnect.cs) that when instantiated, creates the ODBC connection for all other pages to use (OdbcConnection dbConn = new OdbcConnection();)

I have a Connection String stored in the web.config file that is as such. When I deploy to the Live Test Server I change the path in this connection string, because I haven't figured out yet how to get a relative path that works.

I also place the dll's for my 2 projects in the Sharepoint bin folder.

Could anyone suggest what might be the dfference between my Local Dev Server and the Live Test Server and why I might be getting these errors.

View 1 Replies

DateTimeControl Custom OnDateChange Event Not Firing In SharePoint?

Feb 3, 2011

The custom event for a DateTimeControl is not firing. Instead the CreateChildControls() is firing, every-time I change the date on Calendar.

namespace myn
{
class StopTimeFieldControl : BaseFieldControl
{
protected DateTimeControl dateTime;

[Code]....

View 2 Replies

Sharepoint Custom Aspx Page With Database Connection?

May 7, 2010

i have created a custom aspx page whithin my sharepoint site with a sql server connection to a database on that server to select data when i view the page it works but when another user tries to view it it gives the following error :Server Error in '/' Application. Login failed for user 'GRINCORGuguK'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'GRINCORGuguK'.Source Error: The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:2) Add the following section to the configuration file of your application:Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. tack Trace:

[SqlException (0x80131904): Login failed for user 'GRINCORGuguK'.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +248
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245

[code]...

View 4 Replies

Custom Master Pages In WSS3.0 / SharePoint 2007 DOC TYPE?

Mar 23, 2011

I have a custom master page that I use in WSS3.0 (SharePoint 2007) and I am using a HTML 'DOC TYPE' which I am declaring at the top of the master page. The site all works very well with my master page apart from some of SharePoint controls which are acting a little funny, namely the People Picker for a People and Group field.If I remove the DOC TYPE declaration then the People Picker and other controls work perfectly and behave as they should but it sends some of my customisations/layout all over.

Before I spend a lot of time reviewing fixing the issues I get to my design without having the DOC TYPE declared, does anyone know if there is a certain DOC TYPE that is compatible with WSS3.0 / SharePoint 2007 and all of its features (i.e. People Picker Fields)?

View 1 Replies

Use Sharepoint As The Back - End Versioning And Storage For Custom Document Management Website?

Apr 16, 2010

I want to build a custom document management web application that ties in with sharepoint for the actual document versioning and storage. I'm hoping for something like a sharepoint widget that I can plug into my web application that would allow me to tie in with sharepoint and download documents, make edits to them, and upload them back to sharepoint, with sharepoint handling all of the versioning and storage. Basically I'm looking for a sharepoint API. If WSS is the answer to this, are there licensing issues that I need to consider?

View 4 Replies

Web Forms :: Microsoft Report Viewer 10 In Custom Web Part For SharePoint 2007

Apr 20, 2010

i downloaded Microsoft Report Viewer 2010 Redistributable Package and used in asp.net page and it works fine without post back all the page BUT, when i created costume web part including report viewer , default page shows javascript error and the report papers as disabled , and when i click viwer the whole page getting post back

View 2 Replies

Creating A Treeview For Displaying Folder Contents?

Feb 9, 2011

i want to create a tree view for displaying folder hierarchy

my database about folders is in sql server so there is no option in tree view for sqlserver its just showing the xml database how can i create such structure its similar to windows explorer.

View 5 Replies

File Upload- Creating Folder If It Does Not Exist?

Apr 26, 2010

I have a current file upload that works but I have to make sure that the SupplierImage folder is created. I would like for the upload to create the folder if the folder does not exist. Here is my code

protected void btnUpload2_Click(object sender, EventArgs e)
{
try
{
string path = "~\Assets\ApplicationCompany\SupplierImage\" + ddlVendor2.SelectedValue.ToString() + ".jpg"));
Label1.Text = "Received " + FileUpload2.FileName;
}
else
{
Label1.Text = "You have not selected a valid upload file. GIFs only";
}
}
catch (Exception)
{
throw;
}
}

View 1 Replies

Security :: Folder Is Not Creating On Remote Machine?

Mar 26, 2010

I am creating a folder on remote machine,for that folder i gave acces permissions. even though when i submit my form it is giving below error.

No accessible overloaded 'SqlCommand.Transaction' is most specific for these arguments: Public Sub set_Transaction(value As System.Data.SqlClient.SqlTransaction) Public Sub set_Transaction(value As System.Data.Common.DbTransaction)

View 2 Replies

Creating Application Which List All The Files And Folder In Any Drive

Mar 23, 2012

I was creating an application which list all the files and folder in any drive but when i m running this app i am getting a strange exception called

Code:
System.Security.SecurityException: Exception from HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED)

I search the web and found that i need to include this in web.config file so i did

Code:
<trust level="Full"/>

View 3 Replies

Data Controls :: Creating Folder When Clicking A CheckBox In GridView?

May 7, 2015

i want to create a folder when a checkfield is checked in a gridview and the folder name should be the first colum name.i use the following code, 

protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
foreach (GridViewRow row in GridView1.Rows)
{
CheckBox ck = ((CheckBox)row.FindControl("CheckBox1"));
if (ck.Checked)

[Code]......

But it doesn't work.

when i set autogenerate=true it create afolder as per the autogenerate columns index.

HTML

<asp:GridView ID="GridView1" HeaderStyle-BackColor="#3AC0F2"
HeaderStyle-ForeColor="White" runat="server" AutoGenerateColumns="False"
AutoGenerateSelectButton="True" onselectedindexchanged="GridView1_SelectedIndexChanged1"
>
<Columns>
<asp:TemplateField HeaderText="Id">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Id") %>' ></asp:TextBox>
</EditItemTemplate>

[code]....

View 1 Replies

Web Forms :: Creating New Folder In Server And Video / Audio Uploading And Playing

Oct 15, 2010

I am a Bigner in asp.net c# learning. How can i create a new folder in server from my c# program. in my semester asp.net project, i want to upload video/audio files into my own newly created folder and the storing folder's name must be given by me, which means each time folder name may change during uploading time. and how can i give a picture link to that vodeo files containing in different folders and how can i play that files in the browser using a player.

View 1 Replies

MVC :: Creating A Class UserDetailsModel.cs In Folder Model./gettting An Error Message In Partial Rendering

Jan 4, 2010

I have created a class UserDetailsModel.cs in my folder model. I have populated a selectedList in the model class.

I have create a view which is both strongly-typed and partial and the view data class is the abc.cs

I have the following code in the view

[Code]....

However, i`m getting the error of
[Code]....
[Code]....

View 10 Replies

Sharepoint - Simple Web Form That Writes To A Database... Access Web Form Or Custom .NET?

Feb 21, 2011

I am working in a school and we recently installed a new server running WinServer 2008R2. I want to be able to point people to a URL on our intranet and have them fill out a simple registration form and have this data written to a database. It would also be nice to have some data auto-populate (such as their name).

Is it overkill to set up a sharepoint server and try to do this with Access Webforms? Could I use something like dotnetnuke and find a module that works? Or how about options for writing custom forms?

View 3 Replies

MVC :: Creating A Custom ViewEngine

Jan 15, 2011

I am woking on a MVC project which require me to put all controllers, models and views into a folder called Mvc instead of the project root, I created a custom viewengine, here is the code:

[Code]....

My Application_Start:

[Code]....

It does not work, when I request [URL], I got: The view 'Index' or its master could not be found. The following locations were searched:

~/Mvc/Views/Index.aspx
~/Mvc/Views/Index.ascx
~/Mvc/Views/Shared/Index.aspx
~/Mvc/Views/Shared/Index.ascx

I expect the custom viewengine to find the view at: ~/Mvc/Views/Home/Index.aspx

View 1 Replies

Creating Custom Objects For Wcf?

Oct 2, 2010

I have an existing web application that uses EF and POCO objects. I want to improve the client experience by exposing some of my objects through WCF(JSON). I have this working fine but where I am unsure is how to handle derived objects(not sure if that is the correct term) or IEnumerable anonymous objects if you will.

Let's say I have 3 tables structured like so:

Templates

ID
Template

Groups

ID
Group

Instances

ID
TemplateID
GroupID

This is obviously a one-to-many type relationship. I have my navigation properties setup correctly and getting strongly typed object properties works great. However, how do I send serialized anonymous type object(s) over the wire. Like an object that sends all instances that are equal to groupid=1 and include the names of the template and the object.Am I missing something or do I have to create another class object for WCF that would look like this:

WCF Object

InstanceID
TemplateID
TemplateName
GroupID
GroupName

I guess I could alter my tables to account for this but that seems wrong too. I know that IEnumerable objects can't be serialized and I know that throw away objects are probably not the way to go either. I want to do this the right way but I am not sure how to go about it.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved