Click here to Skip to main content
14,298,985 members

SharePoint

 
QuestionHow to add Lookupfield using the SharePoint Client Object Model Pin
Member 1273502612-Sep-16 21:16
memberMember 1273502612-Sep-16 21:16 
QuestionCould anybody please make me understand this coding based on SharePoint. I started learning SharePoint just 10 days ago. Pin
Mratyunjay Kaushik11-Sep-16 23:12
memberMratyunjay Kaushik11-Sep-16 23:12 
AnswerRe: Could anybody please make me understand this coding based on SharePoint. I started learning SharePoint just 10 days ago. Pin
Richard MacCutchan13-Sep-16 0:28
protectorRichard MacCutchan13-Sep-16 0:28 
Questionadd extra filter (user input) in search results webpart Pin
Mohamed Al Maghraby9-Aug-16 6:13
memberMohamed Al Maghraby9-Aug-16 6:13 
QuestionCascading Dropdownlist Pin
James Cash9-Aug-16 2:55
memberJames Cash9-Aug-16 2:55 
AnswerRe: Cascading Dropdownlist Pin
DanielBrownAU9-Aug-16 13:46
professionalDanielBrownAU9-Aug-16 13:46 
GeneralRe: Cascading Dropdownlist Pin
James Cash9-Aug-16 20:15
memberJames Cash9-Aug-16 20:15 
GeneralRe: Cascading Dropdownlist Pin
James Cash10-Aug-16 10:14
memberJames Cash10-Aug-16 10:14 
Solved! Smth like this:

<asp:DropDownList ID="Fclty_ddl" runat="server" AutoPostBack="True" OnSelectedIndexChanged="Fclty_ddl_SelectedIndexChanged">
</asp:DropDownList>

<asp:DropDownList ID="Group_ddl" runat="server" AutoPostBack="True" OnSelectedIndexChanged="Group_ddl_SelectedIndexChanged">
</asp:DropDownList>

protected void Page_Load(object sender, EventArgs e)
        {
            web = SPContext.Current.Web;
            fctLS = web.Lists["List1"]; // faculty list
            groupLS = web.Lists["List2"]; // group list with lookup from faculty list

            if (!IsPostBack)
            {
                SPListItemCollection items1 = fctLS.Items;
                DataTable dt1 = items1.GetDataTable();
                Fclty_ddl.DataSource = dt1;
                Fclty_ddl.DataValueField = "ID";
                Fclty_ddl.DataTextField = "Fclty";
                Fclty_ddl.DataBind();

                SPListItemCollection items2 = groupLS.Items;
                DataTable dt2 = items2.GetDataTable();
                Group_ddl.DataSource = dt2;
                Group_ddl.DataValueField = "ID";
                Group_ddl.DataTextField = "Group";
                Group_ddl.Enabled = false;
                Group_ddl.DataBind();
             }
        }

        protected void Fclty_ddl_SelectedIndexChanged(object sender, EventArgs e)
        {
            SPQuery queryq = new SPQuery();
            queryq.Query = string.Format("<Where>" +
                                         "<Eq>" +
                                         "<FieldRef Name='Fclty' LookupId='True'/>" +
                                         "<Value Type='Lookup'>{0}</Value>" +
                                         "</Eq>" +
                                         "</Where>", Fclty_ddl.SelectedValue);
            SPListItemCollection items = groupLS.GetItems(queryq);
            DataTable dt = items.GetDataTable();
            Group_ddl.DataSource = dt;
            Group_ddl.DataTextField = "Group";
            Group_ddl.DataValueField = "ID";
            Group_ddl.DataBind();
        }


QuestionNeed help with Powershell Script to export list of OneDrive for business site collection owners. Pin
SiddiquiMohammed2-Aug-16 11:53
memberSiddiquiMohammed2-Aug-16 11:53 
QuestionCustom webparts improvement in Sharepoint 2016? Pin
senthill17-Jul-16 4:34
professionalsenthill17-Jul-16 4:34 
AnswerMessage Closed Pin
18-Aug-16 15:30
memberMember 1269129518-Aug-16 15:30 
QuestionCan a SharePoint WFE be added to a farm to host unique web applications that are not part of the existing farm? Pin
littleGreenDude27-Jun-16 7:56
memberlittleGreenDude27-Jun-16 7:56 
QuestionRun powershell script through sharepoint workflow Pin
Member 1158827023-Jun-16 5:44
memberMember 1158827023-Jun-16 5:44 
QuestionHow Can I pass EffectiveUserName to SSAS through Excel Service using FBA(Forms based authentication) in SharePoint 2013 Pin
Mahdi Moghimi14-Jun-16 23:24
memberMahdi Moghimi14-Jun-16 23:24 
QuestionUsing Powershell, how are dropdown based custom webpart properties set? Pin
littleGreenDude27-May-16 4:27
memberlittleGreenDude27-May-16 4:27 
AnswerRe: Using Powershell, how are dropdown based custom webpart properties set? Pin
Beginner Luck30-Aug-16 18:11
professionalBeginner Luck30-Aug-16 18:11 
QuestionCan I add a working asp .net application to a sharepoint page viewer? Pin
holdorf20-May-16 5:54
memberholdorf20-May-16 5:54 
AnswerRe: Can I add a working asp .net application to a sharepoint page viewer? Pin
DanielBrownAU22-May-16 14:01
professionalDanielBrownAU22-May-16 14:01 
QuestionI need to open model popup (i.e) confirmation Box , if user clicks "ok" then open infopath form in Edit mode, "cancel" then open infopath form in Read-only mode, Pin
Member 1247720121-Apr-16 18:22
memberMember 1247720121-Apr-16 18:22 
QuestionLocalizing SharePoint 2013 report viewer web part Pin
Morad Surkhi5-Apr-16 1:24
memberMorad Surkhi5-Apr-16 1:24 
AnswerRe: Localizing SharePoint 2013 report viewer web part Pin
Morad Surkhi7-Apr-16 2:02
memberMorad Surkhi7-Apr-16 2:02 
QuestionRich text editor issue for calendar page in SharePoint 2010 Pin
Member 1060186128-Mar-16 8:58
memberMember 1060186128-Mar-16 8:58 
QuestionScanned documents directly into SharePoint list as attachmen Pin
Member 1219520615-Feb-16 18:16
memberMember 1219520615-Feb-16 18:16 
AnswerRe: Scanned documents directly into SharePoint list as attachmen Pin
Richard Deeming16-Feb-16 2:15
mveRichard Deeming16-Feb-16 2:15 
AnswerRe: Scanned documents directly into SharePoint list as attachmen Pin
Bajirao_27-Apr-16 21:03
memberBajirao_27-Apr-16 21:03 

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.