data binding - Bound gridview problem; jquery resolution in unbind? -


Good evening all.

I have a puzzler for you.

On my page I have a cascading DDL (DDLBear), a textbox search (TBXproduct) and a radio button list (redtape). These, once populated and a submit button is clicked, produces invented gridview with data. What I am trying to achieve is that the user can choose only the DDL, text box or the radioactivity list as a method to create gridview data.

I have achieved it, Jquery 'clears' the gridview of syntax and resets different search methods, for example.

  & lt; Code & gt; ddlBuyer.Attributes.Add ( "onclick", "$ ( '# tbxProdAC') val ( '.'); removal ($ ( '.') val ( '# txtbxHowMany') ;. $ ( '# GridView1') ); $ ('# RadTopx input') et ('check', false); $ ('# redprode'). Et ('check', wrong);); & Lt; / Code & gt;  

However, because it is occurring client side, server-side events (ie ddlBuyer_SelectedIndexChanged) is still being executed and being forced to later, when data I really want it. That is, if I select the Roadtop button, click on the button to create gridview (this happens on a postback).

protected void btnSubmit_Click (object sender, EventArgs e) {

  if (radTopx.SelectedValue == "" || txtbxHowMany .text == "") {MessageBox.Show ("Please make sure that both the appropriate and the appropriate number of product 'is selected' before you run a top of the report X," Top X Error !!! " Attempt, MessageBoxButtons. OK, MessageBoxIcon.Exclamation); GridView1.DataSourceID = Faucet; } And {int max = 0; If (int.TryParse (maximize txtbxHowMany.Text, outside)) {GridView1.DataSource = this.GetMaterialData (session "[MemberKey"] toString (), radTopx.SelectedItem.Value, "Primary", Max.); GridView1.DataSourceID = string.opt; GridView1.DataBind (); }}  

I then click on ddlBuyer, the radTopx information is cleared, but Gridwu maintained because these have been removed:

rotected zero ddlBuyer_SelectedIndexChanged (object sender, EventArgs e) {ORDataClassesDataContext DBII = new ORDataClassesDataContext (); Var queryII = different () OrderBy (r => r.UnitUserfield2) (in dbII.tblOnlineReportingFINALPRODUCTs R where r.UnitUserfield1 == ddlBuyer.SelectedValue select new {UnitUserfield2 = r.UnitUserfield2}); ..

  ddl.Sub.DataSource = queryII; DdlSub.DataTextField = "UnitUserfield2"; DdlSub.DataValueField = "UnitUserfield2"; DdlSub.DataBind (); Ddl.Sub.Items.Instert (0, "- Select sub class -"); GridView1.DataSourceID = Faucet;  

What to grid view through jquery 'unbind' so when Deedielbiyr clicked, Gridwu releasing any data What has been held in the past?

If it does not understand, sorry, it is difficult to summarize and accurately describe

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" -