Click here to Skip to main content
15,888,065 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAccess a control or function from asp page in Global.asax Pin
SajjadZare4-Apr-13 7:01
SajjadZare4-Apr-13 7:01 
QuestionRe: Access a control or function from asp page in Global.asax Pin
Sandeep Mewara4-Apr-13 7:09
mveSandeep Mewara4-Apr-13 7:09 
AnswerMessage Closed Pin
4-Apr-13 7:42
SajjadZare4-Apr-13 7:42 
GeneralRe: Access a control or function from asp page in Global.asax Pin
Sandeep Mewara4-Apr-13 7:47
mveSandeep Mewara4-Apr-13 7:47 
QuestionPlease help me in following Linq Query Pin
indian1433-Apr-13 14:43
indian1433-Apr-13 14:43 
AnswerRe: Please help me in following Linq Query Pin
Narayana Palla4-Apr-13 8:00
Narayana Palla4-Apr-13 8:00 
GeneralRe: Please help me in following Linq Query Pin
indian1434-Apr-13 13:12
indian1434-Apr-13 13:12 
AnswerRe: Please help me in following Linq Query Pin
Narayana Palla5-Apr-13 10:08
Narayana Palla5-Apr-13 10:08 
Hi Abdul,

This is what I tried and worked for me. I hope this is the same you too are looking for. I tried this in .Net framework 4.0 using Linq to Entities.

VB
public class DbTestClass
    {
        public void Test()
        {
            using (var context = new Model.ParadiseEntities())
            {
                var items = from s in context.Survey3D.Take(5)
                            select new Testing
                            {
                                TestId = s.Id,
                                Items = from v in context.Volumes where v.Survey3D_Id == s.Id select v,
                                Items1 = from v in context.Volumes where v.Survey3D_Id == s.Id select v,
                                Items2 = from v in context.Volumes where v.Survey3D_Id == s.Id select v,
                                Items3 = from v in context.Volumes where v.Survey3D_Id == s.Id select v,
                                Item = context.Volumes.Where(a => a.Survey3D_Id == s.Id).FirstOrDefault()
                            };
                var list = items.ToList();
            }
        }
    }

    [DataContract]
    public class Testing
    {
        [DataMember]
        public Guid TestId { get; set; }
        [DataMember]
        public IEnumerable<Volume> Items { set; get; }
        [DataMember]
        public IEnumerable<Volume> Items1 { set; get; }
        [DataMember]
        public IEnumerable<Volume> Items2 { set; get; }
        [DataMember]
        public IEnumerable<Volume> Items3 { set; get; }
        [DataMember]
        public Volume Item { get;set; }

    }



If possible please send your linq query and data contract to , I will try to look into it.

Thanks,
Swamy
GeneralRe: Please help me in following Linq Query Pin
Narayana Palla5-Apr-13 10:11
Narayana Palla5-Apr-13 10:11 
GeneralRe: Please help me in following Linq Query Pin
indian1436-Apr-13 0:05
indian1436-Apr-13 0:05 
QuestionASP.Net website asks user and password continously Pin
idrisgani3-Apr-13 8:47
idrisgani3-Apr-13 8:47 
AnswerRe: ASP.Net website asks user and password continously Pin
R. Giskard Reventlov3-Apr-13 9:57
R. Giskard Reventlov3-Apr-13 9:57 
AnswerRe: ASP.Net website asks user and password continously Pin
AContractor3-Apr-13 10:11
professionalAContractor3-Apr-13 10:11 
GeneralRe: ASP.Net website asks user and password continously Pin
idrisgani3-Apr-13 12:52
idrisgani3-Apr-13 12:52 
GeneralRe: ASP.Net website asks user and password continously Pin
Jasmine25013-Apr-13 13:27
Jasmine25013-Apr-13 13:27 
GeneralRe: ASP.Net website asks user and password continously Pin
idrisgani4-Apr-13 0:07
idrisgani4-Apr-13 0:07 
GeneralRe: ASP.Net website asks user and password continously Pin
Jasmine25014-Apr-13 6:08
Jasmine25014-Apr-13 6:08 
QuestionIntranet Asp.Net application - are there any security prohibitions built in that would prohibit sending an Excel file with macros to a user's desktop?? Pin
Duke Carey3-Apr-13 8:19
professionalDuke Carey3-Apr-13 8:19 
AnswerRe: Intranet Asp.Net application - are there any security prohibitions built in that would prohibit sending an Excel file with macros to a user's desktop?? Pin
R. Giskard Reventlov3-Apr-13 8:47
R. Giskard Reventlov3-Apr-13 8:47 
GeneralRe: Intranet Asp.Net application - are there any security prohibitions built in that would prohibit sending an Excel file with macros to a user's desktop?? Pin
Duke Carey3-Apr-13 9:24
professionalDuke Carey3-Apr-13 9:24 
GeneralRe: Intranet Asp.Net application - are there any security prohibitions built in that would prohibit sending an Excel file with macros to a user's desktop?? Pin
R. Giskard Reventlov3-Apr-13 9:46
R. Giskard Reventlov3-Apr-13 9:46 
GeneralRe: Intranet Asp.Net application - are there any security prohibitions built in that would prohibit sending an Excel file with macros to a user's desktop?? Pin
Jasmine25013-Apr-13 13:18
Jasmine25013-Apr-13 13:18 
AnswerRe: Intranet Asp.Net application - are there any security prohibitions built in that would prohibit sending an Excel file with macros to a user's desktop?? Pin
Jasmine25013-Apr-13 13:17
Jasmine25013-Apr-13 13:17 
QuestionHow to create MX Excel file from DataTable? Pin
Tesic Goran2-Apr-13 22:58
professionalTesic Goran2-Apr-13 22:58 
AnswerRe: How to create MX Excel file from DataTable? Pin
AContractor3-Apr-13 1:50
professionalAContractor3-Apr-13 1:50 

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.