Faraz Shah Khan
MCP, MCAD.Net, MCSD.Net, MCTS-Win, MCTS-Web, MCPD-Web
-
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!!!
-
Another browser in the row (Google Chrome)
Today I just found that my friend Google launched its web browser named Chrome which is suppose to be availble for download on 2nd Sep 2008 from this link Google Chrome, but unfortunately for some unknown good reason I am unable to download this guy, as whenever I click the link it takes me to Google home page. However I felt a little better when I successfully opened the ebook of Chrome after tearing off my hair because of the download link.
-
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:
-
File Upload control AJAX effect
Since long I was wondering on how I will be able to use FileUpload control inside UpdatePanel and I am sure there will be lot of other people who were expecting the same to be working. I found an intersting video article by Joe Stagner in which he described how to use the FileUpload control inside iframe to give some AJAX effect. You can find this video here. http://www.asp.net/learn/videos/video-254.aspx
-
Mutually exclusive checkbox in GridView using Javascript
I response to one of my blog post entry I received few queries regarding mutually exclusive checkbox within GirdView, meaning if there are two checkboxes in a row only one can be selected at a time. If checkbox1 is selected and you select checkbox2 then checkbox1 should be deselected. Following javascript and html can be used.
-
Login through cookies
Different forums are filled with the questions regarding how to manually implement cookies for login or in other words how to implement "Remeber me" option.
-
Javascript to add bookmark option on your website
If you want to add an option that users can click a button on your website and it will open up bookmark option. Following is the code that will perform this task.