Auto Populate SharePoint Form Field from a query string

I am trying to get a Query String from the URL to automatically populate a <SharePoint:FormFiled> that is used to add a new item to a list.  This way when the user navigates to the page, they would not have to fill in that feild.
DataBridgeAsked:
Who is Participating?
 
Abu HamdanConnect With a Mentor Enterprise Architect, PM ExpertCommented:
Sorry my friend this is the only way you could do this ,, but take a look on how to write asp.net with sharepoint on these links:

http://weblogs.asp.net/soever/archive/2006/07/27/SharePoint-2007_3A00_-using-ASP.NET-server-side-code-in-your-pages.aspx

and writing code in sharepoint will be using inline code mixed with html ,,
0
 
Abu HamdanEnterprise Architect, PM ExpertCommented:
As i understand you have a form that redirect or linked to another form,, and the the other sharepoint form should read the querystring and bind it ?

Solution as follows:

mySharePointPage.aspx?para1='test'&para2='test2'

and on your sharepoint page you should write custom asp.net code, to request these value on page load:

string myPar1 = Request.QueryString["test1"];
string myPar1 = Request.QueryString["test2"];

if you dont know how to write asp.net code in sharepoint form,, tell me ,, but its easy using sharepoint designer

Regards,




0
 
DataBridgeAuthor Commented:
This site is on a shared server so I am unable to write any real code other than asp.net, and I am not great with asp.net in sharepoint.
0
 
DataBridgeAuthor Commented:
Well I appreciate you help anyway, thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.