RSSCategory: Asp.Net

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

RadChart Grouping and Aggregation

| April 15, 2013 | 0 Comments

Telerik provides number of controls for Asp.Net developers. I was using one of the control RadChart that is used for representing information in chart. But the radchart control lacks grouping and aggregation feature directly. However RadChart for Silverlight provide this feature. You can check it from here. Allow me to discuss a problem I was […]

Continue Reading

Deploy Crystal Report Application

| March 7, 2012 | 13 Comments

Learn how to deploy crystal report application on production server. Why the same code works fine on development server. But get fail on production server. We would try to understand crystal report issue faced by most of the developers while deployment of crystal report apps. I googled lot for same issue but information was scattered. […]

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

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

How to access controls within User Control

| December 20, 2010 | 7 Comments

This article helps you to know step-by-step how to access controls within User Control from Asp.Net Page. 1. For this we would need to register our UserControl in Asp.Net Page. Code Snippet for UserControl: 2. And then in .aspx.cs page we can find the control within user control and caste it accordingly to use further in […]

Continue Reading

GridView values to DataTable

| December 11, 2010 | 0 Comments

Sometime you need GridView’s values to DataTable for programming requirement. So this article tries to help you achieve that objective. We have simply declared DataTable and added columns of matching types to it(matching with columns in sql database). And then used foreach loop for each GridViewRow in GridView’s rows to add GridView row to DataTable’s […]

Continue Reading

Disable default button click in Asp.Net

| December 8, 2010 | 0 Comments

If your Asp.Net page is having Button control on it & if user press Enter key of keyboard then default’s button (first button on form declared or if developer set attribute defaultButton of form) click event is fired. This is the default behavior of button click in Asp.Net page. However in some of the browsers […]

Continue Reading

Access page control from class file in App_Code

| October 27, 2010 | 6 Comments

Simple tasks seems hard while development. I too faced the issue of accessing page controls from class files in App_Code folder. But since each and everything is possible in development. This one appears impossible first but now the matter has been resolved. Check it out how… Scenario You are having simple .aspx page with two […]

Continue Reading

Access Page control from User control

| October 23, 2010 | 0 Comments

Many times during programming we need to access .aspx page’s control from our user control. This article just tries to satiate query about how to access page control from user control in Asp.Net. Scenario Suppose you are having user control User.ascx and this user control contains single button with ID btnShow. And you are having […]

Continue Reading