Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 795747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:31:41+00:00 2026-05-14T22:31:41+00:00

I have one sharepoint custom page application which is rendering from a user control.

  • 0

I have one sharepoint custom page application which is rendering from a user control. In the user control page, i had used SPGridview for displaying data. My first column is Title Column (link button column), when the user click on the link, then one popup window will open with corresponding data. But the problem is the link button is not working properly. But this application is working as fine in asp.net application.

My code is shown below..

 <asp:UpdatePanel runat="server" ID="UpdatePanel2">
                                            <ContentTemplate>
                                                <SharePoint:SPGridView ID="dgApplicationBox" CellPadding="0" Height="100%" runat="server"
                                                    ForeColor="Black" Font-Size="10px" Font-Names="Verdana" AutoGenerateColumns="False"
                                                    AllowPaging="True" Width="100%" BorderStyle="None" BorderWidth="0px" PageSize="10"
                                                    BorderColor="White" BackColor="White" OnRowDataBound="dgApplicationBox_RowDataBound"
                                                    DataKeyNames="ApplicationID" OnSelectedIndexChanged="dgApplicationBox_SelectedIndexChanged"
                                                    OnPageIndexChanging="dgApplicationBox_PageIndexChanging" CssClass="ms-listviewtable"
                                                    AlternatingRowStyle-CssClass="ms-alternating">
                                                    <SelectedRowStyle Font-Bold="True" ForeColor="Black" BackColor="#CE5D5A"></SelectedRowStyle>
                                                    <EditRowStyle Font-Size="10px" Font-Names="Verdana,Arial,Helvetica,sans-serif"></EditRowStyle>
                                                    <HeaderStyle Font-Size="11px" Height="20px" Font-Bold="True" ForeColor="Black" BackColor="#E7E8EC">
                                                    </HeaderStyle>
                                                    <PagerStyle HorizontalAlign="Center" ForeColor="#414E61" Font-Size="5px" Font-Names="arial"
                                                        Height="10px" BackColor="#EBF3FF"></PagerStyle>
                                                    <RowStyle />
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="Title" HeaderStyle-CssClass="ms-vb">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="lbtnSubject" 
                                                                    Text='<%# Bind("UDF5") %>' runat="server" OnClick="lbtnSubject_Click"></asp:LinkButton>
                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Left" CssClass="ms-vh2" Font-Bold="true" />
                                                            <ItemStyle HorizontalAlign="Left" CssClass="ms-vb2" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Request No.">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblReqNo" Text='<%# Bind("UDF1") %>' runat="server" />
                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Left" CssClass="ms-vh2" Font-Bold="true" />
                                                            <ItemStyle HorizontalAlign="Left" CssClass="ms-vb2" />
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="CreatedOn" HeaderText="Created On" DataFormatString="{0:MM/dd/yyyy}"
                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                                            <HeaderStyle CssClass="ms-vh2" Font-Bold="true"></HeaderStyle>
                                                            <ItemStyle CssClass="ms-vb2"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Name" HeaderText="Form Type" HeaderStyle-HorizontalAlign="Left"
                                                            ItemStyle-HorizontalAlign="Left">
                                                            <HeaderStyle CssClass="ms-vh2" Font-Bold="true"></HeaderStyle>
                                                            <ItemStyle CssClass="ms-vb2"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:TemplateField HeaderText="History">
                                                            <HeaderStyle CssClass="ms-vh2" Font-Bold="true"></HeaderStyle>
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="21px" CssClass="ms-vb2">
                                                            </ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="lbtnView" runat="server" OnClick="lbtnView_Click" >View</asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Application Id" Visible="False">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblApplicationId" runat="server" Text='<%# Bind("ApplicationId") %>'></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Left" CssClass="ms-vh2" Font-Bold="true" />
                                                            <ItemStyle HorizontalAlign="Left" CssClass="ms-vb2" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </SharePoint:SPGridView>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>

when the user click on the link button, this code will works..

try
            {
                clearSession();
                Session["DigitalSignature"] = null;
                Button btnDetails = sender as Button;
                DataTable dt = (DataTable)dgApplicationBox.DataSource;
                GridViewRow gvRow = (GridViewRow)(sender as LinkButton).Parent.Parent;
                Session["AppId"] = ((Label)gvRow.FindControl("lblApplicationId")).Text;
                string subject = ((LinkButton)gvRow.FindControl("lbtnSubject")).Text;


                WFInfo objWFInfo = new WFInfo();
                objWFInfo.InitWorkflowProperty(Convert.ToInt32(Session["AppId"].ToString()), Session["CurrentUser"].ToString());
                Session["FormId"] = objWFInfo.FormID.ToString();

                string strFilname = objWFInfo.GetFormName(objWFInfo.ApplicationCategoryID.ToString());
                string WindowName = strFilname;
                strFilname += ".aspx";
                Session["CategoryId"] = objWFInfo.ApplicationCategoryID.ToString();
                //pnlSubmitModal_ModalPopupExtender.Show();

                ScriptManager.RegisterStartupScript(this, this.GetType(), "starScript", "popUpWindow('" + strFilname + "?tittle=" + subject + "', 800, 690,'" + WindowName + "');", true);

                this.Controls.Add(new LiteralControl("<script>alert('hi');</script>"));

                if (Session["CurrentUser"] != null)
                {
                    ApplicationForm objApplication = new ApplicationForm();
                    objApplication.markRead(Convert.ToInt32(Session["AppId"].ToString()), Session["CurrentUser"].ToString());

                }
                bindFolderData();
            }

If i click on the link button, there will be only post back occuring. but not the popup window open.. Please help me for resolving this problem. thanks in advance..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:31:42+00:00Added an answer on May 14, 2026 at 10:31 pm

    Have you checked to see if you’re receiving a javascript error on the click?

    Have you tried setting UpdatePanel2’s UpdateMode=”Conditional” and then adding Triggers? (button click)

    Like this sample:

        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="lbtnSubject" EventName="Click" />
        </Triggers>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 444k
  • Answers 445k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The XPath spec. defines the string value of an element… May 15, 2026 at 6:46 pm
  • Editorial Team
    Editorial Team added an answer You can try doing something like this. $( "body").fadeOut( function(){… May 15, 2026 at 6:46 pm
  • Editorial Team
    Editorial Team added an answer INNER JOIN (SELECT DISTINCT * FROM X) Alias ON Alias.ID… May 15, 2026 at 6:46 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.