News
|
| Posted: 10/16/2005, 1:02 AM |
|
In ASP, Access how to put link parameters in Add Form fields.
When give parameters in search form, it opens a new target page "insert.asp" which is Add form and link shows: http://localhost/test/insert.asp?s_Email=admin%40hotmail%2Ecom&s_Subject=2
Now I want to insert Email and Subject values in fields i.e. Email and Subject. I think it will be done with CCGetParam() but how to get these values in the form?
|
|
|
 |
Edd
Posts: 547
|
| Posted: 10/16/2005, 1:33 AM |
|
News,
Sorry your link is local to your PC - see "localhost" (doh!)
So can you please repost with more information.
Edd
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |
News
|
| Posted: 10/16/2005, 3:36 AM |
|
I got exact value in Response.write by using following code but how to put this value in the record form. Database Field of record form is useremail.
Dim s_Email
s_Email = CCGetparam("s_UserEmail", Empty)
Function Page_BeforeShow()
'Custom Code
' -------------------------
Response.Write "this is the value of s_Email: " & s_Email
Response.End
' -------------------------
End Custom Code
End Function 'Close Page_BeforeShow
|
|
|
 |
News
|
| Posted: 10/16/2005, 3:38 AM |
|
I got exact value in Response.write by using following code but how to put this value in the record form. Database Field of record form is useremail.
Dim s_Email
s_Email = CCGetparam("s_UserEmail", Empty)
Function Page_BeforeShow()
'Custom Code
' -------------------------
Response.Write "this is the value of s_Email: " & s_Email
Response.End
' -------------------------
End Custom Code
End Function 'Close Page_BeforeShow
|
|
|
 |
News
|
| Posted: 10/20/2005, 9:43 AM |
|
No response ?????????
|
|
|
 |
Edd
Posts: 547
|
| Posted: 10/20/2005, 3:15 PM |
|
On the beforeshow of each object - I assume they are text objects. You add a before show event.
Function NameOfForm_Email_BeforeShow()
NameOfForm.Email.value = CCGetparam("s_Email", Empty)
End Function
The same for the subject
Edd
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |