Click here to Skip to main content
15,917,645 members

Comments by Member 14207792 (Top 22 by date)

Member 14207792 4-Jan-21 4:58am View    
i get the header text in popup cause of javascript alert but i want it in variable in vb.net code
because i want use it in sql query after
please help
Member 14207792 4-Jan-21 4:52am View    
how i do that i am still not gettion the clicked header text in gridview
i get it in a popup
 If e.Row.RowType = DataControlRowType.Header Then    
        For Each cell As DataControlFieldCell In e.Row.Cells                                cell.Attributes.Add("onclick", "javascript: GetHeaderText('" + cell.Text + "')")  '           Next      
  End If

   function GetHeaderText(txt) {alert(txt);              
}
Member 14207792 15-Dec-20 6:24am View    
yes i managed to get it work the panel it was in view(when i removed from the view it work normaly)
after the click of button to display the popup not work only work to show the popup
why is that?
Member 14207792 15-Dec-20 4:41am View    
this is the best result i got
 <asp:ScriptManager ID="asm" runat="server" />

<asp:button id="ClientButton" runat="server" text="Button" />
                         <ajaxToolkit:ModalPopupExtender ID="mpe" runat="server"
 TargetControlId="ClientButton" PopupControlID="ModalPanel" 
 OkControlID="OKButton" BackgroundCssClass="modalBackground" />
            <asp:Panel ID="ModalPanel" runat="server" Width="500px" BackColor="#3366FF" BorderColor="#FF33CC" BorderStyle="Dotted" CssClass="modapopup">
 ASP.NET AJAX is a free framework for quickly creating a new generation of more efficient,
 more interactive and highly-personalized Web experiences that work across all the
 most popular browsers.<br />
 <asp:Button ID="OKButton" runat="server" Text="Close" />
</asp:Panel>

but it is not like a popup it look like a part of form and when i put it in the form that already contain a data on all the form like a textbox and gridview
and on click the button to show that popup created nothing show but in blanc page it appear only the text not like a msgbox
Member 14207792 15-Dec-20 4:28am View    
i am still not resolved this problem
i want popup that display a gridview and it can be moving like a msgbox
please help