Topics
-
-
- Administrators
- 2 replies
- 822 views
Hey guys, I'm having a problem and it's drivin me crazy. I'm using Web Dev 2005 express and SQL 2005 express. For some reason when the database dosen't always update. When I step through, it works every time, but not always when I simply run it inside a browser. There also dosen't seem to be a pattern as to when it updates. Has anyone run into this? Any help would be a great help. here's my code... SqlConnection SqlCon = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["pingDB"].ToString()); SqlCommand SqlCmd = new SqlCommand(sql, SqlCon); SqlCon.Open(); SqlCmd.BeginExecuteNonQuery(); SqlCon…
Last reply by PlausiblyDamp, -
-
Data storage
by 4ice-
- Administrators
- Leaders
- 10 replies
- 1.6k views
If you want to store lots of data (ie. for a CRM program), what is the best / safest way to do this? MS Access database? Or are there better options? Hope you guys can give me some information! Thanks in advance
Last reply by 4ice, -
-
- 1 reply
- 1.4k views
Hi all, Is it possible to set the .AllowDBNull property for each column once the dataset has been filled? Mike55.
Last reply by bri189a, -
-
- Administrators
- 6 replies
- 3.8k views
I've been trying to find a way to save the settings of projects that clients' create with my C# projects. They can set page orientations, set paths, windows positions, etc. All these values are stored in my running application using a class called ThisProject that encapsulates the settings: ThisProject objProj = new ThisProject(); What are good, accepted methods of saving information like this? * I have found information on Serializing, but this seems to be set up for writing text files. * I noticed the Project > Properties has a Settings tab, but I can't find much info on what this is meant to save, where it is saved, how to write to it or retrieve it duri…
Last reply by Mister E, -
-
-
- Moderators
- 22 replies
- 7.2k views
Do you think that DirectX 9 is the worst supported and documented API to come out of microsoft? I do. so cast you vote so we can all make a consensus.
Last reply by Talyrond, -
-
-
- Administrators
- Leaders
- 5 replies
- 3.9k views
Microsoft has a new Settings field in Visual Studio 2005 which can be accessed at design time via "Project | <Project Name> Properties..." item on the menu bar. I have successfully created the Settings fields for my project, but I need to read/write values for the user.config file using these settings at run time. I found an article on how to do it here: http://msdn2.microsoft.com/en-us/library/shytyc55.aspx but it seems to only be accessible via the "My" keyword, which is not part of the C# language. Does anyone know the proper way to access this information using C# on 2005?
Last reply by joe_pool_is, -
-
- 0 replies
- 810 views
They claim to have an interface compatible with .Net - I haven't seen it
Last reply by TheWizardofInt, -
- 4 replies
- 3.6k views
Hi all, I have two datasets, the first dataset contains the data for a company selected directly from the database (The first column is an auto-incrementing field). The second dataset contains data that was extracted from a .CSV file. What I need to do is to take the data that was uploaded and insert it into the database dataset, and then update the database with the combined dataset. In order to enable updating the database I am using the command builder. The problems that I am having is combining both datasets together. My plan was to originally take each record from the .CSV file and firstly check to see if the customer mobile number was in the dataset from t…
Last reply by mike55, -
- 2 replies
- 2k views
Hi all, I am retrieving data from a .CSV file into a dataset, the problem that I am encountering is that the code/dataset seems to not pick up certain characters such as the 0 (Zero) characters at the start of the .CSV data field. Here is the code that I am using, all/any suggestions welcomed... 'Retrieve the data from the .csv file. Private Function RetrieveOrganisationUploadedMembership(ByRef dstCSVFile As DataSet, ByVal filePath As String, Optional ByRef errorMessage As String = Nothing) As Boolean RetrieveOrganisationUploadedMembership = True Dim cnnCSVConnection As OleDb.OleDbConnection Try Dim fileName As String …
Last reply by mike55, -
- 1 reply
- 590 views
Hello everyone, this is my first thread in this forum, hope to find some answers to my questions :) am making a CMS for a hosting company site, i know youll find this a stupid question, but i really cant find an answer :confused: am using a rich text box controller like the one am posting this text through.. when saving the text to the database, whats the procedure? how will the text that has been formatted here will be retrieved in it's same shape from the database later on? it's possible to save it in html format i guess but how can i do that? how to access the property in the rich controller to do that.. thank you so much for your time :)
Last reply by bri189a, -
-
- Administrators
- 3 replies
- 710 views
Hi all, How can I configure my ASP.NET application so that it automatically shuts down the currently running application and replaces it with a new one on a timed basis. (Shutting down an application on a timed basis can make your site more stable.) Thanks & Regards SURESH
Last reply by bri189a, -
-
- 0 replies
- 1.4k views
I am new to .net and vb2005. I am working on a database program that uses a datagridview and several list boxes, etc. In old VB6 I used the .show and .zorder to show a list box and set it to front. I understand that .bring to front is what we use now. My problem is that it seems whenever I move some controls around on the page and then back to their original positions (during design), they may or may not show up when I run the program. An example; I have a large data grid view on the screen and a couple of list boxes that are not visible until the user clicks on a button. I set the list boxes to visible = true and bring to front. If I move the list boxes around to …
Last reply by shannanl, -
- 4 replies
- 1.5k views
I'm trying to save files. They save OK the first time, i.e. when they're created, but I can't successfully save the changes. Here's the code I'm using: Dim TestFileStream As Stream TestFileStream = File.Open(FullPath, FileMode.Create, FileAccess.Write) Dim serializer As New BinaryFormatter serializer.Serialize(TestFileStream, Me.SerializationCol) TestFileStream.Close() In relation to FileAccess.Write the helpfile says: "Specifies that the operating system should create a new file. If the file already exists, it will be overwritten. This requires FileIOPermissionAccess.Write. System.IO.FileMode.Create is equivalent to requesting tha…
Last reply by rbulph, -
- 0 replies
- 769 views
I need to put a datalist (child) within another datalist (master) but have no idea how. I have been looking around but have not found a good resource for it. can anyone please help me out. maybe point me to a good resource. I'm using vb.net2003.
Last reply by eyes, -
- 4 replies
- 748 views
Is there any tool which will automatically generate a diagram showing the relationships between different classes in my project?
Last reply by rbulph, -
- 3 replies
- 655 views
Hi guys, I need a control that�s similar to the properties window in Visual Studio.net. Namely, a grid consisting of two columns separated by a splitter bar. Labels would go in the left column, while text boxes and combo boxes would reside in the right column. I kind of made on myself by putting 2 panels and a splitter bar within a third panel, but it has limitations (i.e. no combo boxes, and I can�t make the fixed single border of the text box anything but black). Is what I�m looking for readily available, or will I have to purchase it from a third party? Any ideas? Cheers, Michael Dugan
Last reply by mskeel, -
-
- *Experts*
- 18 replies
- 1.5k views
For the life of me I cannot figure out how to start up the main application form as invisible. There has to be something I'm missing, because I cannot imagine this being a difficult thing to do. :P
Last reply by sFradel, -
-
-
- Administrators
- 4 replies
- 1k views
Hi, What is the correct way to do this. I have a windows forms app, and I want several of the forms to close when I press escape. So I have the general sub-routine in say 6 different forms, all with the same code: Private Sub CloseFormOnEscape(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles cmbSkin.KeyPress If Asc(e.KeyChar) = Keys.Escape Then Me.Close() End Sub In order to make my app more manageable, I could put the one subroutine in a general class, and just use AddHandler in the Form_Load() sub of each form. I was wondering if there was some better way that I could do it, using Inherits or something lik…
Last reply by PlausiblyDamp, -
-
- 3 replies
- 3.3k views
Hi guys, I have a problem with screen flicker. In my application, I�m drawing some objects in myPanel using myPanel.Paint. The coordinates of the objects (they�re mostly just primitives along with some regions) are stored in arrays. So when the graphics need to be refreshed, the arrays are consulted. The problem is I also want to show items being dragged across the screen, but when I do that, the constant redrawing causes the screen to flicker. I�ve read that I should use the invalidate method, but can�t figure out where invalidate should be invoked. Any ideas? Cheers, Michael Dugan
Last reply by Cags, -
- 2 replies
- 799 views
Hi all, I want my dataGrid to display time like the following in an asp.net webform: TIME 00:00 00:30 01:00 01:30 02:00 . . . 23:00 plz help me how can I do this Thanking you all
Last reply by sureshcd10,
-
Who's Online 0 Members, 0 Anonymous, 53 Guests (See full list)
- There are no registered users currently online