Getting Data Specific to Logged in user
Posted
by
user1770470
on Stack Overflow
See other posts from Stack Overflow
or by user1770470
Published on 2012-10-25T09:08:42Z
Indexed on
2012/10/25
11:01 UTC
Read the original article
Hit count: 148
I need to list logged in users active leads,and allow paging and selectable sorting, I cant use the grid because of the layout requirement.
I have been searching the web for the last 2 days and cant find any viable solution
Any help or direction would be greatly appreciated.
var query = db.Query("SELECT a.listingId, a.datetime, c.details, c.buycommercial, c.buyindustrial, c.buyretail, c.buyland, c.tencommercial, c.tenindustrial, c.tenretail, c.tenland, c.investor, c.developer, d.companyname, d.firstname, d.lastname, d.tel, d.cell, d.email FROM dbo.tblactivebroker a JOIN dbo.tblActiveListing b ON a.ListingId = b.ListingId JOIN dbo.tblListings c ON b.ListingId = c.ListingId JOIN dbo.tblContact d ON c.crmid = d.id WHERE b.active = 'True' AND a.ActiveBrokerID = @0",brokerid);
© Stack Overflow or respective owner