Mark Spiezio's Q&A profile
.NET Development Binary attachments in WSE 3.0
Hello, I'm using WSE 3.0, but I'm having some trouble passing a binary attachment. In WSE 2.0 we had SoapEnvelope.Context.Attachments where I would put binary attachments. Where can I put attachments in WSE 3.0 Thanks in advance for any help given. Regards, paulo I believe Soap with Attachments and DIME have fallen out of favor, and now you should just pass your previously attached data as a byte []. The returning soap message is supposed to have a MIME part for the byte [] sent in raw octects. This saves on bandwidth as the raw octects should be up to 33% smaller than the base64 encoding used prev ...Show All
Windows Forms Changing a property of a dynamically added control
Hi, I hope you can help me with this. I don't seem to be able to change the ".image" property of a dynamically added PictureBox. How do I refer to the "myPicture" PictureBox within a Module Private Sub MainForm_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load Dim myPicture As New PictureBox() myPicture.Image = My .Resources.Picture myPicture.Size = New Size(10, 10) myPicture.Location= New Point(30, 30) Me .Controls.Add(myPicture) End Sub Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click C ...Show All
.NET Development FormsAuthentication.SignOut - no redirect wanted
When signing out a user I do FormsAuthentication.SignOut() It redirects the caller to the Login-page configured in <authentication mode="Forms"> <forms name=".ASPXFORMSAUTH" loginUrl="~/N/Login.aspx" /> </authentication> Ho do I prevent the redirect to happen Your help is very much appreciated Beat I guess this happens because the page where the SignOut-statement is, requires an authenticated user. Because ...Show All
.NET Development Key/ForeignKey performance question
I've read on various online performance sites that an Int performs better on a WHERE clause than say... VarChar(8). Assuming this is true, does this hold true with relationships Having an Int as a ForeignKey and Key seems a lot more efficient than a VarChar - in terms of space and speed. Thanks :) Yes, it's more efficient and therefore faster to use integers as compared to character fields as integers are indexed more efficiently. It's much easier to index and locate an integer than a character field. I'm not sure how much faster using an integer would be though. ...Show All
.NET Development How to get returned columns from a stored procedure executing it
I need to get the returned columns from a stored procedure without executing it. The DataAdapter Wizard does a nice job of returning the columns using some sort of StoredProcedureListItem.Procedure.ReturnedColumns. How can I call those methods (or any other way) if I have a vaild connection and a valid stored procedure name Thanks That is a tough one. SQL does not expose any direct API to do this (get the columns that come back from a stored procedure). You can get the parameter info but not the columns. I am pretty sure you have to execute the procedure to get the columns r ...Show All
Visual Studio 2008 (Pre-release) Separate SQL Server (2000 in this case)
How do you instantiate the db with LINQ if the SQL Server is separate from the application server All the samples I've seen do it like this: Northwind db = new Northwind ( "c:\\northwind\\northwnd.mdf" ); Is the following how you'd do it, say in a shared hosting type situation (except that the connection string itself would be stored in the web.config, of course) Northwind db = new Northwind ( DataSource=<serverIp>>;user=<username>;pass=<password>; ); Thanks Hi, all the samples in the LINQ use connection string that automatically attaches database file (SQL ...Show All
Smart Device Development Change Target WM5.0 Says Device Not Connected
I have an applicaiton that currently runs on PPC 2003 that I need to also run on WM 5.0 This application is written with VB .NET 2005 I am trying to change the target platform to WM 5.0. I have Activesync 4.1 and the WM 5.0 SDK installed. When I try to deploy or debug on the device, I get the error "The device is not connected". Ironically, if I click the connect to device button from the IDE toolbar, I get a message that says connected to the device successfully.... I am at a loss. Has anyone come across this and know a solution Hello, To understand your problem bette ...Show All
.NET Development SqlDataSource Output Parameter
I have an SqlDataSource.InsertCommand that uses an SQL Server 2005 stored procedure that returns a success or failure message in an ouput variable @return_message. This works fine in Visual Basic.NET 2003, but I can not access the value of the output parameter in Visual Basic.NET 2005 and ASP.NET 2.0. The code looks like the following: Me.lblMessage.Text = Me.sqldsAddSwitch.InsertParameters.Item("return_message").ToString This just displays the text "return_message". It is not giving me the value of the parameter, just the name of it. In Visual Basic.NET 2003, I can use .Value, but it does not seem to be valid in Visual Basic.NET ...Show All
SQL Server Reporting services 2005 - rezising the legend size
Hi all,I have a report with a chart.the chart has a legend.The problem is that the number of categoried the legend contains grows in time. How to i do i make the legend rezing dynamicly so that the text doesnt go over the other You could consider a "table" legend layout which may be able to better accomodate the legend items. Other than that, you could look into building a custom legend by using a table data region instead of using the built-in legend (see this article for more details: http://blogs.msdn.com/bwelcker/archive/2005/05/20/420349.aspx ) -- Robert ...Show All
.NET Development IO.Compression.DeflateStream compression
Compression.DeflateStream using compression. when i compress a file to an already open stream that needs to stay open for further writing, my deflatestream doesnt seems to end correctly. i need to close it to have the full compressed stream. so as a workaround I ended writing an intermediate file so that i can close the deflatestream and then copyback the compressed stream to my main filestream. is there a bug or something i did wrong byte [] rBuffer = new byte [( int )fread.Length]; FileStream fout = n ...Show All
Visual C# Variables
Hi. I have an event with a variable declared as an arguement like so.. private void Hypo_Event( int StreamNumber, object StreamPosition, ISpeechRecoResult Result) { } I can access the variable from everywhere, except from a method I create myself. Like so.. private void getInput() { Result.PhraseInfo.GetText(0,-1,true); //When I try and use the variable in a method I create, I cannot access it and it says it does not exist in the current context. Can someone tell me what the problem is } >> I can access the variable from everywhere No, you can't. The variable exists for the sco ...Show All
Windows Forms About MDI Form?
Hi, My project uses MDI Form. If I click Add on menu, new Form is added to MDI. --------------------------------- Form f = new Form(); f.MdiParent = this; f.show(); f.WindowState = FormWindowState.Normal; --------------------------------- If I click Add again, another form is add. This is very smooth. But my problem is: If I maximize the first MDI Child Form, and I click Add. Th ...Show All
Visual Studio 2008 (Pre-release) AppendText doesn't scroll anymore
When I use TextBox.AppendText in my Windows Forms app. the text is added and the TextBox is scrolled such that the last line appended is displayed. When doing so in a WPF app. the scroll never happens. Bug Feature User error NIK Well it's debatable if it should scroll automatically, so I'll leave that to a Microsoft rep to answer, but if you want to scroll, just make a call to ScrollToEnd after your call to AppendText. HTH, Drew ...Show All
Visual Studio Team System TF82001: MS Project can't connect to Team Foundation Server
I have a weird issue. If I right click on a work item and click "open selection in MS Project" the selected work item appears in MS Project. BUT, if I save this file and then open it again I get the error: "TF82001: Cannot connect to the Team Foundation server. Please contact your server administrator." I'm going to reinstall the TFS client again to see if that resolves the issue. I'm Having the same error when try to get work items of a Microsoft project file, I migrate the application tier to another server and the file its still trying to connect to the old apllication server, is there any way to disconnect the reference from the fi ...Show All
Visual Basic Processing Serial Data
I need the reduce the processing time in a uMicrocontroller to allow faster sampling times. This has creates a problem in the data collection routine in VB. The old system collected the analog data a converted it to a decimal format before sending it to the serial port. This data is collected and saved using Hyperterminal. The VB program would, when run, would open this file and process the decimal data by graphing it. What I need is to capture the data directly and process a binary word. All attempts to run the graph program have failed! I'm sure it's in the way I'm reading the data. I've not been able to find much informatio ...Show All
