Click here to Skip to main content
16,018,904 members

Comments by Member 9507975 (Top 4 by date)

Member 9507975 27-Sep-13 11:46am View    
can you put the sample code so i can see what is problem?
Member 9507975 26-Sep-13 21:38pm View    
this may not be a error but is definately a mistake

this is wroing
pager: $('#pager'),

should be

pager: #pager,

also
dataType: 'json',

should be

datatype: 'json',
Member 9507975 26-Sep-13 21:31pm View    
firstly you dont need to do

if (a.FromUserId == WebSecurity.CurrentUserId)
{

becuase at the top u are only seleecting the ones which pass this

from a in db.Messages where a.FromUserId== WebSecurity.CurrentUserId || a.ToUserId==WebSecurity.CurrentUserId select a;

maybe this line
db.UserProfiles.Find(2);

is throwing error because a userprofile with id 2 does not exist
Member 9507975 26-Sep-13 21:24pm View    
have you tried using jquery?? u can find and manipulate the li and ul inside the page.