Software Development Network Logo
  • .NET Development
  • Visual Studio
  • SharePoint Products
  • Game Technologies
  • Visual C++
  • Visual FoxPro
  • Windows Forms
  • Audio and Video
  • IE Development
  • Smart Devicet
  • SQL Server
  • Microsoft ISV
  • Windows Vista
  • VS Team System
  • Visual C#

Software Development Network >> roadresident's Q&A profile

roadresident

Member List

EnigMa_AnGeL
NoEgo
Batikit
RamonS
nbie
Mark Goldstein
Scott_P
Deepesh Verma
Aleksey Nagoga.
Hans Preuer
Brian86
Tomys
yanivpinhas
Tryston02
CCRDude
dtorg1955
Tony512
Josef Jaser
Zakamon
A.Russell
Only Title

roadresident's Q&A profile

  • Visual Studio Team System Javascript actions in coded web test not working correctly

    After reading the white paper of Josh ‘ Web Test Authoring and Debugging technique’ , I figured out that I could mimic the JavaScript action of a ‘ add to cart’ button for our product. Hence I coded my web test and included the following piece of code in the appropriate section request9Body.FormPostParameters.Add( "btnFinish" , "Add to Cart" ); There was already another ‘formpostparameters.add’ just prior to that in the same request. request9Body.FormPostParameters.Add( "Body" , "&Anthem_UpdatePage=true&__EVENTTARGET=btnFinish&__EVENTARGUMENT=&__VIEWSTATE=%2Fw" + However, this did not make any difference to the ...Show All

  • Visual Studio 2008 (Pre-release) Retrieving Information from a RichTextBox Selection

    Hi, I would like to know how to retrieve the inlines contained within a selection. I have tried various ways to retrieve the exact inlines contained whithin the selection, but I never get accurate results. Can someone please help Thank you, Jaco Jaco, your approach looks reasonable. I wonder if the duplication is because you hit the InlineUIContainer start AND end edge while iterating through the content: <InlineUIContainer>[start]<UIElement/>[end]</InlineUIContainer> As you iterate through the above content, tpCurrent.Parent will be an InlineUIContainer in two places -- [start] and [end]. You could use logic like if (tpCurrent.Parent is InlineUIContainer) { st ...Show All

  • Visual Studio 2008 (Pre-release) Requiring parameters in messages

    If I have an operation like: int AddIntegers(int int1, int in2), it seems like I can invoke this message by sending a message that does not have the int2 parameter, i.e. a message that looks like: <soap:Envelope><soap:Body><int1>2</int1></soap:Body></soap:Envelope>. WCF will assign the default value to int2 (= 0) and it will work as if nothing was wrong. What is the best way to make parameters required I find it strange that parameters are optional by default and not required. I know that the DataMemberAttribute has a IsRequired property, but how do I make the method parameters themselves required I was hoping to do something like: [OperationContract(RequireParameters = true)] int AddIntegers ...Show All

  • Visual Studio Team System Solutions not staying bound in TFS

    I just created a brand new solution with 21 Projects and 2 Web Application Projects. I Right Clicked on the solution and clicked "Add Solution to Source Control" and it added perfectly fine. Now, 10 minutes later, if I close down Visual Studio, and re-open it, my solution file does not have the "Lock" icon beside it, nor is it bound to source control. This has been happening forever with TFS, are there any fixes out for it yet. Can you have the others follow the same steps That is, - make sure all the files are actually stored on the server, not just pending add (common mistake coming from VSS) - make sure everything is under a valid workspace mapping - bind the solutions (File -> Source Control -> Change S ...Show All

  • .NET Development performence issue of an XML reader

    Codes: // Load an XML file and display the structure and content in a tree view. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Xml; namespace XMLReader { public partial class XMLReader_WindowsBased : Form { public XMLReader_WindowsBased() { InitializeComponent(); } private void btnSelect_Click( object sender, EventArgs e) { ofdXMLFile.ShowDialog(); txtXmlFile.Text = ofdXMLFile.FileName; } private void cmdLoad_Click( object sender, EventArgs e) { // Clear the tree. treeXml.Nodes.Clear( ...Show All

  • Visual Basic How to sort a list from A to Z

    Is there a way i can sort a list from a to z. Its this kind of list. System.Collections.Generic.List(Of T) SJWhiteley wrote: Ah, and the VB solution is shorter all those big words, too. It's all the same underneath, though... Its shorter because its not as detailed an example as I gave. . . andif you think its all the same underneath, you are 100% completely wrong. . . Yes it all runs on the same framework, but the compiler that puts it together is different. C# code in anything but trivial applications is far more optimal. Do some experimenting. ...Show All

  • Visual Basic Need Help/Ideas for Program

    I'm making a program that changes the size of a group of user-selected images stored on the hard drive (JPEG, GIF, BMP, ect.), but I'm kind of stuck on how to approach this. I was wondering if anyone had any ideas/suggestions. I know how to resize each single image, but I don't know how I should automate it to do a group of images one after another. I was thinking about storing a list of filepath addresses of the images... Thanks for any help. Would this work for multiple individual files Basically what I want to do is open a file dialog and be able to select multiple images by either holding down CTRL or SHIFT, and then I want to store the filepath addresses of these selected files for later use. T ...Show All

  • Visual C# How can I load a picture in Image Control?

    Hi, I have an Image Control in my web form app and im retreiving the image from the SQL database and try to store the image into Image Control. does anybody knows how to do it. I know in Win Apps pictureBox.Image is set to MemoryStream. How can I do it in Web forms c onnection.Open(); SqlCommand command = new SqlCommand ( "select [Image] from ImageList" , connection); byte [] image = ( byte [])command.ExecuteScalar(); stream.Write(image, 0, image.Length); Bitmap bitmap = new Bitmap (stream); Response.ContentType = "image/gif" ; //----Load picture to Image control--Image control is called "pic" connection.Close(); stream.Close(); Your help will be highly appreciated ...Show All

  • SQL Server Won't select rows with null field values

    I cannot in the life of me understand what goes wrong here... In a webapplication (C#.NET) I traced an inability to retrieve existing records to SQL Server, where I cannot do the same either. The problem is that in the parameterized query, some fields can be null, and thus when the corresponding fields in the database record are null also, they should be selected. But this won't happen for some reason. I wrote a test SQL statement that gives me the same bogus: DECLARE @institution int, @collection int, @serialnr int, @subnr nvarchar(50) SET @institution = 1 SET @collection = 1 SET @serialnr = 240 SET @subnr = NULL SELECT ID, Institution, Collection, SerialNumber, SubNumber, AccessionYear, Sagsnummer, DanekraeNr, TaxonIdentified, ...Show All

  • Visual Basic help---> oleDbDataAdapter

    i m using wizard to display my data in data grid... http://i4.photobucket.com/albums/y140/alesshans/data.jpg i use oledbdataadapter wizard as below... toolbox -> data -> oledbdataadapter -> select data connection -> use sql statement -> in field SELECT QuestionNo, Questions, Ans1, QCategory, QTopic, SubTopic, PageLinks FROM faq WHERE (QCategory LIKE 'eet') ORDER BY QuestionNo DESC -> finish then i generate dataset enter data source and data member into data grid... the problem is...how can i put value in TextBox1.Text into the sql statement in wizard... example... WHERE (QCategory LIKE ) thanx for help... ...Show All

  • SQL Server Bulk Insert fails

    I am using SQL Server 2005 Management Studio Express.I am trying to insert records in bulk into "students" table. Students: uniqueid varchar(9) (primary Key) lname varchar(35) fname varchar(35) My problem is when one record from the bulk record already exists in Students table all the bulk insert fails. I dont want that. I want rest of the records to be inserted smoothly with no error. How can I do it....Is there any disadvantage if i do this I am using staging table and inserting using not in condition...but i am trying to see if there is a way around...the reason is bc i think the performance of query will come down if i do again select....will the performance go down students tabl ...Show All

  • Visual Basic How to sort a list from A to Z

    Is there a way i can sort a list from a to z. Its this kind of list. System.Collections.Generic.List(Of T) SJWhiteley wrote: Ah, and the VB solution is shorter all those big words, too. It's all the same underneath, though... Its shorter because its not as detailed an example as I gave. . . andif you think its all the same underneath, you are 100% completely wrong. . . Yes it all runs on the same framework, but the compiler that puts it together is different. C# code in anything but trivial applications is far more optimal. Do some experimenting. ...Show All

  • SQL Server USB had disk

    Dear all, I am running SQL server 2005 on MSCS. Does anyone has experience to take online backup on USB disk. What will be the performance How the USB hard disk can be added to cluster group as a resource. Thanks Imran Hasware It will be very slow if you perform a direct backup to USB disk, as you wouldn't get that speed (USB 2.0) that is compared to do a local disk. It is better to perform to disk and then copy to USB disk to avoid such performance degrade during the backup operation. ...Show All

  • .NET Development Webservices and WebMethods help

    Hi guys, Im trying to remotely modify a field stored on an XML webservice. I can access the field using the following getter method. private string [] strArray = { "192.168.0.1" , "192.168.0.2" , "192.168.0.3" }; [ WebMethod ] public string [] GetArray() { return strArray; } But when it comes to setting the field, the following method doesnt seem to work when called remotely... [ WebMethod ] public void SetArray( string [] array) { strArray = array; } Many Thanks for the help! Please Ignore the previous post! I changed my above set up so that I'm now using object serialisation on the WebServer-side to store data which can be acc ...Show All

  • Visual Basic Singleton-threading confusion

    Hi, My first singleton, so i have some doubts about threading issues involved. Public Class UsuRegistro Private bloqUsers As String = "bloqUsers" Public users As New Hashtable Public Function GetUsers() As Hashtable SyncLock bloqUsers Return users End SyncLock End Function Public Function GetUser(ByVal cod As Integer) As UsuObj Dim obj1 As Object = users(cod) Dim usu1 As UsuObj = DirectCast(obj1, UsuObj) Return usu1 End Function Public Sub RegistUser(ByVal cod As Integer, ByVal usu1 As UsuObj) SyncLock bloqUsers users.Add(cod, usu1) End SyncLock End Sub Public Sub DeleteUser(ByVal cod As Integer) SyncLock bloqUsers users.Remove(cod) End SyncLock En ...Show All

©2008 Software Development Network