donkaiser's Q&A profile
.NET Development Handlers
has any one of you guys out there used utils.rendercontrolasstring(), if so; would you please indicate from which library is it found snipet: DataGrid grid = new DataGrid (); grid.DataSource = dt; grid.DataBind(); string html = utils.rendercontrolasstring(grid) Found on an Asian website (Google rulez): static class Utils { public static string RenderControlAsString(Control ctl) { StringWriter sw = new StringWriter(); HtmlTextWriter writer = new HtmlTextWriter(sw); ctl.RenderControl(writer); return sw.ToString(); } } ...Show All
Windows Forms Connecting to a Web Service
Our Client Application needs to connect to a webservice, which is in the same solution, different project though. I can do it perfectly on my box, and it works, however, it's defauled to "localhost". All of our customers have their own sub-domain for their site. Example: Customer1.OurSite.net Customer2.OurSite.Net ... Customer532.ourSite.net And so on. So... When they first run this application, I ask them to input their website address, which I save to an XML file. This way that client will be set to lock-onto that website. How do I tell my application to point the webservice to Customer1.ourSite.Net instead of localhost Theoretically I want to change the settings in that XML file 10 times in 10 minutes and have the application hit each ...Show All
Visual Studio Tools for Office Deploying Outlook Add-In (after following tutorial Part 2) - fixed!
First off, it's worth saying that VSTO 2005 is excellent both as a product and as supported by all of the great articles and samples. Office has become a very important Hosting environment for enterprise applications and VSTO (and the community) is exactly what we need. I just finally got my Outlook Add-In to work with one-click deployment, but I needed to customize the SetSecurity project referenced in the Part 2 Walk-thru. I added a "trustTargetDir" parameter and when "trustTargetDir" is true, then the AddSecurityPolicy method uses "FullTrust" o the targetDir. In my case, I'm using Redemption.dll because I need to manipulate MAPI Extended Headers, and even though I set the Interop.Redemption.dll als ...Show All
Smart Device Development How t use SmsSetMessageNotification.
Hello - Could any one help me how to use SmsSetMessageNotification(...) to invoke my application to parse the SMS message. Thanks a lot, Ramana You cannot use it, only one registration at a time is supported adn PocketPC/Smartphone already uses such registration internally. The way to get notified on incoming SMS and intercept them is to use: WM5, Managed code: Microsoft.WindowsMobile.PocketOutlook.MessageInterception namespace WM2003 Managed code: http://www.inthehand.com/WindowsMobile.aspx WM2003 and WM5, Native code (C++): Implement IMapiRule interface (see Samples\CPP\Win32\Mapirule sample) ...Show All
Visual Studio Team System [BIS.ReadIdentities] Could not read the following identities : System.ArgumentException: Value cannot be null.
What should i do Windows Sharepoint Services is up All Team System Webservices up Permissions are granted. On "add new team project" i get this. Error TF30170: The plugin Microsoft.ProjectCreationWizard.WorkItemTracking failed during task WITs from group WorkItemTracking. Explanation Plugin error text: “TF51613: [BIS.ReadIdentities] Could not read the following identities : System.ArgumentException: Value cannot be null. at Microsoft.TeamFoundation.Proxy.GroupSecurityService.ReadIdentity(SearchFactor factor, String factorValue, QueryMembership queryMembership) at Microsoft.TeamFoundation.Proxy.GroupSecurityService.ReadIdentities(SearchFactor factor, String[] factorValue, QueryMembership queryMembership) at Mic ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microsoft's future policy for redistributing Xbox 360 games?
Before I commit serious time and effort to the XNA framework, I'm wondering if anyone knows Microsoft plans for allowing us to redistribute our games for Xbox360. I'm an academic. Let's say I want to make some educational/simulation games that my students can use on the Xbox 360. Will I be able to provide them with a CD or download link in XBox live As far as I can tell so far, the only games I can write are for myself. There is no announced policy on distribution through Xbox live, so you probably shouldn't count on the availability of such a mechanism. In fact, I'd go so far to say that if you're going to be distributing the software to students (and running on school machines I'd imagine) you might ...Show All
SQL Server Remote connection stopped working
My new and my old applications used to work remotely without problems. Using VS 2003. Both could connect using the server name or ip address. Now neither one works now, meaning they can't connect. Message is that the server doesn't exist. I can only connect using the server name now, NOT the ip address. I even tried connection with fire wall off. Please follow the instruction at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=362498&SiteID=1 and give us more details if it does not solve your problem. ...Show All
Windows Live Developer Forums MSN Messeger
Can I make an application using Visual Basic 2005 that can control some functions in MSN messeger 7.5 If yes can you send me the code. I think that I need some dlls to make it happen. Thanks Glenn Zarb When I am typing Dim Msgr As New MsgrObjectClass() a blue line appears under MsgrObjectClass and it says that this type is not defined. Do I have to do something before this code like a dll or something else Thanks ...Show All
Windows Forms Press control-D keys will insert a date into a textbox.
I have a comments textbox. I want to have control D( Ctrl-D) keys being pressed and it will insert a date in the textbox. Sound simply but I look around the web, still didn't know how to do it. Yes. This is what I am looking for. However, now I want to keep the postion of my editing bar to the end. Is that possible Thanks. ...Show All
SQL Server BULK INSERT from a table
Hi there. I have a table that contains comma delimited text, and I am trying to convert this into another table eg my target table looks like Produce|Price|QuantityPerPrice and my input table contains strings such as "apples","7.5","10" "pears","10","8" "oranges","8","6" Does anyone have any ideas on how to do this I am after a solution that does them all at once: I am currently using charindex() to find each column, one at a time, but given the speed of BULK INSERT I would much rather do it as a table. The one solution that I don't want to resort to is to export the table with delimited strings to a data file, then BUL ...Show All
Audio and Video Development Release notes for MF in RC1
I know there has not been much change in the SDK between 5472 and 5600. But it would still be nice to know what has been fixed, what has changed, etc. Congrats on releasing RC1! Thanks! Marc Hi Marc, You're right that the SDK itself hasn't had significant churn between 5472 and 5600. As for bugs that have been fixed, etc, well... a lot I don't have a laundry list handy of everything that has been fixed, but if you have any specific questions about Media Foundation functionality you thought was broken in 5472 that you wanted to know whether it's been fixed, I can try to answer. P.S. All other things being equal, I'd definitely recommend moving on to 5600. It's nice. ...Show All
.NET Development recieving
Hi im new on VB.Net . Im workin on a projecet that contains a rss Reader/Reciever and a irc client. I ' ve complated the reader but cant complate irc client I was able to connect to irc and send a message to a nick or channel but i couldnt recieve messages, status information (like mirc :D) or something from server i dunno how to do pleaze send some code examples or give advise here to help me on my project the comic one is that i dunno how to recieve informations from irc server. Im using istemci.Client.Send(getbyte( "NICK vb_ot" & vbCrLf)) commands like that to send information toserver but i dunno how to recieve informastions from the server i tried the istemci.Client.Rece ...Show All
SQL Server Query the results of another query
I'm new to the database world - I know what I want to do, but not sure if or how to do it... Is there a way to run a query and then build on it to query the results of that query My example is as follows: Query the number of distinct machines by ID in Week 1 = Results Query the distinct number of machines by ID in Week 2 minus the Results from Week 1 - NOT EXISTS SELECT pub_name FROM publishers WHERE NOT EXISTS (SELECT * FROM titles WHERE pub_id = publishers.pub_id AND type = 'business') - Use NOT IN SELECT pub_name FROM publishers WHERE pub_id NOT IN (SELECT pub_id FROM titles WHERE type = 'business') - Perform a LEFT OUTER JOIN and check for a NULL condition SELECT pub_nam ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mentor Needed
Hey I was wondering if anyone would be able to help me make a game with XNA I want to make just a simple little top down move car around game. But I can't figure out how to start (I did the tutorials) So I was hoping one of you fine gentlmen and women would be able to help me on msn or aim or somthing That way its live instead of continually posting back and forth on the forums. Thanks Very Much James Either make some posts it here or collect your conversations and make that exchange a tutorial as you guys work through the concepts he needs to learn to get his game done. Thanks for thinking of the community like that, much appreciated. ...Show All
Visual Basic extract portion of string
I know that I have seen this before, however I have had no need to program it until now, but suppose that I have a string passed to a parameter such as "16.00,20.00,0.00". I need a way to extract the 'second' value (which would be 20.00) and assign it to a variable. The reason that this is a string is that no computations will be done on the integers and sometimes the value can be alphanumeric. Thanks for the help. The string is a field from a larger dataset being read from SQL. I just need to know how to get that 'second' value. I can try this split. That might be what I need. ...Show All
