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="eSafetyEntities" EntitySetName="Documents" EntityTypeFilter="Documents"
         Select="it.[DocID],  it.[DocName], it.[Description], it.[DateCreated]"
         Where="it.Categories.CategoryId = @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 warning comes from the two following lines :

Transaktion *temp = 0 ;
temp = new Transaktion[antalTrans+1] ;

Rewrite them as :
Transaktion *temp = new Transaktion[antalTrans+1] ;

and it will be ok.

Random Solutions  
 
programming4us programming4us