Faraz Shah Khan

MCP, MCAD.Net, MCSD.Net, MCTS-Win, MCTS-Web, MCPD-Web

Browse by Tags

All Tags » .Net 2.0 (RSS)
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...
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...
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...
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. Following is the code that will give the idea of how to achieve this task. Controls used 1. TextBox...
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. <html> <body> <SCRIPT LANGUAGE="JavaScript"> function bookmark(url, description...
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...
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...
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. <script type="text/javascript"> function ShowTime() { var dt = new Date(); document.getElementById("<%= TextBox1.ClientID...
Check/Uncheck checkboxes in GridView using javascript
Seen a lot of questions regarding how to check/uncheck CheckBoxes within a GridView control using JavaScript. So I thought to put it on my blog for quick reference for others and for myself. Following is the code: ------------------------------------...
More Posts