?
Solved

Auto Populate SharePoint Form Field from a query string

Posted on 2007-10-05
4
Medium Priority
?
1,947 Views
Last Modified: 2008-01-09
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.
0
Comment
Question by:DataBridge
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:Abu Hamdan
ID: 20039654
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
 

Author Comment

by:DataBridge
ID: 20042320
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
 
LVL 7

Accepted Solution

by:
Abu Hamdan earned 1500 total points
ID: 20044641
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
 

Author Comment

by:DataBridge
ID: 20049783
Well I appreciate you help anyway, thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question