I have a SP (and? ASP code)? that I currently use to create a breadcrumb navigation for? me from a table in the database.? It works, and works great, however, I need it to be able to specify the table name in my parameters being passed to it via my ASP code.
Everything I have tried has failed...
I can supply you with the table structure, the SP I am currently using, along with the ASP code that produces the results I am after.
Please supply me with an updated SP, with ASP code so I can specify a table name (along with the existing parameters being passed)? in the ASP code to be able to pull the data from, with an example how to use it.
A current example is here: <[login to view URL]>? ? on that page towards the top of the content is the NAVIGATION
## Deliverables
Rent A Coder requirements notice: As originally posted, this bid request does not have complete details. Should a dispute arise and this project go into arbitration "as is", the contract's vagueness might cause it to be interpreted against you, even though you were acting in good-faith. So for your protection, if you are interested in this project, please work-out and document the requirements onsite.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables):
a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
* * *This broadcast message was sent to all bidders on Friday Apr 14, 2006 10:07:32 AM:
Current ASP Code:
<%
pCat=killC([login to view URL]("pCat"))
if pCat = "" OR ISNULL(pCat) OR pCat = "0" then
pCat = 0
else
pCat = pCat
end if
Set cnNav = createobject("[login to view URL]")
[login to view URL] inrsConn
write [login to view URL] ("Execute gcDirNav " & Cstr(pCat) & ",' > '").Fields("Breadcrumb").Value
[login to view URL]
Set cnNav = Nothing
%>
Current SP:
CREATE Procedure gcDirNav(@PageID nvarchar(255) = 0,@Delimiter varchar(5) = ' > ') As
Declare @BreadCrumb nvarchar(4000)
Set @BreadCrumb = ''
WHILE @PageID > 0
Begin
If (Select gCat From ModPicCats Where [gcID] = @PageID) <> 'Top'
Begin
Set @BreadCrumb = (Select '[' + gCat + '][1]' From ModPicCats Where [gcID] = @PageID) + @Delimiter + @BreadCrumb
Set @PageID = (Select ParentID From ModPicCats Where [gcID] = @PageID) -- This iterates round until we get to the top (lcID = 0)
End
Else
Break
End
Set @BreadCrumb = '[Top][2]' + @Delimiter + @BreadCrumb
Set @BreadCrumb = Left(@BreadCrumb,Len(@BreadCrumb) - Len(@Delimiter))
Select @BreadCrumb As BreadCrumb
GO
Current Table Structure:
ModPicCats <-Table Name
gcID <-int(4) identity(1)
parentID <-int(4)
gCat <-nvarchar(50)
Table structure will be the same for the other tables i need this SP on, but I will need to be able to pass table name to it via ASP
## Platform
ASP Classic, SQL 2000