Author Archives: simpledotnetsolutions

jsTree – Few examples with ASP.Net/C#

The examples below uses the latest jsTree build as obtained from jsTree. (The stable build – pre 1.0 fixed) I copied all the relevant folders and file under my scripts folder. The examples are developed using old WebForms. Example 1:Any … Continue reading

Posted in JQuery | Tagged , , | 2 Comments

iTextSharp – Creating Form fields.

Some of my readers have requested for iTextSharp checkbox, radiobutton C# samples. I basically used the Chapter8 as my reference. So, here they are. Create RadioButtonList: public string P_InputStream = “~/pdfs/k2.pdf”; public string P_OutputStream = “~/MyPDFOutputs/ex1_1.pdf”; public static String[] LANGUAGES_gc … Continue reading

Posted in External Open Source APIs | Tagged , , | Leave a comment

In-memory Data Caching – few insights.

The content below assumes single Web server hosting the web application. I’m using Framework 4.0, WebForms and System.Runtime.Caching namespace’s MemoryCache class (the in-memory cache provider) meaning cache is stored in web-server’s memory. Any data or complex business object (created with … Continue reading

Posted in General ASP.Net C# | Tagged | Leave a comment

Working with Visual Studio’s Profiler

The in-built Visual Studio’s Profiler can quickly detect performance bottlenecks. To get started with Profiler, you would need Visual Studio Ultimate or Premium version. It’s located under VS top menu -> Analyze->Launch Performance Wizard. In step1, choose “Instrumentation” then follow … Continue reading

Posted in General ASP.Net C# | Leave a comment

Exploring JQuery plugin ‘FullCalendar’.

Here’s the author’s weblink on this tremendous open-source calendar based scheduler. Everything to get started with this plugin can be found here, (ie docs, demos, download etc.)http://arshaw.com/fullcalendar/ I basically tried to run those same examples using ASP.Net/C#. Fullcalendar is extremely … Continue reading

Posted in External Open Source APIs, JQuery | Tagged , | 5 Comments

Few random development Tips-N-Tricks-8

A simple technique to generate weekly recurring dates in C#. aspx <form id=”form1″ runat=”server”> <div> <h1>Weekly Recurring Date Generation</h1> <b>Choose Date:</b>&nbsp;<asp:Calendar ID=”Calendar1″ runat=”server”></asp:Calendar><br /> Generate Dates For every <asp:TextBox ID=”TextBox1″ runat=”server”></asp:TextBox> weeks. <br /> <asp:CheckBoxList ID=”CheckBoxList1″ runat=”server” RepeatDirection=”Horizontal” RepeatColumns=”4″> <asp:ListItem … Continue reading

Posted in General ASP.Net C# | Leave a comment

Accessing ViewState mutually between PageControl and UserControl.

In my current project, I needed to save a bool variable in UserControl’s ViewState and had to access that in the Parent Container Page. After some thought, here’s a refined approach on this task. To begin with, in asp.net webforms … Continue reading

Posted in General ASP.Net C# | Leave a comment