vsnk's Q&A profile
Visual C# MasterPage
Hi guys, I have a base page that basically contructs and loads all the html for every single page I have, i.e it builds the head, body, html and form tags etc I am trying to achieve the following, depending on what role the user is (taken from db) then display the masterpage that matches that role protected override void OnPreInit(EventArgs e) { // code to check which role if (role==Admin) { base.MasterPageFile = "/masterpageforadmin } . . . etc etc in my web.config file i have : <pages pageBaseType="PageSetup"/> My problem is this - because i am building head,form... tags in a base class, removing them from my ma ...Show All
Visual C++ CString is not identified by Visual Studio 2005?
I have compiled with VS 2003 #include <afxwin.h> (at the top) #include "stdafx.h" #using <mscorlib.dll> and declared in method like this CString csUser, csPassword, csServer; //=========================== The same syntax is giving this error in Visual Studio 2005! error C2061: syntax error : identifier 'CString' Spent four to six hours to resolve it, However, I need this CString to work, but can not change it String* or any thing as the code runs a lot with CString. Any help or clue, how to resolve it ACK! Just filed a suggestion. http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx feedbackid=3 ...Show All
Visual C++ Vertex buffers and textures
I’m looking for a way to create a high-speed Direct3D application. Shall I use IDirect3DVertexBuffer9 except ID3DXMesh object to provide more speed Shall I use vertex and index buffers together Can you give a sample that describe how to use vertex and index buffers to load 3D models with textures from .X files Hi Sergey, There are several DirectX newsgroups on microsoft.public, where you can find questions on faster then on this forum. Here we answer primarily questions about VC++ 2003 and 2005 products. Thanks for understanding, Nikola Dudar Visual C++ Team ...Show All
Visual FoxPro Index on Deleted() VS .NOT. Deleted()
Which is best for performance index on deleted() tag del or index on not deleted() tag notdel Thanks In VFP9 with "set deleted on" i think "index on deleted() tag del binary" is good choice. Ok Javid ...Show All
Software Development for Windows Vista Problem: Install Vista 5308 on Virtual PC?
I need to install Vista on a Virtual PC to test installation and running of some current apps I've developed. When I try to install Vista, it boots from the DVD I provide but when I "Install Now (->)", I get an error dialog box: I'm having the same problem, although with a different error message. In my case, it keeps saying that it can't find an accessible hard disk to write temp installation files to. I searched Microsoft's site for any hint that Vista 5308 won't work on VPC, but couldn't find anything. However, I found this thread that has a procedure for a possible workaround. Try it, they say it works. http:/ ...Show All
Visual C# e-mail link
How can I put in control linkLabel1 link to e-mail, and this link will start e-mail client (like Outlook Express) with my e-mail ( e-mail default in control linkLabel1) Thanks You could run the following code in the OnClick event handler for your LinkLabel: Process.Start("mailto:user@domain.com subject=Some Subject"); For more info, see: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=227147&SiteID=1 and http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=125564&SiteID=1 This will only work if a program on your users system is registered to handle the mailto links (most ...Show All
Visual C++ The debugger isn't displaying std::wstring values
I have tried to use an std::set<std::wstring>, and the debugger appears to have a problem with displaying the values that are stored in the set (this also happens when using std::wstring as the key value in a map. Sample code: #include <set> #include <string> int main() { std::set<std::wstring> test; test.insert( L "1234567" ); // this is displaying correctly in the watch window test.insert( L "12345678" ); // this is displaying garbage in the watch window return 0; } This isn't a major problem, but makes it more difficult to use std::wstring. ...Show All
Visual Studio Express Editions TableAdapter.Update does not save data
How can I save data entered in a dataset via the UI I tried the code suggested in the "VB Guided Tour", Private Sub Form1_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing Me .AddressesBindingSource.EndEdit() Me .AddressesTableAdapter.Update( Me .SQLdbDataSet.Addresses) End Sub but all changes are lost when I restart the application. Thanks. I have the same problem in C# even if you don't use a tableAdapter but a sqlCommand object instead. Though affectedRecords reflects the correct rows affected. ...Show All
.NET Development Total XPATH newbie Q.. (relates to asp:xmldatasource dotnet20)
I have an xml document with nested Direcotry Elements. (sample XML at bottom) What I want to do is extract all child nodes where an attribute = X.. I am using an xmlDatasource that has an xpath property For this example I would like to get all nodes below the second (nested Directory Element) where Href="Directory.aspx Pth=/test/MtBohemia/Copy of MtBohemia"> I tried. Directory[Href='Directory.aspx Pth=/test/MtBohemia/Copy of MtBohemia'] But that flew like a lead baloon. Thanks in advance.. Rob Sample XML.. < xml version="1.0" encoding="UTF-8" standalone="yes" > <!--this is a test of the xmldocument--> <Message> ...Show All
Windows Forms Error while executing PocketpC Taskvision
When am trying to execute Pocket vision its throwing error "Unable to connect to Remote server". I have configured the server in my local machine.I have commented the synchronization code also.pls anyone have the solution. Also there is fullsource code available for the TaskVision application.But the ApplicationBlocks.Data is not there.Could anybody get it. ...Show All
Visual Studio connection to MSDN library directly(e.g., using F1)
How can I use the MSDN library to get a help within the code of the C# project. (e.g., using F1 key). when I am using F1 key over a word like bool I get the message : "Information not found " instead of getting the discription of bool keyword I am installing the MSDN libraray 2005 , but I can't get a connection to it from the project code directly. I must open it in a separate window and search it. I am installing MSDN Library 2005 came with the VS2005. I am using Microsoft Visual Studio 2005 professional edition . I set my settings to online first, then local , I am also testing the option local first, t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C++ or C# ??
I've been programming professionally for 8 years - all web and business programming in ASP, ASP.NET, and Java. I have a very solid knowledge of OO application development but I'm simply not challenged. The apps are all the same - build database, put front end on database to present data, allow data to be edited/updated, allow data to be deleted. Wash-rinse-repeat. I've been a gamer since I was 8 and I still play games like mad (own a PSP, DS, Xbox, and XBox360). It seems to be the only thing that has really stuck with me (I know, pathetic for a 36 year old! ) and I feel like I need to modify my skillset and break into game programming. ...Show All
Windows Forms Unicode chars in a control HelpString property.
Seems that HelpString ignores Unicode or international ANSI characters. I fill it with a Greek string, but when helpstring popup is displayed, string content appears as symbols. Is it a bug or I missed something ...Show All
SQL Server printing reports without previewing in a .NET app
hi, i need to print reports without having a preview. i.e batch printing. with regards suresh babu Could someone please elaborate on this I don't have the 2000 sample. Thank you! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Setting up Microsoft Visual Studio 2005 for directX
I just can't get the DirectX samples from the samples browser working (provided with directX), when i try to compile them i get linker errors DXUT.obj : error LNK2019: unresolved external symbol DXUTmisc.obj : error LNK2001: unresolved external symbol I have installed DirectXSDK(dec.) and Microsoft Platform SDK. I have added the paths in tools->options [Projects and solutions]->[VC++ directories] to both Platform SDK and Directx dec. There must be something im missing, could someone plz provide me with the infrmation on how to set Microsoft Visual Studio 2005 up to be able to compile the examples. ...Show All
