julial77's Q&A profile
Visual Studio 2008 (Pre-release) UsernameToken over Certificate authentication
I need to use client certificate to validate the domain of the request and user name token to validate the user in that domain. I know that this is a classic case for federation but lets ignore that for the purpose of this post. So the first authentication of the request was through certificates, which was relatively easy. Instead of passing user name and password as arguments to a method, I would like to send a user name token in the request. On the server side, I would like to validate the user credentials in the WCF plumbing. How would I go about doing the second part given that it has to happen right after the first part Thanks. One way you can examine the information which is presented to the service is to install a custom IAu ...Show All
Gadgets Is there a place to test Spaces Author vs Visitor mode?
I have tested my gadget using a toggle button to imitate the modes, but was wondering if there was a way to see how it would actual work before I release my gadget! Thanks in advance! oops, I just realized it should switch to visitor mode when I go to view space.. must mean my code is really wrong:) Here is the code, which I believe was taken directly from MS's site if (p_args.module.getMode() == Web.Gadget.Mode.guest) { img1.style.visible = false; ...Show All
SQL Server How to execute multiple stored procedures from a report and return the sum of the values returned from the sp's
Hi, I am writing a ver complex and highly critical report and since the report is complex, I have created a bunch of stored procedures to handle this. I then created a text dataset to call the sps. In the dataset I have a dynamic sql query that executes those sps and get the values returned from them in a variable. I then add those values together and store them in another declared variable. I want to return this variable from the report so that it shows in the fields list. For this I am writing a single select query for eg: 'Select @amount as Total' But when I click refresh fields, I just get a single column with the name ID and it is not set to any value from the dataset when I go the the fields tab in the dataset. This has b ...Show All
Visual C# Displaying a Generic.Dictionary object in a PropertyGrid
Hi, I have a property in one of my classes that returns a Dictionary object: public abstract partial class NonStationary : Structural { protected NonStationary( string name, Shape. Shape shape) : base (name, shape) { } private Dictionary < string , Motors. Motor > _motors = new Dictionary < string , Motors. Motor >(); [ BrowsableAttribute ( true ), ReadOnly ( false ), TypeConverter ( typeof ( CollectionConverter )),] public Dictionary < string , Motors. Motor > Motors { get { return _motors; } } } There are four classes th ...Show All
Visual Basic Why does my Leave-eventhandler execute twice?
Hello, I have a problem with my Leave-event handler - it fires twice. I have 3 text boxes on my form. The user will put numbers in the text boxes, but the numbers cannot be the same. So when the user jumps to the next text box my Leave-event handler checks if the text box, whixh was left, has a unique number. Below you can see the code - somewhat simplified: Private Sub TextBox_Leave( ByVal sender As Object , ByVal e As System.EventArgs) _ Handles TextBox1.Leave, TextBox2.Leave, TextBox3.Leave Dim CurrentTxtBox As TextBox = sender RemoveHandler CurrentTxtBox.Leave, AddressOf TextBox_Leave ' ...code for testing... CurrentTxtBox.Focus() AddHandler CurrentTxtBox.Leave, AddressOf Tex ...Show All
Windows Forms Syncronizing Data in two dif. Databases
I am working on a project in VS 2005 C# that will syncronize a WinMobile5 Database(.sdf) and a Paradox Database. I have the program recognizing both databases just fine. I am trying to figure out how to best go about codeing the app. I am comfortable in Borlands Delphi lang. There you could just run a while loop in db A and then insert needed records into db B Something Like: dbA.first; While not dbA.EOF (endofFile) do begin DbB.edit; dbA.fieldbyName(.....field). value := dbB.fieldByName(....field).value etc... dbA.next; end; What is the normal way to do this in C# Can you use sql in a C# program to do this or what would be the c# sintax to loop as above Thanks Jon Stroh You can use the SqlCeDataReade ...Show All
Software Development for Windows Vista July CTP breakpoint on state machine workflow can't open the workflow designer
Dear all, I am trying to debug a state machine workflow in the July CTP of WF. I have set a breakpoint on the state machine workflow, but when I debug and the breakpoint is hit, I get: Dear Tom, That is true, but I still get the error on first opening the solution, then the workflow designer, even when the whole solution has been built successfully. A rebuild is necessary to clear the error. ...Show All
Visual C# Value does not get assigned??
I am trying to assign the OrderID from my OrderLegDetail object...when i step through the code while it running "this.OrderEntryID" has the value of the current instance of the OrderEntryID but it does not assign it to the OrderID of the OrderLegDetail object...it take it to its default value of -1 but i cant seem to figure out why.... for ( int x = 0; x < Legs.Count; x++) { ((Tracking.BusinessObjects.OrderLegDetail)Legs[x]).OrderID = this .OrderEntryID; } Different Legs Do all derive from OrderLegDetail Then it still should have the public properties of the base class available without casting. What type has Legs Just a collection of objects Can you single step the assignment Does your property setter ...Show All
Visual Studio Wrong notes for "How to: Create Custom Configuration Sections Using IConfigurationSectionHandler"
The documentation for How to: Create Custom Configuration Sections Using IConfigurationSectionHandler states "This topic uses the System.Configuration.IConfigurationSectionHandler interface, which has been deprecated in the .NET Framework version 2.0.". Neither IConfigurationSectionHandler nor any of its members are tagged with the ObsoleteAttribute attribute. Could we get some clarification as to whether IConfigurationSectionHandler is or is not obsolete for .NET 2.0 Peter, thank your exaustive response. Digging more into this issue, I found out what may be causing this confusion. 1) Actually, IConfigurationSectionHandler is deprecated in .NET Framework 2.0 and above. But, because it is used internally, it has be ...Show All
Visual Studio 2008 (Pre-release) Image formats for toolbars?
I'm curious what people are using for images on WPF toolbars Are you using icons, bitmaps, a geometry in XAML, or It's nice that you can easily make an interface scalable with WPF, but that implies that some sort of vector images would be best. But how do you make those look good when sized down to small areas like 16x16 I'd like to hear from some developers/designers that have been working with this awhile on what's worked best for them What gives you the best tradeoffs between ease of creation, good looks at larger sizes, and good looks at smaller sizes Yeah, we're using both of those to an extent...the xaml exporter is pretty good, but has some limitations -- for instance, it converts everything (rectangles, etc) to paths ...Show All
Visual Basic Update isn't updating
tattoo wrote: There is something very basic that I am missing here. When I change the data in a field it isn't getting updated back to the Access Db. I'm using Access 2000 and VB.Net 2003. To try and troubleshoot where I'm going wrong I have put together a very minor application and selected just one field from the Db table to update. Below is all the code I'm using. I've tried reading the forums and the MSDN help and I seem to get multiple, different descriptions on how to update but nothing is working. any help is appreciated. I have tried binding the field to the Db and tried without binding as well. Public Class Form1 Inherits System.Windows.Forms.Form # Region " Windows Form De ...Show All
SQL Server Getting "Permission denied" error in ExecuteSQL task
The purpose of the Package is to load an SQL table with data from text files in a subdirectory. The parameter is parsed from the text filenames. It is a zipcode. I have an ExecuteSQL task inside a ForEach container. The SQL in the task is: IF EXISTS (SELECT * FROM dbo.ZipCodeRadius WHERE CenterPostalCode = 1) BEGIN DELETE FROM dbo.ZipCodeRadius WHERE CenterPostalCode = 1 END I also have a Data Flow task in this container which populates the ZipCodeRadius table. The same parameter is also passed to the Data Flow task which specifies a zipcode to delete and afterward load. I am using Windows authetication for the package. What am I doing wrong Fred Thanks, that did help. My main problem was ...Show All
Visual Studio Express Editions How can i open a aboutbox in a windows form
Hey i've been trying for weeks to try open a aboutbox whilst in a windows form, i have a menu bar and a drop down menu with about this product on it and when i click it i would like it to open the aboutbox, but i can't get it to work can anybody help me please thank you in advance. well if its another form as the "AboutBox" then on the click/double click event of that menuitem: FrmAboutForm theAboutForm = new FrmAboutForm(); theAboutForm.ShowDialog(); or if you just want to show a messagebox: MessageBox.Show(" YourTextHere ", " Caption ", MessageBoxButtons.OK, MessageBoxIcon.Information); is this what you are looking for ...Show All
Architecture Clarification on FSMO Roles
Hi Team, I have a quick question. Say, we have a Domain Tree. The parent Domain is xyz.com. Under xyz.com, I have support.xyz.com and under support.xyz.com, I have zyx.support.xyz.com. xyz.com -->support.xyz.com-->zyx.support.xyz.com Now, let me talk about the FSMO roles. The Forest wide role by default will be in xyz.com. When I talk about domain wide roles (PDC Emulator, RID Master, Infrastructure Master). I expect all the three domain wide roles to be present in all the above mentioned three domains. Is there a possibility that I can remove domain wide roles from zyx.support.xyz.com and make zyx.support.xyz.com depend on other two domains for Domain wide FSMO roles. Thanks in Advance. Santhosh ...Show All
SQL Server how to convert this into stored procedure?
I have the following coe to populate combobox with data from different tables and I want to know how to convert it into stored procedure private void populate_drop_down() { try { //ensure the box is cleared cboIDType.Items.Clear(); cboNationality.Items.Clear(); cboCountry.Items.Clear(); cboGender.Items.Clear(); cboMaritalStatus.Items.Clear(); cboBloodGroup.Items.Clear(); cboProfession.Items.Clear(); cboCompany.Items.Clear(); cboBloodGroup.Items.Add( "" ); cboProfession.Items.Add( "" ); cboCompany.Items.Add( "" ); //Use the SQLServer provider.. //set up the connection and the command... // sql_connection = new SqlConnection("server=J ...Show All
