MelissaA's Q&A profile
.NET Development how to get a javascript value in c#
How can I get a javascript value in c# I want a value of variable in javascript to be displayed in a viewstate in .net.How do I do it javascript code:- function rep() { var strLen = txtNumLine.length; txtNumLine = txtNumLine.slice(0,strLen-1); alert (txtNumLine); } } I want the variable txtNumLine's value in c# c# code:- ViewState["Exp"] =txtNumLine; payal tandon wrote: How can I get a javascript value in c# I want a value of variable in javascript to be displayed in a viewstate in .net.How do I do it javascript code:- function rep() { var strLen = txtNumLine.length; txtNumLine = txtNumLine.slice(0,strLen-1); ...Show All
SQL Server importing data to new database
hi, i have 2 databases (DT1 and DT2), both contains one table customers with almost identical structure, the only difference is the firstname and lastname in DT1 are char(30) and varchar(50) in DT2. i've created both tables already. i tried using SQL 2005 managment studio to do a 'import data' and it worked. all the information in DT1 were copied to DT2. now i have to repeat the process for many databases and it would be too tedious to do it one by one. my question is, is there a script i can use to do it so that i could make a small application to automate the process thanks in advance. bob I addition to Joyea and the use of SSIS, which is very extensible you can also use the threepart notat ...Show All
Visual FoxPro Printing from com dll
I'm trying to print a report from a Com dll file. I keep getting the OLE IDispatch exception code 2031: User-interface operation not allowed at this time. Is there any way to make this work without building to an .exe file I'm using VFP 9 thanks in advance -m The error indicates that you are using some form of UI - which is NOT allowed in a VFP DLL. Are you trying to use the Preview winodow If so you cannot do so unless you re-compile as an EXE and no, there is no way around it. Either dispense with the preview or use the DLL to return the data for the report to the calling application and have IT handle the display and print. This is built into the compiler for DLLs because a DLL may be ...Show All
Visual Studio Team System Work Item Web Access
Hi, I am new to Work Item Tracking, and wondering if there is a Web Interface that allow people to query/create/update/ work item through internet. We need our customers to report defect through internet. I appreciate if anybody can point me to some links. Thanks There is nothing supplied in the box with the current release, however there are third parties working on such things. The guys over at DevBiz have one called "Teamplain Web Access" that you can evaluate or purchase. See http://www.devbiz.com/teamplain/webaccess/ for more information. ...Show All
Visual Studio 2008 (Pre-release) TextBlock MouseDoubleClick
Hi All, I want to know that how to raise a MouseDoubleClick event for TextBlock Control. For Label it is there. I want for TextBlock. Can anyone give me Idea about this. Thanks and Regards, GM Sundaraguru try this(txt1 is a textblock) txt1.MouseDown += new MouseButtonEventHandler (txt1_MouseDown); void txt1_MouseDown( object sender, MouseButtonEventArgs e) { if (e.ClickCount == 2) MessageBox .Show( "doubleclick" ); } ...Show All
Windows Forms How to add an outlook express in .net setup file and call in a project
We have developed the project using c#. We have created the setup file of our project, while installing the project, first it should check in that system, wthr .net framework is there or not, if it is not there means automatically it has to install the .net framework.Similerly I would also check for outlook express if it is not there means automatically it has to install. so for that purpose how to add the .net setup file and outlook express into my project setup file ...Show All
SQL Server is there a way to attach remote files when send email with database mail? thanks
. Renaming the file will not work. If you cannot access the network name, this means that the actual account which is executing the procedure is not able to access the file. Procedure xp_sysmail_attachment_load will load the file during the exection of the sp_send_dbmail. If you are using SQL Server Authentication, then the Service Account will be used for getting the data. if using Windows authentication the curretn u ser should be used. If you are using SQLAgent Account the Agent Account will be used. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is it better to create a Cue object for each sound or to just Get the cue from the SoundBank each time?
For part one of my question, I've been working on improving how I'm handling sounds in my game projects and I was wondering which is the preferred method. Is it better to create a cue object for each sound like this Cue mJump = mSoundBank.GetCue("Jump"); and then playing them later by just saying mJump.Play(); Or is it a better practice that unless you need to Pause and Resume a sound that you just Get and play the cue from the Sound bank all the time like this mSoundBank.GetCue("Jump").Play(); For part two of my question, I've been playing with designing my sound management classes using the two different methods and I've been noticing a lot of issues when I try to re-play a sound in a store cue object over and o ...Show All
Software Development for Windows Vista Black Screen / Freeze after first reboot
I have spent many hours the past week trying (unsucessfully) to install Windows Vista. I have downloaded and installed all the most recent drivers and BIOS updates for all of my hardware. I have run the Vista Upgrade Advisor and it says that my system should be good to go and that there are no serious issues. The only item on the "Task List" is to download Vista drivers for a wireless networking adapter I have in the system to be installed after. I have tried to do an upgrade from Windows XP and a Full Install of Vista with the same results. I start the install and everything goes smoothly (installer unpacking files and getting ready for installation) until right after the first reboot. The system restarts and tries to boot in ...Show All
Visual C# How to Store Passwords in the Code
Hello Everyone, I have a username and password which I want to use to access some stuff but If I disassemble the .exe I cant see the UserName and Password.... What is the best way to hide it within the code..... Thanks, Harsimrat As an aside, servers tend to use one way functions. The password is encrypted and stored in a file. When a user logs on, their password is encrypted and compared to the servers encrypted password file; if a match is found then the user is logged on. The beauty of this system is that there is no decryption involved, and people have a very hard time reverse engineering the password file (er...unless it's NT...). The above scheme works brilliantly for client/server ar ...Show All
.NET Development Sending emails in windows app C# 2.0
How do you send an email from a windows app in C# 2.0 What classes do I need to use Does any one know how to make an executable file for a windows app Hi, meNu Please check these two threads on the topic, you'll find the answer: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=760457&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=928163&SiteID=1 Thank you ...Show All
Visual Studio 2008 (Pre-release) XAML MDI application?
Windows forms has the ability to create MDI (Multiple Document Interface) applications, like Acrobat, Photoshop, etc. Is there a way to have this type of behavior in XAML Thanks. http://michaelweinhardt.spaces.live.com/Blog/cns!BCB75D26D609CF01!113.entry ...Show All
Windows Forms VB.NET-BindingSource
Hi people, I'm not sure to be using the BindingSource the rigth way. I've a DGV and set its DataSource property to a BindingSource. This is the way I use often the find and select methods of the rows coleccion. How can I move the pointer position in the DataSet to the find (primary key) to the index returned by this method I'm using the Filter so visualize only the rows I need. But something is missing here. To find a row and set the BindingSource.Position to the rigth line. Can someone help Pedro Maybe to use a BindingNavigator control would help you much. ...Show All
Commerce Server Failed to perform the specified catalog operationAnoh
I have just completed an install and configuration of CS2007. I can load the catalog web service in a browser but when I invoke a method I get, "Failed to perform the specified catalog operation because the current user is not authorized to perform it." I have created the CatalogWebSvc account, given it write permissions on the store xml file, set the CatalogAppPool identity to it, added it to the IIS_WPG, added it to the CatalogAdministrator role in the Catalog Store, and made it db_owner of all the DBs in SQL. When I run a SQL trace and invoke the method, I get: EventClass: RPC Completed ApplicationName: .NET SQLClient Data Provider LoginName: CatalogWebSvc Reads:2 The entire 500 error is: System.Web ...Show All
SQL Server High CPU utilization in SQL Server 2005 SP2 (CTP)
Hi, We are having a big performance issue at our site. Here is the configuration of the box running SQL Server 2005: 64 bit Windows Enterprise Edition + SP1 Dual CPU, 16GB RAM RAID 1 and RAID 5 - internal SQL Server 2005 64-bit Enterprise Edition With SP2 (CTP from December) The "Lock Pages in Memory" is set and is being run under the same account that is being used to run SQL Server Services. We are noticing that under load, the CPU utilization becomes nearly 100%. I have researched this and have come across a couple of posts that indicate that this issue was fixed in SP2 - example: One post talked about the hotfix #716 which is also a part of SP2 but even after the application of that service ...Show All
