c# - Javascript and ASP.NET -


After the text "itemprop =" text ">

In my case I am retrieving some data from backend.

The gridview should be hidden in a particular column, it should not be shown on the screen. .

  

source code Usage> & lt; ASP: BoundField DataField = "GLAC_NAME" HeaderText = "A / CNO" & gt; & Lt; Item style width = "200px" /> & Lt; / ASP: BoundField & gt;

This particular column I should not be shown to users to hide

Code start:

  protected void GridLedger_RowDataBound (object this, GridViewRowEventArgs e) {try {if (e.Row.RowType == DataControlRowType.DataRow) {e.Row.Attributes.Add ( "onMouseDown", "var str = document.getElementById ( '' + e.Row.ClientID + " ') .cells [1] .innerText; document.getElementById (' '+ TextBox1.ClientID +' ') value = str ;.");}} catch (System.Exception ex) {ex}}  

this code is in the beginning that I should mention the sales price

When you should try to set the CSS attribute view = false use it will not render html browser, your JavaScript will not work. Instead, you hide it: display: none ;


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -