
kkonkle
Members-
Posts
20 -
Joined
-
Last visited
About kkonkle
- Birthday 12/09/1977
Personal Information
-
Occupation
Application Programmer
kkonkle's Achievements
Newbie (1/14)
0
Reputation
-
That did the trick. I didn't know about the innerHTML property... I'd just been trying to set "control.value = sender.value", which would not update the client's screen. Thank you very much for your assistance.
-
I tried something kind of like what you suggest, updating a label through JavaScript, but doesn't the page have to refresh before the updated label text can be seen? My test runs so far do not display the label correctly. I can see the correct value in an alert box, but the label doesn't immediately change on the user's screen.
-
I have a form that will allow one of our users to submit a sale to us. Part of that process is attaching any number of files to the sale before they submit. It's a standard setup. A file input control, and an "Add" button below that to save it. I also have a list box that shows what files they've added so far, along with a "Remove" button they can use to remove files from the list box. I have this all working. Nothing is sent to us until they click Submit at the end of the process, so they're free to add and remove files all day long. One of our more nitpicky users complained that the file browse box is not long enough. She will select a file buried deep within her file system and when she selectes the file and clicks "Open" all she can see in the file upload box is: "C:\Documents and Settings\Am". I simply don't have any room on the form to stretch that control out as long as she would like. I told her she can click on the path in the box and scroll it all the way to the right to see her file name. I told her she can see the file name when she first selects it, and again in the list box after she clicks "Add" too. And if it's wrong she can highlight it and click "Remove"... but that did not silence her. So is there a way to: a) Autoscroll the file box all the way to right after they've selected their file and clicked "Open" b) Have a label or something below the file upload box that I could trim the file name out of the path and display it alone there for easy viewing before the user clicks "Add" c) something else that will show the user their selected file name before they commit it to the list box Thanks.
-
Program throws Windows Error immediately on double click
kkonkle replied to kkonkle's topic in Windows Forms
Turns out it was missing some files it was dependant on. The error was very unhelpful, but we found that when we included a DLL of a 3rd party control we were using then the error did not occur. I'm not sure why it wouldn't put that DLL in the "Release" folder when I build the project, but whatever. In the end we add a "Setup Wizard" installer to the project, told it to include all dependencies, and now the installer handles everything and we get no errors. Thanks for your time. -
Program throws Windows Error immediately on double click
kkonkle replied to kkonkle's topic in Windows Forms
The .Net versions are the same. The error is simply the generic (and uninformative) windows error: "TransitionForms has encountered a problem and needs to close. We are sorry for the inconcenience." And then it has the Send Report and Don't Send buttons. I can click to see what data the error report contains, but it's just a bunch of assembly code and is not entirely useful to me. -
I did some searching on Google and in these forums, but didn't find my issue. I have a VB.Net Windows Forms program that will run fine out of Visual Studio, but when I build it and try to run it on someone's computer it immediately throws up a windows error and says it needs to close down. I tried placing some message boxes in the Form Load event to see how far it gets. The first line of the Load event is one of my message boxes, but it doesn't even show that, the program dies before it treis to load my startup form I guess. So I'm not sure how to trouble-shoot this since I can't even get into the code I've written, it just won't make it that far. Has anyone seen this before? Any ideas on how I can test or otherwise gather some more info on where/how it's getting an error it doesn't like?
-
That was easy... I didn't know that's what the property "rowHeaders" meant, but now that I think about it that makes perfect sense. Thanks.
-
I have a grid I created that will have a series of 13 checkboxes and then information in the cells to the right of those checkboxes. That is all set up and working, but to keep the checkbox columns a nice looking width I had to abbreviate the column headers down to one and two letters. It looks nice, but if you don't know what the headers are short for it is rather confusings. I added tooltip popups for the checkbox columns, for easy reference, but my boss said another header row above the existing one that would help explain things would be helpful. I've been googling for an hour and I found others who have posed this question, but noone ever received an answer. So does anyone here know how to do this, or if it's possible or not? Ideally I want a header row inserted above my existing header row, and I'd like some of the columns to span more than one column width. Something that looks like this: ------------------------------------------------------------- | Brokerage | Direct | Client Data | //Header Row 1 ------------------------------------------------------------- | A | B | C | D | E | AA | BB | CC | First Name | Last Name | //Header Row 2 ------------------------------------------------------------- | (Data rows) | //Data Rows Start Here
-
I tried to search these forums for this, but none of the results seemed to be what I need. I have a simple VB.Net form with the basic grid on it. It is not databound, I designed it at designtime and will fill it during runtime. The one last thing I want to do is remove the first column, the one that has the selected rown indicator in it. I do not see any property in the DataGridView control for this, and if I try to do it at runtime "clientGrid.columns(0).width = 0" then it resizes my first column, and not the selected row column. So does anyone know how I can resize this column to 0, or hide or remove the column entirely?
-
Stored Procedure isn't seeing a Parameter?
kkonkle replied to kkonkle's topic in Database / XML / Reporting
OK, I got this one figured out... the issue was that "errMsg" was never initialized to anything, so its value was "Nothing" and because of that the parameter wasn't registering that is got anything. Once I tried 'Dim errMsg as String = ""' it worked. So that was the issue. Passing a Value of Nothing in for a parameter is equivalent to not passing in the parameter at all. -
Stored Procedure isn't seeing a Parameter?
kkonkle replied to kkonkle's topic in Database / XML / Reporting
The weird part is that the above code I am using is copied from another one of my programs that is working just fine. It has never had trouble finding the @errMessage parameter, so I think there is a deeper issue going on here. -
I am using the following Stored Procedure and I have seen it work. I have the database entries to prove it... however, most times the Catch block is triggered with the error: "Procedure 'Insert_Results' expects parameter '@errMessage', which was not supplied." Can anyone see why that would be? I am clearly creating and passing in a parameter named @errMessage. With cmd3 .CommandType = CommandType.StoredProcedure .CommandText = "Insert_Results" .Parameters.Clear() Dim param1 As New SqlParameter("@programName", SqlDbType.VarChar) param1.Value = PROGRAM_NAME .Parameters.Add(param1) Dim param2 As New SqlParameter("@statusMessage", SqlDbType.VarChar) param2.Value = statusMsg .Parameters.Add(param2) Dim param3 As New SqlParameter("@errMessage", SqlDbType.VarChar) param3.Value = errMsg .Parameters.Add(param3) End With Try cn3.Open() cmd3.ExecuteNonQuery() cn3.Close() cmd3.CommandType = CommandType.Text Catch ex As Exception If cn3.State = ConnectionState.Open Then cn3.Close() End If cmd3.CommandType = CommandType.Text End Try
-
I'm fairly new to ASP.Net 2.0 and I have a couple (probably simple) questions. I did some searching on this forum, and the tutorials and code library sections too, but didn't find what I needed. Searching google just turned up a lot of sites about how to make a printer friendly version of your page, but not how to actually print. 1) How do I add a button to my page to print my aspx page? I don't need to pretty up the page, or move any controls or anything, I just want to pop up the print dialog and let the user print the page. Looks like the most common thing to do is "window.print()", but Visual Studio doesn't like that. I have an "ASP:Button" control and in it's "OnClick" property I tried adding window.print(), but it says "window" is not a member. I also tried adding some javascript to my aspx page, then calling the function I defined in the "OnClick" property, but VS still didn't like it. Is there some simple way to just print the form from a button click? 2) I have, in my aspx page, the tag: <body style="background-image:url('renew_bkgrd2.jpg')"> Is there some way for me to change this in the code behind page before the page is loaded so I can slip a different jpg in there?
-
I have a VB program that tracks who update which fields in a table, and when. These changes get logged into a changeNotes table which shows the field name, the old value, and the new value among other things. There is an interface to list these changes and then approve or deny them. When a change is denied I need to go back into the table and put the old value back into the field that was update. I am using stored procedures for all of my DB access and I am having trouble with this one. Is is possible to pass in a column name as a parameter? This is the procedure: CREATE PROCEDURE dbo.reverseChange @recID As int, @column As varchar(25), @oldValue As varchar(40), @newValue As varchar(40) As update webrecruit Set @column = @oldValue where recID = @recID And @column = @newValue Is there something special I need to declare for the @column parameter, or is this just not possible to do with a stored procedure? /<evin