Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
GridView Postback adds IDs to TD and TR Elements
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Bryan, post: 3835150"] Has anyone else noticed this? I have a Gridview on a page. On the ititial load of the page, the HTML is generated as I would expect. For example: <table class="RenewalTable" cellspacing="0" border="0" id="ctl00_ApartmentPlaceHolder_gridRenewal" style="border- collapse:collapse;"> <caption> Renewal information for a given date range </caption><thead> <tr> <th scope="col">Apt</th><th scope="col">Name</th> </tr> </thead><tbody> <tr> <td class="apt">14D</td><td class="name"> <a href='Applicants.aspx?id=2602'>Jana C. Krumholtz</a> </td> </tr> After a postback, however, all of the Table Row (TR) and Table Data (TD) elements have IDs added to them. For example: <table id="ctl00_ApartmentPlaceHolder_gridRenewal_ctl00" class="RenewalTable" cellspacing="0" border="0" id="ctl00_ApartmentPlaceHolder_gridRenewal" style="border- collapse:collapse;"> <caption> Renewal information for a given date range </caption><thead> <tr id="ctl00_ApartmentPlaceHolder_gridRenewal_ctl01"> <th id="ctl00_ApartmentPlaceHolder_gridRenewal_ctl01_ctl00" scope="col">Apt</th><th id="ctl00_ApartmentPlaceHolder_gridRenewal_ctl01_ctl01" scope="col">Name</th> </tr> </thead><tbody> <tr id="ctl00_ApartmentPlaceHolder_gridRenewal_ctl02"> <td id="ctl00_ApartmentPlaceHolder_gridRenewal_ctl02_ctl00" class="apt">14D</td><td id="ctl00_ApartmentPlaceHolder_gridRenewal_ctl02_ctl01" class="name"> <a href='Applicants.aspx?id=2602'>Jana C. Krumholtz</a> </td> </tr> This is messing up the jQuery tablesorter. Any idea how I can stop ASP.NET from adding in the ID's? Thanks In Advance! - Bryan [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
GridView Postback adds IDs to TD and TR Elements
Top