This content has been marked as final. Show 5 replies
"Muthu_cool" <email@example.com> wrote in message
> I am developing the application for which i used flex as my UI and
> is my code behind using web service. I need to know how to access the db.
> code for it...Help me out.
Check out 4guysfromrolla.com.
Flex doesn't do database access directly; you'll need to use your ASP.NET app to fetch the data. Here's an example with code samples in ASP.NET that does webservice for Flex: http://viconflex.blogspot.com/2006/10/aspnet-c-data-webservice-for-flex.html
You can use HTTPService, WebService, or RemoteObject to make the db request, but something on the server, such as php script, ColdFusion, Java, ASP .NET, etc. must perform the actual DB access and return the result to Flex.
HTTPService is probably easiest, result in the ResultEvent result property.
Thanks for your reply. I am using WebService in dot net how to connect with flex..
So you'll need to set something up to actually connect to the database and then use WebService to call that. Maybe see curious_Lee link.