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
Set up online donations
Multi User Development in MS Access
MFC CString - valid IP Address ?
Failed requests and Timer_ConnectionIdle in HTTPERR
Windows Server 2008 DFS Root Permissions
Removing Alpha Characters from Phone Number
create a access database with information from a spreadsheet and print to index cards
How to prevent duplicate records on the form UI?
Renewing ssl cert on Windows Small Business Server 2003
Re-write the script for Copy/Paste