l_steve_l's Q&A profile
Visual Studio MS RS Report Viewer and "cookieless" session-state
Hello there, I tried to implement the ReportViewer (local-mode) in our WebApp. The ReportViewer never rendered the report and I found out, the problem is the cookieless="UseUri" in web.config. Ist there any way to use the ReportViewer using the cookieless-state Thanks, Tobias The latest information is available here: http://msdn.microsoft.com/vstudio/support/servicing/default.aspx The beta is now available. ...Show All
Windows Forms How Do I get destination URL for NewWindow Event in C# Web Browser
I have a client application in C#, .net 2.0, which uses the built in web browser control. I have implemented the NewWindow event in order to find out when the user launches a new window via window.open() in HTML/JS code. 1) In my event handler methof, I would like to check the destination URL before deciding whether to cancel (e.cancel) the action or allow it to go on. But I have not been able t find the destination URL anywhere 2) I have noticed that the Session is not handed over to the new window, which is causing me a lot of headaches. For popups that need the session, I would cancel the new window and instead start my own browser window, with the same destination URL. (New windows using WebBrowser seem to inherit the ...Show All
.NET Development SMTP setting the Return-Path
Hello How can i set the Return-Path of my MailMessage, i need the emails to be sent from sales@mydomain.co.uk however i need them to be returned to bounced@mydomain.co.uk if the emails are bounced back I have tried: email.Headers.Add( "Return-Path" , " bounced@mydomain.co.uk " ); email.Headers.Add( "Errors-To" , "< bounced@mydomain.co.uk >" ); However the Return-Path never seems to change from the value in the From property. I have also tried this in reverse so that the returnpath is correct and i try changing the From feild in the header. From.EmailAddress = bounced@mydomain.co.uk ; email.Headers.Add( "From" , " sales@mydomain.co.uk " ); Please any help there must be a way to do this. Thanks Lee ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mesh.TextFromFont
I've used the following function: Mesh.TextFromFont(...), so now i have a mesh containing my text. I want to set its size or atleast get it somehow. How am i doing so How about getting the bounding box of the mesh to determine its size, like this: Vector3 min = new Vector3( ); Vector3 max = new Vector3( ); using ( GraphicsStream vertexData = mesh.LockVertexBuffer(LockFlags.None) ) { Geometry.ComputeBoundingBox(vertexData, mesh.NumberVertices, mesh.VertexFormat, out min, out max); mesh.UnlockVertexBuffer( ); } Then if you don't like the size it's at now, you can scale it while rendering with your World Matrix. Hope that helps. ...Show All
Visual Studio Announcing Himalia, a DSL for user interfaces
Hi, I want to announce the first beta release of Himalia , a Domain Specific Language for service-oriented user interfaces. The goal of this release is to show everybody the Himalia point of view . More info: http://www.himalia.net Thanks to DSL team for helping us in the development with this great tool. Thanks for your words Gokhan. Now we are documenting and making new examples, to make you able to play with it. Also, we will add audio to the videos soon :) Keep in touch. ...Show All
SQL Server What is the best algorithm to use?
I am new to DM and I am not sure which algorithm would be best to use. I am trying to build a custom comparitor application that companies can use to compare themselves against other companies based on certain pieces of information. I need to group a company with 11 other companies based on 6 attributes. I need the ability to apply weightings to each of the 6 attributes and have those taken into consideration when determining which 10 other companies each company is grouped with. Each group must contain 11 members, the company for the user logged in and 10 other companies that it will be compared against. At first I thought that clustering would be a good fit for this but I can not see a way to mandate that each cluster contain exac ...Show All
Visual Studio Team System Code coverage in IIS
Hi, I have read the previous threads around code coverage and IIS, but could not find a solution to my problem. I am running VS 2005 Team Edition for Developers on win2k3 with IIS6. The web applications project gets published to my local IIS installation and I have some test code which loads IE and automates some of the web site flows. I would like to get code coverage data from running these tests. So far, I tried changing the local test run config to instrument the dll in the /bin directory of my IIS webroot. But VS ends up with empty code coverage information. I also tried manually instrumenting that dll with vsinstr and collecting data with vsperfcmd, with no success. Btw, I have verified that the dll does get loaded by debugging it. B ...Show All
Visual Studio Team System SharePoint Portal... Web Parts Broken?
On my portal sites home page, I can remove web parts just fine but adding new ones poses two problems. First, the "Left" zone is the only available target, and second, when I add a new part to that zone I get a " An unexpected error has occurred. " message. The default share point site (at http://<ServerIP>/default.aspx) I can see the right zone and add web parts to either zone. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game and GameComponent Feedback
We've been combing the forums and the Connect database for bugs, feedback and suggestions around the application model. We still have a small amount of time to consider any other feedback you may have. So this is the thread that you post your latest likes or dislikes with Game, GameComponent, services, etc. Please scan the other threads before posting here, I'd like to just gather things that haven't already been discussed or reported elsewhere. Thanks! Definitively is correct. Something that I believe that is also necessary is that the components include designers and wizards of configuration, much more intuitive that PropertyBox. ...Show All
SQL Server store time
Is there any posibility to store only time and not date in sql server Even if there is no data type to support it, is there any round about way of doing it There are many approaches for that, storing time in a datetime column (with the date of 1/1/1900) storing the seconds / minutes after midnights (in the appropiate granularity as you need it) storing time as a string Depends on how you want to work with the data. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
.NET Development Why is Console in the backgroud?
When I create an empty project with Express Visual C++ and make a windows form on the fly, I get the console in the background with the title C:\Windows\System32\cmd.exe. Why is that This feature did not exist in 2003 VC++.Net. Is it a part of Express Edition of VC++.Net What can I do not to display the console in the background Regards Modeller. With all respect this is what my question is :o) Can the application's entry point be the reason In the application, main entry point the main is [STAThreadAttribute] int main(array<System::String ^> ^args) { // Enabling Windows XP visual effects before any controls are created Application::EnableVisualStyles(); Application::SetCompatibleT ...Show All
Windows Forms Scroll event not firing paint event
The paint event won't fire whenever I scroll the pane control, even though I call Invalidate(). I have tried calling Refresh in the event, but to no avail. Am I missing something here using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Imaging; using System.Reflection; using System.Text; using System.Windows.Forms; namespace TestApp { partial class Form1 : Form { /// <summary> /// Required designer variable. /// </summary> &nbs ...Show All
.NET Development .NET Framework 2.0 Event Viewer error
Since .NET Framework 2.0 x86 was installed on my computer, this event is recorded periodically: Event Type: Error Event Source: .NET Runtime Event Category: None Event ID: 0 Date: 11/13/2005 Time: 1:52:45 AM User: N/A Computer: Description: The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Unable to open shim database version registry key - v2.0.50727.00000. I use XP SP2 ...Show All
Visual Basic Anyone find a solution to documentcompleted event?
hi, It's a little emergency. I have a window form project that the window form embeded a web browser object-AxSHDocVw. When the program finish navigation the URL and show the web page in the web browser object, the program go to parse the DOM tree. I write the parsing program into the docuemtcomplete handle. Sometime the system trigger the documentcomplete handle, but the web browser was not really download complete the whole html document. It will cause the DOM tree parsing error. How can I avoid this situation And let me ensure that the navigation is really finished completely! Thanks a lot! Y. J. Sample program: Private Sub wb_DocumentComplete(ByVal sender As System.Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteE ...Show All
.NET Development ReflectionProblem:GetFields
The MSDN says:"The GetFields method does not return fields in a particular order, such as alphabetical or declaration order. Your code must not depend on the order in which fields are returned, because that order can vary." 1: why doesn't return in the declaration order;what will decide the order returned 2:Does GetPropertys or other like API return in some particular order. 3:MSDN doesn't metion the return order about GetPropertys,does it mean it return in a particular order. I'm not sure why they don't guarantee a specific order, but the fact is that they don't. That means you should never rely on it. The same applies for GetProperties and similar methods. (I seem to recall that ...Show All
