Fariba Ahvaz's Q&A profile
Visual Studio Express Editions Unable to Update db in Visual Web Express
When using Visual Web Express 2005 I am able to insert/create new entries in the database but when I edit the update command dose not change the data and there is know apparent error. I have seen similar issues with Visual Basic Express 2005 but the solutions there do not seem to apply to Visual Web Express. Can any one shed some light on this This is the code:<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head runat=" ...Show All
.NET Development searching through an xml document
I'm creating an application that needs to search through a large xml document for any text matching what the user has entered. Can anyone please tell me what would be the most efficient way to handle this as the xml file is fairly large (20mb) Many thanks Please provide some details on the structure of the XML document, we now know from that sample that you have a root element with name 'myCollection' and child elements with name 'product'. Do those 'product' elements have any child elements, or just plain text XPath can do some searching for you e.g. myCollection/product[contains(., 'example text')] will directly select you only the product elements where the string contents contains e.g. 'example ...Show All
.NET Development FW11 - Temporary ASP.NET Files
We've developed a number of EnterpriseServices objects that are used by a number of webservices. And run into a re-deployement problem for these Enterprise services. Lets call the EnterpriseService class library WTL.DLL. Each and every webservice that use the services from this Enterprise service library get a WTL.DLL library. These dll files end up in the Temporary ASP.NET Files. Now when we need to update the EnterpriseService without changing the interface the "old" dll files are still being used and multiple copies sit under the Temporary ASP.NET Files folders where they are locked while the asp.net app is running. Reploying the Enterprise services object does not help. It can hardly be the case that when an Enterprise Ser ...Show All
Visual C++ function argument types and cross language compability
If I want to be able to call functions from a user defined class in both C++/CLI and C# then does it make a difference if function arguments use a handle (i.e. the '^' character) or the reference syntax (i.e. the '%' character). For example: ref class A { public: A() void f1( int% i ) { ... } void f1( int^ i ) { ... } bool operator=( A% a ) { ... } bool operator=( A^ a ) { ... } }; If I wanted to create an instance of the above class in C++/CLI and then call if from an assembly in C#, which syntax would I have to use Similarly, if I wanted to create an instance of the above class in C# and then call if from an assembly in C++/CLI, which syntax would I have to use to call the functions In other words, are C++/CLI fun ...Show All
Architecture Office Automation in .NET
Hi, We have a Documentation system which generates some output documents based upon some pre-defined templates in MS Word. What we did in the past was, we designed these templates in Word. We had a Visual Basic dll which dynamically merge the data into these templates using Mail Merge feature. Now we are enhancing/upgrading this application. I was wondering if we can get rid of this Mail Merge some way because using MS Word on server with COM+ causes many unwanted scenarios, like Word instances remain open and eats memory, Some unwanted data appears in Mail Merge fields and Word opens a pop up etc. Can anyone suggest something more useful Thanks, Hi, Can you please clarify why you are consi ...Show All
Windows Forms Format Text for PhoneNumber
If i have a text field and i want to enter a phone number like 12345678190...but i want it inserted in my db like 123-456-7890 how would i go about doing that well pnum will always be less than 3 since you have never assigned a value to it. so...either use the textbox text directly or set the pnum variable to the textbox.text value and try it. you also would be making that first if statement true everytime the user types in a character until 3 characters have been reached which means you will be adding the hyphen between the first 3 characters every character. You want to add the hyphen when a certain character length/string length has been reached Example: if (this.txt.Text.Length == 3) { //do stuff here - in ...Show All
Windows Search Technologies WDS query results not correct
Today I installed WDS 3.0 beta2. I had the same problem with v2.6.5 When I search for (for example) from:hp my results are not complete. (some mails with @hp.xxx in de fromaddress are not showed.) When I search for (for example) from:hp.com I've no results at all. A quote from the help: from:name , example from: jake Finds items with jake in either fromName OR fromAddress, since "from" is a property name for both fromName and fromAddress. I have found a similar strange behaviour. I use Windows Desktop Search 02.06.5000.5401 and index my local Lotus Notes Inbox. Example: There is a mail with the word Meldungsfenster in it. It is in the middle of a sentence with blanks in front and afterw ...Show All
Visual C# Multithreading in C#
Dear Friend I want to implement thread in C# for mean,median and mode functions. in which the calculation will be in the following sequance 1. Mean [x' = (x/n)] 2. Median [M = ((n+1)/2)] 3. Mode [z = (2M+3x')] can you help me. Thanks in advance See the Thread.Join() function, it'll do work for you. Better explore MSDN to see what does it do. I hope this will help you but in case of any problem you can come back! Best Regards, Rizwan Ahmed ...Show All
Visual C++ LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
I am attempting to write a C++.NET 2005 DLL (or assembly if I am using the terminology correctly) that wraps a C++ 6 .lib file (I am guessing that it is from C++ v6 because it is a SDK supplied by a third party). C++ is not my native language, VB is, so I am trying to write this wrapper so that I can do the bulk of my coding in VB.NET. I have managed to get the C++.NET project down to 45 warnings (which seem to mostly be the linker complaining about duplicate function definitions) and really 1 linker error: LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup The Configuration Type for my project is Dynamic Library (.dll) and in an attempt to fix this based on other articles ...Show All
SQL Server Cannot view the DTS
Hi , I have DTS created in my Development server using the save as option i tried to save it in my production server . All these works fine . But when i logged in to the production server i could not see the DTS . But when we tried loging to the prodcution server using the data base administrator passed we were able to see the DTS and the owner of the DTS is seems to be not a admin person rather it is me. Why is that i am not able to view the DTS when i logged in with my user id Can any on help us in resolution this issue . Thanks K.Karthik Doss AFAIK... there is not direct method in SQL Server 2000 ... yes u have Specific role available in SQL Server 2005(db_dtsadmin,db_dtsltduse ...Show All
Visual Studio cusomize colors - multiple-bar charts
Hi, I was wondering if there is a way to customize colors in charts for Crystal Reports scaled with .NET2005. The information I am displaying is of this kind: 2001 (q1, q2, q3, q4 ), 2002 (q1,q2,q3,q4) where all the q's are the bars/columns clustered according to their years. CR displays the reports with colors auto chosen. Now, is there a way for me to define the colors for each of this bar other than the default I will appreciate your help. Abhijit. Hi Dave, Thanks for the inputs. I have been struggling with the solution you proposed for some time. Within the Chart Color Format Expert (step 5), I dont see all the fields I am displaying in the drop down menu (step 5-2). That is a reason I am finding myself fractured to customize my ...Show All
Visual C# With "FormBorderStyle.None;", how can I move the form by mouse?
using " FormBorderStyle = FormBorderStyle.None; ", I can not change the location of the form when running... Is there any way to drag the form around as I like Thanks! Take a look at the examples on my site: http://www.dotnetrix.co.uk/misc.html Move a borderless form. An example of a moveable/resizable shaped form. (This one adds a System Menu to the Taskbar Button) ...Show All
Smart Device Development How to enable QWERTY keyboard on Smartphones?
Hi Is it possible to programmatically, using CF v2, to enable the QWERTY keyboard on newer smartphones like the Dash and BlackJack I have a user control that accepts text input but whenever the user presses, say T on the Blackjack, it will cycle between A, B, and C instead of showing T. The rest of the keyboard works fine but the area where the keyboard acts as the phone’s keypad, it will act like a keypad, which I don’t want. Help Gavin This should be possible by p/invokeing to the native IME control api's. Unfortunately, this is an advanced topic where I am unaware of any existing samples of how to do this. David Wrighton .NET Compact Framework ...Show All
SQL Server How disable Named Pipes in SQL Server 2000 from VB.NET
Hello, I have a big problem with SQL Server 2000 and Visual Basic .Net. I wont disable named Pipes from code write in Visual Basic (.Net). How make this This problem is very important for me. Help me! Please!!! Try SMO/DMO forum: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=88&SiteID=1 (this forum is about SSIS, not sure if anyone knows the answer) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Ray and BoundingBox Intersection - how to find the exact point of intersect?
I've been implementing the functionality described in the How to: Detect whether a user clicked on a 3D object. I get the mouse coordinates and use the near and far clipping planes, draw a Ray using these points etc, all good so far. I have a bunch of little cubes bouncing around the XY plane, I can hover over one with the mouse cursor, it comes to a halt as I want it to. Now, I'm trying to implement some sort of basic "select and drag" functionality. What I'd like to do is move the currently "grabbed" cube towards the unprojected coordinate of the mouse. This, however, isn't really working out. 1. When I do the intersection test of a ray and a cube's boundingbox, is it possible to obtain the coordinates of th ...Show All
