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