Click here to Skip to main content
15,914,222 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Redirect to web form from web service Pin
Dave Kreskowiak17-Mar-14 9:02
mveDave Kreskowiak17-Mar-14 9:02 
QuestionDropList doesn't post back Pin
#realJSOP17-Mar-14 5:11
professional#realJSOP17-Mar-14 5:11 
AnswerRe: DropList doesn't post back Pin
#realJSOP18-Mar-14 10:53
professional#realJSOP18-Mar-14 10:53 
QuestionHow to assign role to linq queries? Pin
miss78617-Mar-14 1:36
miss78617-Mar-14 1:36 
AnswerRe: How to assign role to linq queries? Pin
kaushikpathak18-Mar-14 1:26
kaushikpathak18-Mar-14 1:26 
GeneralRe: How to assign role to linq queries? Pin
miss78618-Mar-14 1:51
miss78618-Mar-14 1:51 
GeneralRe: How to assign role to linq queries? Pin
kaushikpathak18-Mar-14 2:36
kaushikpathak18-Mar-14 2:36 
GeneralRe: How to assign role to linq queries? Pin
miss78618-Mar-14 2:48
miss78618-Mar-14 2:48 
Hi, thank you for your reply back and you suggestion on 'switch back'. I will look into this function.

Currently this what my queries look like:
C#
public User trial(string username, string password)
        {
            string[] roles = new string[] { "trial"};
            var query = from s in db.Subs
                        join u in db.Cust on s.sUID equals u.uID
                        where s.sExpiryDate >= DateTime.Now &&
                        u.uUsername == username &&
                        u.uPassword == password
                        select u; 
            return query.FirstOrDefault();
        }
		
		
        public User full(string username, string password)
        {
            string[] roles = new string[] { "full"};
            var query = from s in db.Subs
                        join u in db.Cust on s.sUID equals u.uID
                        u.uUsername == username &&
                        u.uPassword == password
                        select u;
            return query.FirstOrDefault();
        }


Any help or suggestion, would be really appreciated. Thanks in advance.
Questionhow to set the visibility true for <Div> tag in vb.net Pin
Nandan Basak16-Mar-14 21:46
Nandan Basak16-Mar-14 21:46 
Questionyoutube videos behind login page Pin
raghushetty1616-Mar-14 21:41
raghushetty1616-Mar-14 21:41 
Questiondata is not getting saved to the database. Pin
samflex15-Mar-14 13:18
samflex15-Mar-14 13:18 
AnswerRe: data is not getting saved to the database. Pin
Garth J Lancaster15-Mar-14 14:45
professionalGarth J Lancaster15-Mar-14 14:45 
GeneralRe: data is not getting saved to the database. Pin
samflex15-Mar-14 16:21
samflex15-Mar-14 16:21 
GeneralRe: data is not getting saved to the database. Pin
samflex16-Mar-14 9:55
samflex16-Mar-14 9:55 
QuestionLogin status Pin
sbangani15-Mar-14 5:26
sbangani15-Mar-14 5:26 
QuestionFacebook share using jQuery Pin
Member 803236015-Mar-14 2:45
Member 803236015-Mar-14 2:45 
AnswerRe: Facebook share using jQuery Pin
Tom Marvolo Riddle15-Mar-14 3:22
professionalTom Marvolo Riddle15-Mar-14 3:22 
QuestionFacebook share button is not working Pin
Member 803236014-Mar-14 21:47
Member 803236014-Mar-14 21:47 
GeneralRe: Facebook share button is not working Pin
Peter Leow14-Mar-14 22:01
professionalPeter Leow14-Mar-14 22:01 
Questioncant trigger button server side event Pin
vangli13-Mar-14 22:26
vangli13-Mar-14 22:26 
AnswerRe: cant trigger button server side event Pin
kaushikpathak18-Mar-14 1:41
kaushikpathak18-Mar-14 1:41 
QuestionPage Cache - Panel control Pin
oDoJo13-Mar-14 19:37
oDoJo13-Mar-14 19:37 
QuestionHow to playing song in the mobil devices with my ASP Pin
famontepeque13-Mar-14 10:20
famontepeque13-Mar-14 10:20 
AnswerRe: How to playing song in the mobil devices with my ASP Pin
Bernhard Hiller14-Mar-14 0:36
Bernhard Hiller14-Mar-14 0:36 
GeneralRe: How to playing song in the mobil devices with my ASP Pin
famontepeque15-Mar-14 3:49
famontepeque15-Mar-14 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.