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:666018
More Search Options
RSS Available
Matching Posts
Re: Best practices / classes to use?
public string test( string connectionString, string Query) { string ret = "" ; try { using (SqlConnection conn = new SqlConnection(connectionString)) { using (SqlCommand cmd = new SqlCommand(Query, conn)) { XmlTextReader reader = cmd.ExecuteXmlReader(); reader.Read(); while (reader.ReadState != ReadState.EndOfFile) { ret += reader.ReadOuterXml(); } } } } catch ( Exception ex) { throw ; } return ret; }
Posted to
XML Web Services
(Forum)
by
quasa
on 2/20/2007
Re: Best practices / classes to use?
As you should be returning the xml as fast as you can, I suggest using a fast forward only reader. Returning the xml as a string sounds perfect to me
Posted to
XML Web Services
(Forum)
by
quasa
on 2/20/2007
Re: Asynchronous Begin<methodname>
Follow up, I used the wsdl command-line util to create the proxy, and that way I got my proxy class with the BeginGetCompanyName and EndGetCompanyName functions. my question however remains; Why does creating the web reference in my visual studio project, not create the exact same proxy...what am I doing wrong, any help, please ? following code is working static void Main() { StockLookupService lookup = new StockLookupService(); lookup.GetCompanyNameCompleted += new GetCompanyNameCompletedEventHandler
Posted to
XML Web Services
(Forum)
by
quasa
on 2/20/2007
Re: AsyncTask in web service
take a peek here: http://msdn.microsoft.com/msdnmag/issues/06/07/ExtremeASPNET/default.aspx A webservice proxy always implements a synchronous method and an asynchrouns method for you to call the webmethod. I guess the Async=trye property of a webpage just tells the framework that asynchrounous requests will occurr when processing the page. Anyway, I hope the link will give you more insight.
Posted to
XML Web Services
(Forum)
by
quasa
on 2/19/2007
Asynchronous Begin<methodname>
I created a sample stock webservice with a webmethod GetCompanyName(string symbol ) As a client I reference the asmx and I'm able to call the GetCompanyNameAsyn function, and setting the completed event handler However I should also be able to use the BeginGetCompanyName and EndGetCompanyName functions. But there are no such functions (BeginGetCompanyName, EndGetCompanyName) generated by the proxy? Is there a simple explaination for this?
Posted to
XML Web Services
(Forum)
by
quasa
on 2/19/2007
Re: How to do a language switch in a master page.
LastCultureName prop needs following small change, othewise first time "null" gets returned, which throws an exception at the CurrentCulture setting.: public string LastCultureName { get { string lastCultureName = ( string )Session[ "_lastCulture" ]; if (lastCultureName == null ){ Session[ "_lastCulture" ] = Thread.CurrentThread.CurrentCulture.Name; lastCultureName = Thread.CurrentThread.CurrentCulture.Name; } return lastCultureName; } set { Session[ "_lastCulture" ] = value ; } }
Posted to
FAQ - Frequently Asked Questions
(Forum)
by
quasa
on 6/28/2006
Page 1 of 1 (6 items)
TechNet Edge:
Forefront Secure Endpoint Demo and Interview
ASP.NET:
Resizing images from the server using WPF/WIC instead of GDI+
Silverlight:
Deploying your Silverlight and WCF RIA Services application
Channel 9:
Juan Chen and Nikhil Swamy: FINE, a Compiler for End-to-End Security Verification
Channel 10:
Get the Outlook Hotmail Connector Beta
Channel 10:
MSN to Launch New Lifestyle Site from Wonderwall Creator
Channel 10:
Behind the Windows 7 Startup Animation
Channel 9:
Reactive Extensions API in depth: CombineLatest
Channel 9:
C9 Lectures: Dr. Graham Hutton - Functional Programming Fundamentals Chapter 11 of 13
WindowsClient:
New WPF Showcase: Scrum Sprint Monitor
WindowsClient:
WPF/XAML helping VS2010 Extensibility
WindowsClient:
HTTP 403.9 with ADO.NET Data Services
WindowsClient:
xml syntax highlighting in Silverlight
Channel 9:
Channel 9 Emerges in China
WindowsClient:
Overlaying Icons on the Windows 7 Taskbar with WPF 4
Channel 9:
The Outlook calendar starts in 1601 - But Why?
ASP.NET:
Bytes by MSDN: Brad Abrams Interview with Billy Hollis: Silverlight 4, RIA Services and VS2010
Mix Online:
Pictures or it Didn't Happen
Channel 9:
Reactive Extensions API in depth: even more Zip
TechNet Edge:
SDL For Agile
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online