Note that there are some explanatory texts on larger screens.

plurals
  1. PODisable all linkbutton and checkbox on the page load
    primarykey
    data
    text
    <p>i have a gridview that has 2 link buttons : Select and edit and 1 checkbox i need to disable the link buttons and the checkbox when the page loads</p> <p>this is my asp page:</p> <pre><code> &lt;asp:TemplateField&gt; &lt;ItemTemplate&gt; &lt;asp:CheckBox id="Select" runat="server" OnCheckedChanged="CheckedChanged" AutoPostBack="false"/&gt; &lt;asp:LinkButton ID="idedit" CommandName="Edit" CausesValidation="true" runat="server" ToolTip="Edit" Text="Edit"/&gt; &lt;/ItemTemplate&gt; &lt;EditItemTemplate&gt; &lt;asp:LinkButton ID="idupdate" CommandName="Update" runat="server" CausesValidation="false" Text="Update" ToolTip="Update" OnClientClick="javascript:if(!confirm('Are you sure do you want to update this?')){return false;}" /&gt; &lt;asp:LinkButton ID="idcancel" runat="server" CommandName="Cancel" CausesValidation="false" Text="Cancel" ToolTip="Cancel"/&gt; &lt;/EditItemTemplate&gt; &lt;/asp:TemplateField&gt; </code></pre> <p>this is my vb code :</p> <pre><code> Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load If Session("priv") = "host" Then fname_txt.Visible = False lname_txt.Visible = False email_txt.Visible = False birthday_txt.Visible = False phone_txt.Visible = False adresss_txt.Visible = False Label2.Visible = False Label3.Visible = False Label4.Visible = False Label5.Visible = False Label6.Visible = False Label7.Visible = False btn_delete.Visible = False btn_new.Visible = False Btn_save.Visible = False End If If Not IsPostBack Then GridView1.DataSource = x.selectProfile() GridView1.DataBind() End If End Sub </code></pre> <p>thank you in advance :)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload