Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SharePoint request form

Status
Not open for further replies.

xareon

MIS
Dec 6, 2006
2
US
I've been asked to develope a service request form on an internal SharePoint server. The data submitted from the form will be stored in a database and also emailed to several people. I also need to create a page to track the status of pending requests as well as update the status.

Now, I have no problem with developing this in ASP or C#, however I cannot get the scripts that I create to exicute on the server. I've also looked into using InfoPath to create the forms, but I am unsure if it will allow me to do everything that I need to.

Can somebody either point me in the direction of some documentation that might help, or tell me how to get SharePoint to allow custom scripts to run? I've tried searching for information and it has been fruitless so far, so any help will be appreciated.

Thanks,

Tennyson
 
What you need to create is a Web part. Use Visual Studio to create a Web part project. You can code your pages normally in ASP.NET using C# code-behind.

The trick is with registering your project with Sharepoint as a trusted assembly.

Take a look at for details on publishing the Web part to your site.

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
I'll have the roast duck with the mango salsa.
 
You could also try creating a web part from scratch in C#. I ran through the following tutorial recently and it's really simple:


You can download the web part templates that the article talks about here:


Finally, if you're lucky enough to have Share Portal 2007 running somewhere, this process gets even easier - no messing around with 'Safe Controls':
 
Sorry, I should have added that the web part templates will only work with Visual Studio 2003 - 2005 doesn't like them.
 
Ugh. When will they fix these, or is there even any discussion about fixing them?

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
I'll have the roast duck with the mango salsa.
 
It's irritating, isn't it? Everything I do - ASP.NET, Biztalk - I do in Visual Studio 2005, but I had to install Visual Studio 2003 onto a spare server to be able to do the work I want to do on Share Portal. I couldn't even install the two side by side on my laptop.

I suppose that you could convert the template to work with VS 2005, but it looks like a lot of work and it kind of defeats the object of a quick download, doesn't it?
 
Thank you, all for pointing me in the right direction. I do indeed have VStudios 2005 but I think I can make it work now that I'm on the right path.

Thx Again,
Tennyson
 
i've done everything you want to do using using an infopath/sharepoint combination. so it's possible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top