2014年7月13日 星期日

[RESOLVED] On Click of Button GridView style problem


Dear Team,



I have a gridview with quick search option on top of gridview and also having Header sort. When I performed header sort gridview styles are proper. The problem is with QuickSearch Button when I enter some search condition in textbox and Click on Search button
grid is rebinding with new data while reloading it is showing the grid without style, After minute second css is applying. What might be the problem?


Please guide me how can I fix this. 



Thanks in Advance


Tvs Kumar



try to apply css with the help of following Aspx code,








or read the following thread post, may help you,


http://stackoverflow.com/questions/9356634/gridview-sorted-header-css-not-loading



Dear ijaz_asp,



I am not using default gridview header sort for applying these things. Even Problem is in button click event of Quick Search.



Thanks


Tvs Kumar



hmm, can you plesae share the code of button click event, alonge with gridview HTML code as well.



Issue is got resolved friend. When I inspect the Console in Chrome browser it is giving errors like style.css not found.


I just loaded those css files in OnLoad function from C# codebehind. Now problem is got resolved.


CSS is applying properly.


Thanks for your tips. 


沒有留言:

張貼留言