Yeago's Q&A profile
.NET Development HttpWebrequest Post
Hello Im trying to upload a file to a https address using the getRequestStream method of the httpWebRequest class. The code appears to work fine and no exceptions are thrown, but the file does not appear to have uploaded to the server. The stream is working as it should. The server requires authentification via a public key, which i have and is installed. I have used the CreateFromCertFile method of the X509Certificate to add the certificate to the WebRequests client certificates. I belive this method extracts the public key from the certificate If I try and call the GetResponse method, an exception is thrown - The remote server returned an error : (401) Unauthorized. The URL is something like https://somesite.com:500/test/tes ...Show All
Visual Studio Express Editions Trouble with compiling simple C# script
Hi I am a beginner trying to compile a simple C# hello world script using a command prompt. I am unsure how to do this but have tried typing run then cs.exe or cs and the error comes up - 'cs.exe is not recognised as an internal or external command.' I have also browsed to the .NET Framework in Windows and tried to run this file which opens for a split second then closes. Can anyone explain what I am doing wrong I am running Windows XP SP 2 and Visual Studio 2005 Express Edition Many thanks for any pointers E Thanks when I type in a command prompt C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe I get Fatal error CS2008: No inputs specified Any idea why Thanks for all y ...Show All
Windows Forms How can I force my dialogboxes to the front?
For some bizarre reason, any dialogbox I display always hides behind my forms. This means for example that when the programme is about to overwrite a file, the confirmation dialog is hidden, making the programme look as though it has crashed. Is there any way of guaranteeing that the dialogs stay on the top of the forms I do have certain controls that force the focus back to my main display area but nothing that happens when I save a file. I don't remember having any of this trouble before I changed my PC, I went from an NVidia card to an ATI but surely this wouldn't have any effect... would it Could a driver or hardware cause this problem Oh, thought I had better add that my main form TopMost property is set to False. ...Show All
Visual Basic Problem with foreign key update
Hello everyone, I am having trouble with a table I am trying to update. The table contains information about a client's cases, so it has a foreign key to the CLIENT.CLIENTID column. However, when a new record is created, the CASE.CLIENTID column is always blank. Note: I am using databound textboxes to show this information. I certainly don't want a databound textbox where the user has to manually enter the CLIENTID value for this particular case. So there must be a way to, before the commiting the new row to the list, setting this columns value, manually. After trying various ways to reference the new row's CLIENTID column, including using the BindingSource.AddingNew event, and trying to set the value manually into Bindingsource.Cu ...Show All
Visual Studio Express Editions Registration Key
How or where do I get the registration key Thanks, Rememeber that if you install the cd version you do not have to register the product. You will be prompted for the registration but this stops after a few days. You can follow the same method and register so that you can get the benifits, but you will not recive a key and there is no place to enter it (CD Version Only). ...Show All
SQL Server Automatic Printing of Reporting Services reports through subscriptions
To all the techies, We are trying to schedule the report for automatic printing using subscriptions. Does any one have any idea of how to achieve this Any inputs appreciated. AM You can take a look at the custom extention sample for Reporting Service. This extention allows you to deliver your subscription to a network printer known by the reporting server. The default location is: C:\Program Files\Microsoft SQL Server\90\Samples\Reporting Services\Extension Samples\PrinterDelivery Sample. ...Show All
Visual Studio Team System Record playback not seeing hidden fields
This web test is auto-generated using record/playback on the May 2006 production release. It fails on the last line, a reference to hidden session GUID, reporting KeyNotFoundException. There are several hidden form fields, but My.Context("$HIDDEN1") is an empty array. Dim request1 As WebTestRequest = New WebTestRequest( "http://localhost/OCSWeb/Default.aspx" ) request1.ThinkTime = 6 Dim rule1 As ExtractHiddenFields = New ExtractHiddenFields rule1.ContextParameterName = "1" AddHandler request1.ExtractValues, AddressOf rule1.Extract MyBase .Send(request1) Dim request2 As WebTestRequest = New WebTestRequest( "http://localhost/OCSWeb/Default.aspx" ) ...Show All
.NET Development oledbexception while connecting to a database using asp.net application
Hi, I am getting an oledbexception while connecting to a database.the error i am getting is.... OleDbException (0x80040e4d): IErrorInfo.GetDescription failed with DB_E_BADLOOKUPID(0x80040E59).] can anyone help regarding this. Hi, This is the connectionstring i am using.and in the page load i am filling a dropdownbox with a dataadapter. I am getting the error in the login page only. Provider=SQLBASEOLEDB.1;Persist Security Info=True;User Id=SYSADM;Data Source=LOGIN ...Show All
Smart Device Development Is the a way to be able to get to things such as WNT, WL, GL structs and classes and etc.?
Is there a way to be able to get to the WNT, WL, GL, CTL, CURS structures and classes that are part of the Framework and etc. in order to be able to make the kind of modifications to controls like the TextBox where AutoSize is not on and allows us to draw such things as an underline under the TexBox like the TextBoxes in Contacts and Calendar has on a PocketPC app Why make these things internal instead of making us create more PInvoke routines and constants in order to do specialized things Thanks, Kenneth Kenneth, .NET Compact Framework is built in to ROM and devices and as such needs to be as small, or compact, as possible. To this end the .NET Compact Framework team the each release, balances functionality with size con ...Show All
Internet Explorer Development OnUnload and SetTimeout not working
Hello all, I'm trying to do the following: 1. Open a new window 2. Change the size of the current window so that it is side by side with the new window. 3. Wait until the new window is closed and then resize the current window. (I think MS Office does something similar when displaying the Help files.) I've tried to do this via onUnload + setTimeout and via setInterval but both have failed for different reasons. 1. onUnload + setTimeout Handles the unload event. Then checks if the new window's closed property is set to true. It seems the closed property isn't set straight after the window is closed so I put a setTimeOut of 200ms before checking if the window is closed or not. Unfortunately in IE it doesn't even seem to go into the unload ev ...Show All
SQL Server Questions on translation and naming attribute
Hello I have a few questions regarding the translations. 1. Is it possible to create this neat auto-generated date dimension in any other languages than english 2. When I use the Currency format string on my autogenerated measure groups they all turn out as $, but when I use it on a calculated member it chooses the correct currency. How can I change this for the auto generated measures 3. After creating the member, how do you define the deafult member show from the dimension. Say for example that I have DimEmpl(Code, Name). I would like the Name attribute to be the attribute showing by default. I know this is possible while creating the dimension, but what if I want to change it later Thanks // Richard ...Show All
Software Development for Windows Vista Custom Property Conditions
Hello all, I have a question regarding the TreeWalker sample and UI automation in general. Say, for example, I have a UI that contains several panes, with the automation ID's BrowsePane1, BrowsePane2, ..., etc, and I want to retrieve all of these. Assuming that I have an AutomationElement rootElement, I want to call rootElement.FindAll(TreeScope.Element | TreeScope.Descendants, condition), where my condition is such that I can retrieve all the elements that have an automation identifier that begins with "BrowsePane". Essentially, I want my condition to be that AutomationElement .AutomationIdProperty.ToString().StartsWith("BrowsePane") evaluates to true. Is there any way to create an object of (base)type Syst ...Show All
SQL Server How to install ascmd.exe utility?
I have istalled SQL Server 2005 SP1 Standard Edition and AS 2005 without Samples. How to install ascmd.exe utility on the server and client Thanks, GB You will get with SP2 samples. You can download and install it separately from http://www.microsoft.com/downloads/details.aspx familyid=e719ecf7-9f46-4312-af89-6ad8702e4e6e&displaylang=en Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
.NET Development COnnect to Sql using Web Service in VS2005
I have this web.config file and i want to add my connection string to that can i do that if so how do i access it Do i use the Web Configuration Manager or what <WebMethod()> _ Dim connect As String = new Web.Configuration.WebConfigurationManager("connstring") but i get an error doing this.....Please help me...thanks Check this one out http://www.extremeexperts.com/Net/FAQ/StoringConnectionString.aspx ...Show All
Audio and Video Development What are “content elements” and “block element” described in spec?
Hi, all I want know what are “content elements” and “block element” which are used in spec 7.6 Which element defined in Table 7.5.3-1 are they I encounter lots of problem when I try to render style markup. Can you give me a help Thank u! Bryan Kilian,thank u. Now I am redering style markup, but I found some problem. which content of elememt shall be rendered case 1: <div> <p> text </p> </div> it will display "text"! case 2: <p> <span> test span </span> </p> It will display none. ...Show All
