spshah's Q&A profile
.NET Development User credentials delegation from IIS on WinXP to SQL Server on Win2003SRV fails
Problem: I am trying to create an asp.net website with integrated windows authentication to access SQL databases. IIS resides on WinXP and SQL Server on Win2000 SRV. Both are in the same NT Domain. IIS and SQL Server cannot reside on the same machine and a stand alone web server is ideal as the website needs to access multiple SQL Servers. IIS is set to Integrated Windows Authentication. The anonymous access in IIS settings is unchecked. The web.config file has Identity element set for impersonation <identity impersonation="true"> The machine running IIS & the SQL Server are set to be "trusted for delegation" in active directory. The domain user accounts that will be accessing the databases are not marked a ...Show All
.NET Development Treeview - ExpandDepth - SelectedNodeStyle
In treeview, have ExpandDepth="2" so the 3rd level/depth doesn't show in the menu. I also have the SelectedNodeStyle set to bold. My problem is that when i click on an item deeper than the 2nd depth, the SelectedNodeStyle doesn't stay bold because it is no longer the selected node, it becomes the parent of the child node. What i need is the PARENT node to remain bold because the child node isn't displayed in the menu. get it any help here Scott The forums at http://forums.asp.net are better able answer Web UI questions. Thanks. ...Show All
Visual Basic A few n00b questions
I have a few questions to ask, so i'll ask them all here. :P I'm building a program that will get a string like (010305060405 e.t.c.). They are co-ordinates in the form of XXYYXXYY e.t.c. how can i split them to 4 characters and then their respective XX and YY co-ordinates to be added to an array I've researched string.split and couldn't find anything that helped me. Also, what would be the best way of showing images for these values in a grid I want to show them as images in a grid that could be up to 99 x 99 cells (maximum, bare basic is something like 50 x 50 or 60 x 40 or 70 x 30 [default sizes]). And how would i go about doing that And would it be possible to see if a usr has clicked on a cell and to then perform an event, like ...Show All
Visual Studio LocalReport Error - A data source instance has not been supplied for the data source
I have just installed VS 2005 RC. Tried using the LocalReport control using the exact sample code provided in the help for the Render method. I keep getting an error during the LocalReport.Render method call - InnerException = "A data source instance has not been supplied for the data source". The dataset and table supplied is valid as it works with the Reportviewer control. Is there something I am missing or is the sample code wrong I'm still struggling with the same issue Francois Geldenhuys had before, only the solution that worked out for him still doesn't in my case. So I'm having an intranet using a lot of RDLC files which are shown in a reportviewer. At the moment people ask me to get a PDF right away ... So thi ...Show All
Windows Forms how to activate back and forward buttons in c# project
i have developed the project using c#. there i am having back & forward buttons. how to activate that buttons. like in asp.net i can get the options response.redirect(), but here how to do plz give me a example for activate the back & forward buttons. Thread moved to the appropriate forum well in winforms, to navigate on a webbrowser control: this.theWebBrowserControl.Navigate( urlHere ); there are also functions like goback, goforward etc... if those pages are stored in the history: this.theWebBrowserControl.GoBack(); this.theWebBrowserControl.GoForward(); does this help is that what you are after ...Show All
SQL Server Hide database names from unauthroized users in SSMS
If a user is not authorized to see a database can I exclude that database from even appearing in Management Studio for that user TIA, Barkingdog I have tried changing the view any database property, which works, but the user cannot see the databases that they own... is there something else that needs to be done for them to see these databases and no others ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Animating Billboards Using A Single Texture
I just finished a basic billboard class that is capable of reading in multiple textures and animating. However, I would like to read in a single texture file and be able to simply change texture coordinates to change the appearance of the billboard. Now, I could recreate my VertexBuffer each frame, but that would be a lot of wasted processing. Is there a way to dynamically alter the texture coordinates for VertexBuffer objects each frame Edit: As a bonus question, how do I enable the alpha channels in my textures Right now it shows up white. I am using the BasicEffect. Would I have to write my own effect just for that Seems rather silly but I will if I have to. Edit 2: As bonus question 2, how can I disable antialiasing of my textures I'm ...Show All
Game Technologies: DirectX, XNA, XACT, etc. LoadGraphicsContent for Game and Component - What is the best practice...
Hi, I've followed the spacewar example and put the call to new ContentManager in the LoadGraphicsContent of the Game. Because I need to use the content manager in some of my components I have made it a static property on the top level game. I can call now call upon the content manager from the LoadGraphicsContent method within my components and load textures and stuff as required. However, it seems that the LoadGraphicsContent of the components are being called before the one in the Game. What is the best practice with regards to setting up the ContentManager, and using it within the Game and Component's LoadGraphicsContent. Any ideas Kind Regards, James In fact, it is absolutely n ...Show All
Visual C++ error C2065: 'PCACTCTXW' : undeclared identifier
I did convert an application from vs6 to vs8 and then i got this error (seems a little like the DWORD_PTR thing...) Where could be the problem ------ Build started: Project: HydrotelKernel, Configuration: Debug Win32 ------ Compiling... [ ... ] // i'm skipping this part of the building... way too long AdoDatabase.cpp WINVER not defined. Defaulting to 0x0502 (Windows Server 2003) AdoRecordset.cpp d:\program files\microsoft visual studio 8\vc\atlmfc\include\afxcomctl32.h(32) : error C2065: 'PCACTCTXW' : undeclared identifier d:\program files\microsoft visual studio 8\vc\atlmfc\include\afxcomctl32.h(32) : error C2146: syntax error : missing ')' before identifier 'pActCtx' d:\program files\microsoft visual studio 8\vc\atlmfc\include\ ...Show All
Visual Studio Tools for Office Can a program created for outlook 2003 run with 2000?
I created a program that uses the Outlook 11 object library. Is there a way to make it backwards compatible and run on a system that has Outlook 2000 installed Thanks Hi, If you installed the PIAs for Office 2003 from this site: http://support.microsoft.com/kb/897646/#appliesto and was not able to install, then Office 2003 must be a p rerequisite for the PIAs. Again, miss matching versions of PIAs and Office is not recommended. Jinglou ...Show All
Visual Studio Express Editions VS Hanging
Whenever i try to debug my application, Visual Studio Express passes after the compilation, and then nothing happens. After a shrot while a message appears telling me to wait, and if VS is waiting on another program, would i like to go to it. This has me perplexed, as i have no idea what is going on. I was not doing this constantly though so i continues with my coding, but toaday when i went to compile it, it complained of managed code trying to be executed in an OSLoader lock. I now I did not muck up my code, as all I removed was a single COnsole.Write Line command.The code generating this was in one of the files VS had generated for me. Any help in fixing this much appreciated, Mike It was the automatica ...Show All
Visual Studio idb (VC++ Minimum Rebuild Dependency File) files
Hi, I've been working on Stub Cl.exe & Link.exe for VS2005 so I can use Visual Studio to Manage/Compile Applications that need to be compiled by 3rd Party Compilers & Linkers. However the problem I have is that in doing this the IDB file isn't created so Visual Studio doesn't know which file have been built and which need to be recompiled when doing a minimal rebuild. Does anyone know how I would go about modifing my stub app to create an IDB file to get arround this (I know the IDB file is a composite file with the same basic structure as a Program Database File, but I don't know what needs to go in each stream ,for VS build system). Any help would be apprecitated. We do not support this ...Show All
Visual Studio 2008 (Pre-release) detecting close of media center
i have made an application that is built in wpf and meant to be run in media center. i have certain section of code that is meant to be executed when my application is closed. It works fine normally, but if i close media center directly without actually closing application, my exit code doesnt executes. What is the solution i should look for I tend to use the following when shutting down an Application or Window:: Example void Button1Click(object sender, RoutedEventArgs e) { this.Close(); Application.Current.Shutdown(): } That will not only close the Window but call for the Application to shutdown,removing the Exe from inside the Task Manager,Hope this helps ...Show All
Audio and Video Development Sonic Emulator not Rendering HDi
Has anyone had success getting HDi content to display in the Sonic Emulator Per Sonic's last training session (early Aug), they dubbed the "Gold Standard" to be what works on the Toshiba emulator. To me this means that they promote their tracing tool to be more important that what the emulator shows/doesn't show. I personally stopped using the emulator to test HDi. The next practical step is use small size videos and DVD-R's (or DVD-RW's) on the consumer player. The next practical step is the use the Toshiba emulator. ...Show All
Visual Studio 2008 (Pre-release) need tips : translating xaml to c#
Hi guys. are there any good guidance on converting xaml to c# actually, what i wanted is to understand xaml from coding perspective. thanks. yup. that answered it. funny though i miss that. probably it was already in windows vista sdk doc. thank you very much. ...Show All
