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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing primary key as URL parameter

Status
Not open for further replies.
Sep 9, 2002
28
US
I am developing an online data access system. I have a master/detail page and all that fun stuff. But, when i update, i am passing a primary key as a URL parameter. So, after updating a record, I have the page redirected back to the master page. But, when this is done, the url parameter passes with it.

ex.
after updating:
--thus far it works.

but then when i want to navigate again from the master page it looks like the following:


Obviously this will not work as this URL does not exist.
My question is: Is there anyway to go to master.asp after updating the record instead of carrying the URL parameter?????

Thanks..
 
Are you using something like this?
Response.Redirect "master.asp?contactID=" & Request("contactID")

If so, couldn't you just use this?
Response.Redirect "master.asp" Adam
 
Here's what i git

if (String(Request("MM_update")) == "form1" &&
String(Request("MM_recordId")) != "undefined") {

var MM_editConnection = MM_Sweet_Jane_STRING;
var MM_editTable = "Contacts";
var MM_editColumn = "ContactID";
var MM_recordId = "" + Request.Form("MM_recordId") + "";
var MM_editRedirectUrl = " var MM_fieldsStr = "FirstName|value|LastName|value|Address|value|City|value|StateOrProvince|value|PostalCode|value|CompanyName|value|Title|value|WorkPhone|value|WorkExtension|value|MobilePhone|value|FaxNumber|value|EmailName|value|LastMeetingDate|value|ReferredBy|value|Notes|value";
var MM_columnsStr = "FirstName|',none,''|LastName|',none,''|Address|',none,''|City|',none,''|StateOrProvince|',none,''|PostalCode|',none,''|CompanyName|',none,''|Title|',none,''|WorkPhone|',none,''|WorkExtension|',none,''|MobilePhone|',none,''|FaxNumber|',none,''|EmailName|',none,''|LastMeetingDate|',none,NULL|ReferredBy|',none,''|Notes|',none,''";
 
Just a suggestion, i see that you are using dreamweaver, i thought it was great until i start to get those kind of problems, now for me it suks, i just use DW because it has code completion and some other stuff that help on doing the work faster and easyer.

I'm not telling you what to do or that you are wrong, but now i understand a lot more of ASP because now i have to really know how to do it, it's not just some clicks and the things are done.

Can you be more specific and send me what you're to do

on most of the cases i see the code and understand it, with DW generated code it's much more dificult.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top