Recent Articles

System.Security.SecurityException in Asp.Net

| April 23, 2013 | 0 Comments

I was trying to host Intranet website based on .Net Framework 2.0 on remote share with fewer privileges. But the web application got failed and showed exception as : Server Error in ‘/rso/intranet’ Application. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the […]

Continue Reading

Concatenate strings in .aspx page

| November 5, 2011 | 0 Comments

Problem I am trying to set label value dynamically in .aspx page. Additionally I need to concatenate strings in the .aspx page. Solution We would need to use string.Concat() function for same. Here is solution for concatenating string values in .aspx page: Code Snippet for .aspx: Above code results in string as http://80Hello.

Continue Reading

Round corners on Image by Adobe Photoshop CS3

Round corners on Image by Adobe Photoshop CS3

| December 31, 2010 | 1 Comment

You want to convert square image into round corners image by using Adobe Photoshop CS3.  There are lot of articles available on net explaining about round corners in very easy and efficient way. But I am writing this article for future reference and for rest of fresher designers who wish some easy step-by-step instructions. So […]

Continue Reading

The database ‘file.mdf’ cannot be opened because it is version 655

| December 28, 2010 | 0 Comments

Problem: This was weird & probably first problem I faced related to Sql Server version(s). I was trying to learn Asp MVC with the help of sample application MvcMusicStore. I open it in VS 2010 and debug. On debugging it throw runtime exception: System.Data.EntityException was unhandled by user code. Message=The underlying provider failed on Open. […]

Continue Reading

Apply Style to ListItem in List Controls

Apply Style to ListItem in List Controls

| December 26, 2010 | 0 Comments

We can apply CSS class or styles to our List Controls (CheckBoxList, RadioButtonList, DropDownList and ListBox). But there is no way to add or apply style to ListItem within them in .aspx. So this article deals with how to add attributes to ListItems in all ListControls. We would apply required style or attributes at runtime […]

Continue Reading

Image in TextBox & RichTextBox

Image in TextBox & RichTextBox

| December 25, 2010 | 0 Comments

This article deals with how to show Image in TextBox and RichTextBox control. I googled for same but found little or was too complex to implement as per my understanding. Well! The noteworthy point is that in either of methods shared here uses alternative solution. There is no such direct way to do. Second thing is […]

Continue Reading

Update database from DataGridView

Update database from DataGridView

| December 21, 2010 | 0 Comments

Most of time developer want their users to be able to update database from DataGridView in Window Forms. So this article deals with concept of how to update tables in database from DataGridView. The main task of updating database is done with the help of System.Data.SqlClient.SqlDataAdapter.Update() method.  System.Data.SqlClient.SqlCommandBuilder generates required command for SqlDataAdapter when Select […]

Continue Reading

Modify MessageBox by MessageBoxManager

| December 18, 2010 | 0 Comments

You want to modify your default System.Windows.Forms.MessagBox look. You want to modify its fonts or its own size. In all you want to modify its appearance. And sometimes you wish to modify or change its functionality to some extent. Well … then there is some good news for you. But its not from Microsoft and […]

Continue Reading

Print integers in reverse order using LinkedLists

| December 15, 2010 | 0 Comments

Scenario: You need to make program in C that can accept numbers from user and print integers in reverse order using LinkedLists. Solution: There are three functions: Insert – Insert each number or integer into LinkedList from user. Reverse – Reverse each number in linkedlist starting from first number in linkedlist. PrintList – Print each […]

Continue Reading

Add first ten odd numbers in C

| December 15, 2010 | 0 Comments

This article demonstrates how to add first ten odd numbers in C starting from 1. I am writing this article as I was preparing assignment of SMU MCA First Semester August 2010 MC0061. So I too faced problem for that. Well … this is solution for those students.

Continue Reading