Topics
-
- 1 reply
- 776 views
I have a gridview that I fill by binding it to a dataTable. Then I let the user make modifications to check boxes in the grid. When they are done they click a button and I need to run some stored procs for the changes they made. Is there a simple way for the DataTable to tell me which rows have been modified? I know this is what a diffGram is supposed to do. My data is not coming from xml and I don't want ADO.NET taking care of anything more than just telling me what changed. I'm reading alot about how .NET can run and update my data for me and such. I'm not ready to give that control over yet. Any suggestions?
Last reply by VBAHole22, -
-
- Administrators
- 2 replies
- 695 views
I have a table which is similar to this VehicleRef, Manufacturer, Model, Derivitive, Term, MilesPA, CH 1000, Audi, A3, 1.6 SE, 12, 10000, 104.99 1000, Audi, A3, 1.6 SE, 12, 20000, 102.99 1000, Audi, A3, 1.6 SE, 12, 30000, 102.99 1000, Audi, A3, 1.6 SE, 24, 10000, 102.99 1000, Audi, A3, 1.6 SE, 24, 20000, 102.99 1000, Audi, A3, 1.6 SE, 24, 30000, 102.99 1000, Audi, A3, 1.6 SE, 36, 10000, 102.99 1000, Audi, A3, 1.6 SE, 36, 20000, 102.99 1000, Audi, A3, 1.6 SE, 36, 30000, 102.99 The above all relates to 1 vehicle and there are about 500 vehicles, the primary key is vehicle ref. For my page of results I want to display each unique vehicle and the lowest CH…
Last reply by MrPaul, -
-
-
- Leaders
- 2 replies
- 1.3k views
Hi, I wondered if someone could help/point me in the right direction :) I add some text to a richtextbox and call the undo method and nothing happens.. however if i type into the box and call the undo method it works.. what am I missing here :| .. I add the text by : richtextbox1.text = "blah" richtextbox1.text = richtextbox1.text + " and more blah" so I then click on the undo button and nothing happens.. im guessing its not registering to be undone.. but how do I go about getting it to be accepted? I did try cutting and pasting, but thats just a dirty fix.. any clean ones? Thanks
Last reply by Illusion, -
-
-
- Administrators
- 2 replies
- 1k views
Hi, I need to write a windows service to run on windows 2003 server and I'm thinking in create the service and when the user logs in the computer at the startup folder I'll launch an UI application that interacts with the service using the MSMQ for have its status. Is this a good idea? does anyone have a better suggestion? one thing, a service that runs in windows xp with "interact with desktop" option checked doesn't behave in the same way in windows 2003 server, that's the reason i found MSMQ a possible way to do the communication between service and desktop. Thannks, Tiago Teixeira
Last reply by teixeira, -
-
-
- Administrators
- Leaders
- 17 replies
- 1.8k views
I wanna avoid user from using computer for other purpose except my program. and when my program is closed, i want the windows to shut down as well. the locking means: lock ALT+CTRL+DEL, ALT+F4, Start Menu, and Taskbar. Please help.. thanks
Last reply by mandelbrot, -
-
-
- Leaders
- 5 replies
- 1k views
Dear All, Bl°°dy Microsoft! I've just been upgraded to VS.NET 2005, and I can't find the definitions for the controls! Where's it all gone? In 2003 the controls were defined and instantiated in the code itself - much easier to understand and manipulate. Now, it appears, Microsoft have taken a backward step and reverted to their old ways of hiding the definitions away somewhere... Could anyone point me in the direction of some literature that will bring me up to speed (from 2003 to 2005) without too much reading (facts rather than waffle), or give me a quick explanation on the development of Windows forms, please? (I'll be forever grateful!). Thanks in …
Last reply by mandelbrot, -
-
-
- Leaders
- 1 reply
- 893 views
Hi, I want to check if there is any text file in the application path, then delete all of them. So I use this code: If System.IO.Directory.GetFiles(My.Application.Info.DirectoryPath, "*.txt").Length > 0 Then My.Computer.FileSystem.DeleteFile(My.Application.Info.DirectoryPath + "\*.txt") End If But I get error: A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
Last reply by dynamic_sysop, -
-
-
- Administrators
- Leaders
- 5 replies
- 1.4k views
Just hoping to get some input for a DotNet project I'm working on, and figured that C# programmers would be the best to ask. If a simplified looping structure were introduced to C# (using the hypothetical "loop" keyword) I would like to hear thoughts on a few points. This hypothetical loop construct would be a simplified version of the for loop whose form can very depending on how specific the programmer would like to be. The form would be: [color="Blue"]loop[/color](controlVariable, start, count) [color="Magenta"][i]statement[/i][/color]; The start value can be omitted (assumed to be zero), or the controlVariable and the start value can be omitted, so some possibl…
Last reply by snarfblam, -
-
- 0 replies
- 706 views
can someone point me to a solution for determining the index of the column header a user clicks on from a gridview?
Last reply by kcwallace, -
- 5 replies
- 898 views
I'm trying to open an IE Window, the IE address is actually pointed to an html file on the hard drive. I can open it fine if I use an actual web address using this code: Dim pr as process pr = pr.Start("IEXPLORE", "http://google.com") But I can't do the same thing pointing to the C drive. (Perhaps opening it on C sounds barbaric. But I have clients using laptops out in the field on the open road, no IE connection while on the open road, who need access to a Help file in HTML) How do I do this ?
Last reply by lauriemc, -
- 1 reply
- 591 views
I am having a problem with visual studio.net 2005 in that it has become corrupted. I have tried to repair the application using the visual studio.net cd, and I have tried to remove the application using add/remove programs. Neither of these approaches work, is there anyway that I can safely remove visual studio without wiping the entire machine? Mike55
Last reply by mskeel, -
- 0 replies
- 1.3k views
I have question on if changing any of these GUI elements about the window's form's tabcontrol is possible without resorting to making my own control with GDI calls. 1. I would like the test of tabs alligned to the left to read horizontally, not vertically. 2. I would like space in between the various tabs, such that you can see the form underneath, not butted up against each other as is default. 3. If #2 is not possible, I would like to add graphics to the tabs themselves. Thanks in advance, Spektre
Last reply by Spektre, -
-
- Administrators
- 3 replies
- 8.7k views
Hi, I created an own program because other solutions missed some features, but since I stopped developping it I'm using another program, which is written in Java# .NET (mine was VBasic .NET). The program which I'm currently using does everything but one thing, so I thought I add it myself. Easier said than done since it is the first time that I'm working with Java# .NET. I'm having a bit trouble with converting types: string Change; Change.Trim("-"); //cannot convert string to char[] I tried (char) & (char[]) without any luck.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 1.8k views
I'm still learning to parse .XML in .NET and I'm having a problem where I'm receiving the following error and I can't figure it out, so any help would be greatly appreciated. "Illegal characters in path" The XML being returned is as follows: [highlight=xml] <?xml version="1.0" encoding="utf-8" ?> <string xmlns="http://www.webserviceX.NET"> <?xml version="1.0" encoding="utf-16"?> <CurrentWeather> <Location>Newark, Newark Heath Airport, OH, United States (KVTA) 40-01-22N 082-27-45W 268M</Location> <Time>Jun 05, 2007 - 08:54 PM EDT / 2007.06.06 0054 UTC</Time> <Wind> from the N (350 degrees) …
Last reply by CoolBreeze812, -
-
-
- Leaders
- 3 replies
- 5.9k views
I'm building a custom file browser for my application, I want to list certain files based on thier name so i've used io.directory.getfiles and filtered the results. But In windows explorer i've noticed that certain files have extended attributes over and above thier standard read only, hidden etc etc. For example jpegs have height and width. It would be great if I could read this information using something like io.fileinfo. Are these details actually embedded in the file itself and can they be read? Thanks
Last reply by dynamic_sysop, -
-
- 0 replies
- 925 views
I have written a VB.NET application and filled a dataset with information. I need to select Distinct Rows from the dataset based on a column in a table in the dataset. How can I do this? I know the dataset has a select property but I do not understand how I can get to use the select distinct query against this dataset. Please help and as always any help offered is greatly appreciated. Also I need to set this count to a variable, I then need to update a row in the dataset so I can feed it to crystal report i.e set the reportsource to this dataset.
Last reply by lothos123452000, -
- 1 reply
- 680 views
Hi, I want to clear a textbox out when its clicked client side, so i've got txtExtraOptionDesc.Attributes.Add("onclick", "if(this.value == 'Description must be entered') this.value = '';") It works fine. But I also want to set the backcolor to white, can the onclick support more than one action? I tried txtExtraOptionDesc.Attributes.Add("onclick", "if(this.value == 'Description must be entered') this.value = '';this.backcolor='white'") But it didn't work, then again the syntax may be wrong as i'm not hot on JS.
Last reply by MrPaul, -
- 0 replies
- 640 views
I have a gridview on a form which contains a template field, in my itemtemplate I have a checkbox with its autopostback property set to true. I want to do something in its CheckChanged event. How can I access this event in my code behind? Thanks
Last reply by Mondeo, -
- 0 replies
- 856 views
Hi there, I am in the process of displaying a set of data(comes from a List) and each line, will need an Edit and Delete button so I am creating imagebuttons for these. how do I reference/attach code for the imagebuttons? Should I use a repeater control? am using C#
Last reply by Eduardo Lorenzo, -
- 2 replies
- 821 views
I'm using asp.net 2.0 and the Ajax Web Extensions. I create a control with a label (lblStudentID) and when the page renders, it becomes XXXXX_XXXXX_ControlInstanceName_PanelInstanceName_OriginalControlID If I use Javascripts document.forms[0].getElementById(OriginalControlID) or Microsoft Ajax's $get(OriginalControlID) they wont find a reference to the control. If it were an HTML control, this wouldn't be a problem as ASP.Net 2.0 doesn't rename their ID's. The problem I'm seeing is that in my control, I only have control over the PanelInstanceName & OriginalControlID. I have no idea which control(s) (if any) that my usercontrol will be used in. Is ther…
Last reply by Denaes,
-
Who's Online 0 Members, 0 Anonymous, 54 Guests (See full list)
- There are no registered users currently online