Loading ...
TrustedBlogs
home
browse
articles
blogs
events
forums
jobs
people
wiki
Login
Register
×
Choose a location:
home
articles
forums
blogs
jobs
events
wiki
people
home
»
blogs
»
Raghav Khunger
blogs
most recent
Most viewed
Highest rated
Most commented
JavaScript: Smiley replace with regex
If you want to replace smielys with custom images this blog will help you. Let's say ypu have the following string hello :) :( and you want that to be converted to "hello happy sad", basically you are parsing smileys and are replacing with your custom texst you can do the same via this piece of code: var text = "hello :) :("
Raghav Khunger
· 14 hours ago ·
0
·
13
javascript
0
/5
Avg:
0
/5: (
0
votes)
ASP.NET- MP4 - HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration
Fix: HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
Raghav Khunger
· 14 hours ago ·
0
·
25
asp.net
iis7
0
/5
Avg:
0
/5: (
0
votes)
ASP.NET: Redirect loop coming for a file though the file is present at the target path
I was facing a weird issue today where I one of my css files were not opening and was thoughing a redirect loop: I was trying to access the following URL : "http://mydomain.com/Assets/FontAwesome/css/font-awesome.css" but it was throwing me to: "http://mydomain.com/login.aspx?ReturnUrl=%2fAssets%2fFontAwesome%2fcss%2ffont-awesome.css
Raghav Khunger
· 6 days ago ·
0
·
57
asp.net
0
/5
Avg:
0
/5: (
0
votes)
ASP.NET: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive
I did Windows Update today and noticed my sites started getting "Unrecognized attribute 'targetFramework'.Note that attribute names are case-sensitive" on running them . I double checked the target framework for the apps in their app pools and it was correct i.e 4.0 . I got my issue fixed only after re-registering ASP.Net version
Raghav Khunger
· 6 days ago ·
0
·
89
iis7
asp.net-4
0
/5
Avg:
0
/5: (
0
votes)
KB2600088 does not apply, or is blocked by another condition on your computer.
I was installing the following hotifx http://support.microsoft.com/kb/2600088/en-us today and started getting the following message while installing it: KB2600088 does not apply, or is blocked by another condition on your computer. Cause : Th cause for my case for this issue was that .NET 4.5 framework was installed on my machine. Solution : Uninst
Raghav Khunger
· 7 days ago ·
0
·
87
visual-studio-2010
0
/5
Avg:
0
/5: (
0
votes)
Forms authentication not working in IE10
If you are experiencing this issue where Forms authentication is not working in IE10 this blog will help you. Microsoft has rleaseed a hotfix for it http://support.microsoft.com/kb/2600088/en-us After applying it on my machine Forms authentication started working in IE10
Raghav Khunger
· 7 days ago ·
1
·
69
0
/5
Avg:
0
/5: (
0
votes)
Visual Studio: Shortcut key to turn the text to UpperCase
I was working with constants variables in one of the files in my application and noticed the variables names was in pascal case instead of all letters in UpperCase. I pressed CTRL + SHIT +U and my work was done.
Raghav Khunger
· 13 days ago ·
0
·
106
visual-studio
visual-studio-2010
0
/5
Avg:
0
/5: (
0
votes)
SQL Server: Restore database via command
Restoring database via SSMS via GUI produces some time lag in doing that. If you want to do the same restore stuff via command it can be an instant process. You can use the following query to restore your database from a backup: RESTORE DATABASE <YourDBName> FROM DISK='<Database backup physical location>' WITH REPLACE
Raghav Khunger
· 18 days ago ·
0
·
72
Sql
sql-server
restore
0
/5
Avg:
0
/5: (
0
votes)
Kill all processes by database name instead of spid
How often you have to kill processes of a database and run "sp_who2" command and then "kill <spid>" to kill each processes? This is a tedious task. I have written a Stored procedure which you can run in your "master" database and can use it to kill all processes of a database. You need to supply database name onl
Raghav Khunger
· 18 days ago ·
0
·
141
Sql
sql-server
kill-process
sp_who2
0
/5
Avg:
0
/5: (
0
votes)
Disable third party plugins in Visual Studio
Using devenv.exe /SafeMode allows you to run any version of visual studio (devenv.exe) in SafeMode with 3rd party plugins disabled.
Raghav Khunger
· 27 days ago ·
0
·
139
visual-studio
visual-studio-2010
0
/5
Avg:
0
/5: (
0
votes)
"ipconfig /flushdns" not working. Still coming old ip.
We shifted one of our sites to new server today. While accessing the new site (which was running on new IP now) I started getting 404 error. I did the ping for that site and it was still whoing the old ip. I tried "ipconfig /flushdns" and it didn't work. I was still seeing the same response.
Raghav Khunger
· 5/19/2013 ·
0
·
176
ipconfig-flushdns
0
/5
Avg:
0
/5: (
0
votes)
Adding line breaks in tooltip text
Today, I was trying to add line breaks in one of the anchors on my page, I tried various solutions like adding "<br/>" or "\n" to my title text but none of these solutions was working consistent across different browsers. Then I tried the line separator as "
" and it worked.
Raghav Khunger
· 5/8/2013 ·
0
·
1955
HTML
tooltip
0
/5
Avg:
0
/5: (
0
votes)
Detect the http or https scheme in ASP.NET in server side code
To detect the http or https scheme in ASP.NET in server side code we can use Uri.Scheme property. Below is the sample code to do the same: string url = "https://www.yourwebsite.com/"; Uri uri = new Uri(url); string scheme = uri.Scheme; Response.Write(scheme); The output of above code is "https"
Raghav Khunger
· 5/6/2013 ·
0
·
305
asp.net
0
/5
Avg:
0
/5: (
0
votes)
Navigation error. The remote host name was not found Details
We were getting the following error while trying to access a url from server side code. It was working without any issue locally but after deploying it to remote server we started getting the error: "Navigation error. The remote host name was not found Details" Solution: The solution for this issue was to enter the domain of that url in h
Raghav Khunger
· 5/3/2013 ·
0
·
200
0
/5
Avg:
0
/5: (
0
votes)
ReSharper: Change CLR types to built-in C# type aliases
If you are using ReSharper and want to change CLR types to built-in C# type aliases (i.e. Int32 to int, String to string etc.) in an existing file, this blog will help you. I am writing the steps which will help you to change CLR types to built-in C# type aliases
Raghav Khunger
· 4/27/2013 ·
0
·
331
Resharper
resharper7
stylecop
0
/5
Avg:
0
/5: (
0
votes)
ReSharper: Sort properties alphabetically in a file
If you are using ReSharper and want to sort your properties in an existing file, this blog will help you. I am writing the steps which will help you to sort the properties alphabetically
Raghav Khunger
· 4/27/2013 ·
0
·
271
Resharper
resharper7
sort-properties
0
/5
Avg:
0
/5: (
0
votes)
Search a text in all the stored procedures
Today I was having a requirement where I need to search a text in all the stored procedures in my da
Raghav Khunger
· 4/25/2013 ·
2
·
3182
Sql
Search a text in all the stored procedure
0
/5
Avg:
0
/5: (
0
votes)
The tail of the log for the database "XXXX" has not been backed up. Use BACKUP LOG WITH NORECOVERY to backup the log if it contains work you do not want to lose
While resotring one of my db backup I was getting the following error: TITLE: Microsoft SQL Server Management Studio ------------------------------ Restore failed for Server 'WIN-LGFVOMLC8S4'. (Microsoft.SqlServer.SmoExtended) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1750.9+((dac_in
Raghav Khunger
· 4/25/2013 ·
0
·
482
restore
ssms
0
/5
Avg:
0
/5: (
0
votes)
Excuses by lazy programmers
I would say excuses by lazy, having no goal kind of programmers: It is a hardware problem. RAM must be increased to make the program fast. My code has been edited by someone. I have to find out who did that. Virus has corrupted the application. It worked yesterday. This was new to me, no big deal if bug appeared. Hmm.. (and deep thinking forever) I
Raghav Khunger
· 4/24/2013 ·
0
·
471
0
/5
Avg:
0
/5: (
0
votes)
Login prompt keeps on coming in Firefox for Windows Authentication in Windows Server 2008 R2
I was facing a weird issue where I was putting a valid set of credentials in login prompt of Firefox and was getting login prompt again and again i.e it was not accepting the credntials. I was using Windows Server 2008 R2. Solution : I am writing the settings which I turned on which was set to off in my Firefox. I opened the following URL in the Fi
Raghav Khunger
· 4/24/2013 ·
0
·
295
windows-authentication
firefox
0
/5
Avg:
0
/5: (
0
votes)
Avoid windows authentication login prompt in IE
If you are using Windows Authentication and want to avoid the login prompt which comes when you try to access the application this blog will help you. The solution I am writing below is only for IE. In order to avoid that and let IE use the same credentials by which you are logged in into the Windows. Go to Tools -> Internet Option ->
Raghav Khunger
· 4/19/2013 ·
0
·
324
asp.net
c#
iis7
windows-authentication
0
/5
Avg:
0
/5: (
0
votes)
Start Visual Studio with a solution|project opened at Windows start
If you want to save few clicks to start Visual Studio with a particular project|solution opened at Windows Start, this blog will help you. Below are the steps which will help you to do the same: Copy the Visual Studio shortcut. Select the "StartUp" folder from "AllPrograms" Right click it and select "Open all users" op
Raghav Khunger
· 4/16/2013 ·
0
·
264
visual-studio
windows-start
0
/5
Avg:
0
/5: (
0
votes)
Find the missing properties from a class by comparing with other class
Lets say we have two classes Person1 and Person2. Below is the code for it: public class Person1 { public int ID { get; set; } public string Name { get; set; } public string FirstName { get; set; } public string Age { get; set; } } public class Person2 { public string Name { get; set; } public string FirstName { get; set; } } Our goal is to find ou
Raghav Khunger
· 4/15/2013 ·
0
·
203
.net
c#
0
/5
Avg:
0
/5: (
0
votes)
Start SSMS with a instance connected and logged in with a user at Windows Start
Whenever I start my Windows. I open SSMS, select server, select user and database to connect to database. This process I have to do every time when Windows is restarted. I decided to make Windows do the same work for me when it is restarted. Below are the steps which will help you to do the same: Copy the SSMS shortcut. Select the "StartUp&
Raghav Khunger
· 4/14/2013 ·
0
·
263
sql-server
0
/5
Avg:
0
/5: (
0
votes)
How to delete server entries (server, user names) which come in SQL Server Management Studio login screen
On my machine I had so many unwanted entries (server names, usernames) coming in my SSMS login screen. I wanted to delete them but there was no simple way to delete it. After spending few minutes to get the solution for this I came across the following resource Sql Server 2008 MRU Updater . It is a program which is simple (and somewhat ugly) UI tha
Raghav Khunger
· 4/14/2013 ·
0
·
325
0
/5
Avg:
0
/5: (
0
votes)
Page 1 of 21 (513 items)
« Previous
1
2
3
4
5
6
7
8
9
10
11
Next »
Go to page:
[Go]
Filter blogs
Tags
asp.net
c%23
Sql
jquery
javascript
iis7
regex
wcf
.net
.net-4
sql-server
IIS
SQL+Server
textbox
visual-studio
visual-studio-2010
regular+expression
HTML
form-authentication
Count
Category
--- all categories
Microsoft.NET
Project Management
Publish date
Top Producers
Raghav Khunger
513 Blogs
Vivek Thakur
134 Blogs
Hajan Selmani
79 Blogs
Vijendra Shakya
46 Blogs
mohit kumar
40 Blogs
Vinay Gupta
22 Blogs
Tim Eisenhauer
20 Blogs
Sumit Arora
18 Blogs
Ajit Gupta
16 Blogs
Shaitender Singh
14 Blogs
Blog Archives
June 2013 (7)
May 2013 (7)
April 2013 (13)
March 2013 (2)
February 2013 (13)
January 2013 (6)
December 2012 (4)
November 2012 (6)
October 2012 (13)
September 2012 (6)
August 2012 (17)
July 2012 (23)
May 2012 (5)
April 2012 (1)
February 2012 (5)
January 2012 (1)
December 2011 (2)
November 2011 (4)
October 2011 (1)
September 2011 (5)
August 2011 (6)
July 2011 (11)
June 2011 (11)
May 2011 (4)
April 2011 (5)
March 2011 (1)
February 2011 (13)
January 2011 (9)
December 2010 (11)
November 2010 (16)
October 2010 (15)
September 2010 (15)
August 2010 (9)
July 2010 (13)
June 2010 (19)
May 2010 (15)
April 2010 (5)
March 2010 (2)
December 2009 (19)
November 2009 (18)
October 2009 (13)
September 2009 (11)
August 2009 (32)
July 2009 (12)
June 2009 (41)
May 2009 (34)
April 2009 (12)
Quick Vote
What kind of email newsletter would you prefer to receive from CodeAsp.Net?
18
A monthly digest
A weekly digest
A daily digest
All of the above
None of the above
×
Loading ...