ozhonetech's Q&A profile
Windows Live Developer Forums MAP IN DIV
Hello, I have a VE map inside a <DIV> and I want it to load automaticaly but I can only get it to load then you click on it. Any ideas! ! Thanks Those are both style (CSS) issues; it looks like you've placed the DIV inside a table (why ), so you'll need to mess with the table, tr, td, and/or div style properties to figure out why you hve an alignment problem and a border. ...Show All
Smart Device Development DropDownList on Smart Devices
Hello I am developing a website application designed for smart devices (using .Net 1.1). I am having a problem with dropdown lists. When navigating to the website via a smart phone all the dropdown lists take a maximum of only 3/4 of the screen width. The data that I need to display is quite long and the customers agreed to have a horizontal scroll bar on the page, however, I can't achieve it. The HTML is: <table cellSpacing=0 cellPadding=0 width="100%" border=0> <tr> <td> <asp:dropdownlist id="lst" Runat="server"></asp:dropdownlist> </td> </tr> </table> The code behind is: Data ...Show All
Visual Studio Express Editions help plz
i made a small program which load a sqlserver express 2005 database. it is fine running on my computer,but when it runs on another computer, it can not connect to the database. the two computers' hardware configuration are the same,celeron 2.4g(maybe), 256m ram, window xp professional sp2. and i install frame work 2.0 on both computers. can anybodoy tell me the reason part of the error message: System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specif ...Show All
Windows Forms DataGridView Checkbox Column
Hello, I am manually creating DataGridView object. I would like the first column to be a column of check boxes. The column appears alright, but for some reason I am unable to actually check/uncheck the boxes. Does anybody know what property needs to be set for that functionality Here is some of my code: private void makeGrid() { wGrid.AutoGenerateColumns = false; wGrid.DataSource = wellcollection; DataGridViewColumn boxCol = new DataGridViewCheckBoxColumn(); boxCol.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; boxCol.ReadOnly = false; wGrid.Columns.Add(boxCol); DataGridViewColumn col1 = new DataGridViewTextBoxColumn(); col1.DataPropertyName = "wellkey"; col1.HeaderT ...Show All
.NET Development ICeeFileGen deprecated
I noticed in the documentation, http://msdn2.microsoft.com/en-us/library/ms404463.aspx , that ICeeFileGen has/will be deprecated in the future. What should we be using, from unmanaged compiler code, to create PE files Dave.Net Microsoft wrote: after discussing this with the CLR team, they confirmed that this interface will be deprecated in .Net3.0, you can use it in .NET 2.0 without any problems. Many compilers are using it (C#, VB, J#, ...), so it is not going to disappear anytime soon. I assume in .Net3.0, there will be a workaround for this interface. ...Show All
Visual Studio 2008 (Pre-release) WCF and Share Point 2007
Hello, can I develop functions with WCF then I integrate them in share point portal 2007 as web parts Thanks Yes you can. You can create a WCF Client assembly which uses the ChannelFactory<T> to talk to your WCF Service. Then, you host the WCF Service the way you want (in IIS or WindowsService). Now, from the SharePoint Web Part access your WCF Service via the WCF Client assembly. ...Show All
Windows Forms DataGridView - Setting DataSource Fires RowEnter Event
When Setting the DataSource of the DataGridView the RowEnter Event Fires but the DataGridView Contains no Data. Shouldn't data be added before the first row is entered I have not found a solution. If I remember correctly the row count was one when nothing was in the DataGridView so I couldn't use that. The reason this came up was because I was trying to set the backcolor of a row when the user enters a row. The entire Grid's backcolor was being set. My temporary solution was to set a variable with index of the row at the start and any time it changed then run the code when the RowEnter event fired. ...Show All
SQL Server Access denied to file for RESTORE
I'm running the isqlw.exe command from a console app. The output log file is telling me access is denied to my My Documents folder (where the .bak file is) to do the restore. It keeps erroring and teminating the RESTORE command. It's not read only or anything (not that I'd think that would necessarily affect it) and I don't know why it would throw an OS access denied error on any part of my computer for me since I'm logged into the computer as an admin and I'm using the sa login info in the isqlw command. Restore and Backup commands refer to the local file system of the server, so when specifying the path to the backup file you have to keep in mind that its the SQL Server file storage you are using. If that ...Show All
.NET Development VB.Net Data Storage
Hello, I'm currently working on a medium size application. One of the requirements is to be able to store the data in a home user enviroment. I was curious what some of the latest flat file storage methods being used are The data that im looking to store is not large and will contain mostly contact information. Would dat files still be a good solution I wanted to stay away from solutions that use MDB or SQL Server simply because the average home user would not have access to these type of applications. Xml would be your alternative - you can serialize objects and deserialize them as well and can also be used with a DataSet - so you can create a mini database in a dataset an ...Show All
.NET Development Accessing secure web service from a different secure web site
Greetings, I have a web service page that is inside a website using the membership security provider (asp 2.0) . To simply call up the page (page1.asmx) I need to login to the page. To access the functions in the webservice from another website, I need to get past the 'redirect to a login page' part of the transaction. There is security built into the webservice, so bypassing membership is ok.... The second website that is trying to get to the webservice is using forms-based authentication (not membership). How do I either exclude the web service page from the membership rules --or-- setup some kind of trust between the two websites (both internal on my Intranet) . Either way, I really just need to get to the web service f ...Show All
Visual Basic Saving Via Dataset
I need help saving/updating/deleting multiple records in the database via dataset. How i want to do that details are below: please help ASAP. I have a datagrid view and i have five new records in it or i have edited five records or deleted five records and i passed those five records to the dataset in a n-tier application, now i want to save the records into the database using stored procedures. How can i save records row by row. I mean every row is passed to the parameteres, one row at a time using a loop and how to check that five rows are inserted into database and now no record is left back. It was quite simple in vb 6.0 i am having problem in VB.Net. Thanks again for helping me. Regards Mirza Ashraf ...Show All
SQL Server How to use variables for server connections
Hello, Today is day two of using SSIS and having some issues adjusting. In DTS I would simply populate my global variables via an Active X step or pass them in at the job line. I am having a hard time being able to do either or in SSIS. Really all I want to be able to do is pass in a server name to the Connection of an execute SQL task from a scheduled job line. Same goes for any variable really ... how do I pass them in, and how do I assign them to specific areas of a task Thanks! Yeah that is more of what I am looking for ... so I guess that brings me to my next question. How do I do that For example ... I have a variable called DBList. I want this variable to have database names passed in, w ...Show All
Software Development for Windows Vista how to change the text shown when dragging activities from the toolbox
Can someone please explain, how I can programmatically change the text, that is shown, when I drag activities onto the designer surface By default, the class name is shown (for example in the designer rehosting example). hi . in fact , i had not rehost the designer . but the sample demo above is run well in VS2005 , i suggest the display representtation of designer has only relate the Activity Designer. but not to Toolbox Service. is there any difference betweent rehosting Application Host and VS host ...Show All
Visual C# Data from two column of a Table in one ComboBox
Hi, It's possible merge data from two column of a Table in one ComboBox for example I've in a Table the column Name and Surname and I want that data in one ComboBox for select Name and Surname! Thanks, bye! hi, datacolumn has a 'expression' param. , you can create a third column and in the expression you can compine 2 columns in the new one something like this datacolumn dc = new datacolumn("name", typeof(string), "column1 + column2"); then you can add it to your datatable and use it for your combobox hope this helps ...Show All
Visual C++ Replacing a character in a string
Hi, I have this string that I want to replace all "." with a "," and I can't get it to work. I use VS.NET 2005 and C++. My code is: String ^ str = txtText->Text; if (str->Contains( "." )) { str->Replace( "." , "," ); } txtText->Text = str; Anyone have any ideas Best /M I think you should try this: txtText->Text = txtText->Text->Replace('.', ','); I hope it works. ...Show All
