Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:594254
More Search Options
RSS Available
Matching Posts
Re: SQL query with string parameters containing quotes
You can either do a replace to double up all single quote chars so the SQL works as expected... e.g. strMyString.Replace("'", "''") or you could use a SqlCommand object that will handle these strings for you. Here's a nice example for you. These techniques will also help protect you against SQL injection attacks ;)
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
gavinharriss
on 10/11/2009
Re: SQL query with string parameters containing quotes
Good call Mike... I figured the replace should prevent issue, but examples in link given show I was wrong!
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
gavinharriss
on 10/11/2009
Re: DataSet Caching is not caching the actual data
For anyone who stumbles upon this thread with a similar issue, the soution to my case can be found at http://forums.asp.net/p/1182258/2007210.aspx
Posted to
State Management
(Forum)
by
gavinharriss
on 7/15/2009
Re: Url escaped chars not decoded properly
Seems I'm not alone in encountering this prob... http://forums.asp.net/p/1442127/3268857.aspx unfortunately there was no real solution given :(
Posted to
Web Forms
(Forum)
by
gavinharriss
on 7/11/2009
Re: Url escaped chars not decoded properly
Found the solution here: http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/3bcdbf7d10014ebd The trick is to use encodeURIComponent instead of escape in the JavaScript! :)
Posted to
Web Forms
(Forum)
by
gavinharriss
on 7/11/2009
Re: help to sole escape() + HttpUtility.UrlDecode problem
A bit late, but handy for anyone else who stumbles across this thread looking for the solution... The trick is to use encodeURIComponent instead of escape in the JavaScript! :)
Posted to
Client Side Web Development
(Forum)
by
gavinharriss
on 7/11/2009
Url escaped chars not decoded properly
Hi, I have some JavaScript that generates code people can paste in to their own websites and takes various user inputs. One input is text which I escape for url usage via JavaScript. For example " Cortijo Marañón " becomes " Cortijo%20Mara%F1%F3n ". However when I access this query string server side via Request.QueryString I end up with " Cortijo Mara��n ". Anyone know how I can get around this issue? Cheers, Gavin
Posted to
Web Forms
(Forum)
by
gavinharriss
on 7/4/2009
Filed under: UrlDecode, Escape character
Re: Url escaped chars not decoded properly
Hi Ram, you've misunderstood my post... The problem is not the spaces - these are getting encoded / decoded without issue as you can see in the example I gave. The problem is with the ñó chars which are encoded client side by JavaScript to %F1%F3 which ASP.NET decodes server side to �� . They are not getting decoded correctly!
Posted to
Web Forms
(Forum)
by
gavinharriss
on 7/4/2009
Re: Url escaped chars not decoded properly
For the real-life example check out this url: http://www.yougodo.com/en/FullMap.aspx?lat=36.80241249444501&lng=-4.325523376464844&z=9&i=true&cm=2&ss=true&trgt=_blank&p=true&pc=FFFFFF&pd=Cortijo%20Mara%F1%F3n Click the white map pin with the X and you'll see the problem caused by the bad decoding.
Posted to
Web Forms
(Forum)
by
gavinharriss
on 7/4/2009
Re: Ajax CalendarExtender
Sounds like you'll just have to play around with your CSS until it does what you want I'm afraid.
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
gavinharriss
on 6/28/2009
Page 1 of 30 (295 items) 1
2
3
4
5
Next >
...
Last »
ASP.NET:
Microsoft AJAX CDN – Now with SSL Support
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
ASP.NET:
PDC09 Talk: Building Amazing Business Applications with Silverlight 4, RIA Services and Visual Studio 2010 – Now in Visual Basic!!
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online