Geeks With Blogs
Łukasz Kuryło's blog June 2011 Entries
Embedding a javascript file as a web resource
I'm not using very ofter a web resources, so every time I need to use it, I'm wasting my time to google how to do it. To save my time next time, a little example. Set the Build Action on the js file to Embedded Resource and add few lines in: AssemblyInfo: [assembly: System.Web.UI.WebResource("... "text/javascript")] and in the custom web control: protected override void OnPreRender(EventArgs e) { ClientScriptManager cs = this.Page.ClientScript; cs.RegisterClientScriptReso... ......

Posted On Saturday, June 4, 2011 7:16 PM

[Latex] Large table on more than one page
Yesterday I was looking for an out of the box feature to place one big table on more than one page without the need to cut this table manually. I've found a very easy to use solution with longtable package. Sample code: \usepackage{longtable} \begin{longtable}{|c|c|c|c|... \caption{some fancy caption} \label{tab:mylabel} \tabularnewline \hline Iteration & 1 & 2 & 3 & 4 & 5 & 6 \tabularnewline \hline DataSet & &&&&&\\... Makao & 77,30 ......

Posted On Friday, June 3, 2011 2:58 PM

Problem with __doPostBack and second __EVENTTARGET
I had recently a very interesting problem. I have a single button on my page, which opens a jquery ui dialog with other page containing single textbox control. After pressing the Ok button, using web service the textbox value is sending to the server and a label control on the main page is updating and the update panel containing this label is refreshing. Vary simple solution. Maybe too simple, because I have lost a few hours to investigate, why after pressing the Ok button, full postback occurs ......

Posted On Wednesday, June 1, 2011 3:30 AM

Copyright © Łukasz Kuryło | Powered by: GeeksWithBlogs.net