Microsoft
Software
Hardware
Network
Question : where parameters aspx .net page
I have an aspx page that is working, but when i try to add where parameter I get an error that the parameter "cid" is no defined. what is worng?
--------------------------
--------------------------
-
DefaultContainerName="eSaf
etyEntitie
s" EntitySetName="Documents" EntityTypeFilter="Document
s"
Select="it.[DocID], it.[DocName], it.[Description], it.[DateCreated]"
Where="it.Categories.Categ
oryId = @cid">
--------------------------
----------
----------
----------
---
the page is passing cid like this and have tested the value which is working:
.......doc.aspx?cid=1
Answer : where parameters aspx .net page
The Name of the parameter needs to match the name in the query. So, in your case it should be "cid" rather than "id":
Random Solutions
Populate Text box based on combo box
Excel Arrange numbers in Random Order
SBS 2003 to SBS 2008 Migration sbsanswerfile.xml
Aligning an ASP.NET Menu Control
Push out Office 2007 configuration settings
What is the VBA to do this in Access?
Windows XP clients not getting gpo folder redirection informtaion
ignore space between names within string
Dynamic sql insert identity
Windows 98SE not running command when installed 2GB memory