Contents tagged with ASP.Net
-
How to create event for a user control
My article that will explain how to create event for a user control can be found here http://tinyurl.com/yhwd9xw
-
Error: Inconsistent accessibility: return type
In one of my projects I found this error Inconsistent accessibility: return type...................... is less accessible than method ......... It was a quite strange error for me as I have not seen the same in past. My classes were defined as:
-
Schema compatiblity error in configuring SqlMembershipProvider
I was working with one of my projects in which I had to use Membership/Role providers. I run the wizard using aspnet_regsql.exe to create the structure of SqlMembershipProvider. I added few roles and users using ASP.Net Configuration. Everything worked fine tested my application multiple times and it worked very well. Then I generated the script from my local database for SqlMembershipProvider since we can not run the utility aspnet_regsql.exe on our test server. Everything went well so far. All the tables, views, stored procedures, roles were created and permissions were granted. Then when I try to run my application from the test server it gave me following error.
-
Authentication using web.config Credentials
In one of my projects I have been asked to implement temporary security on sepcific module for internal usage and it was also suggested that I will not be putting more efforts on the same. First thing came in my mind was Membership/RoleProvider, but as I advised my planned solution they surprised me with the decision that I will not be using these providers and I should be using something more simpler and I was like Duh!!!
-
Regex to find URL within text and make them as link
Some time back on the form somebody was looking for some help in searching URL within text and make those URLs as link. Me and that guy tried various regex but the one that worked out I thought to put it on the blog so that it can help me and others later. Regex itself is:
-
Javascript Enable/Disable Dropdown in Gridview using Checkboxes
If you come up with some requirement in which you have a Checkbox and a DropDownList in GridView control and you are requried to enable disable the DropDownList on the basis of the CheckBox value you can use following Code.
-
Reading file content from different webserver using HttpWebRequest
I was replying to one of the post on the ASP.Net forum in which the requirement was like reading txt file contents from different webservers. When he got satisfied with the solution then I thought to put the piece of code in my blog as well for others and my future reference.
-
Passing value from popup window to parent form's TextBox
Once again seen lot of questions on the forum related to passing values from popup window to the parent form textbox. Specially when they have some GridView type control in the popup. In the following example I will be using two forms, parent form will be parent.aspx and popup will be popup.aspx. Also note that my parent.aspx form is derived from some MasterPage. Code is provided both in VB.Net and C#.Net.
-
Javascript to display time on Web page
Javascript to display continuous time on the Web page. By continuous it means that it will be displayed second by second.
-
Check/Uncheck checkboxes in GridView using javascript
----------------------------------------- .cs file if C#.Net is the language ------------------------------------------
C#.Net Code