Topics
-
- 1 reply
- 1.5k views
I have a set of two comboboxes. When the value of combo1 changes I need to change the selecteditem of combo2. The selecteditem of combo2 is related to the particular value selected in combo1. The mechanics of this is easy enough but I'm having a problem. Since the combobox (combo2) is databound, its items are datarowviews. This means I cannot use items.indexof to search for my value. combo2.FindString and combo2.FindStringExact will not work in this instance because I need to search by the value. I can easily find the DataRow in the original DataSource.DataTable that the value is in but how do I convert it to a DataRowView which I can search on using indexof? …
Last reply by Diesel, -
- 1 reply
- 707 views
Ok, I am using the infragistic web tab, in order to have a generic save button for the all the tabs, i must set the some of my controls on the user control to public rather that protected, as per example supplied by infragistics. However when I either compile my code, or close by visual studio and reopen the code I find that visual studio has changed the controls back to protected. This is seriously doing my head in, I know its not a good idea to declare controls and variables as public, but I have no other choice!! Does anyone know how to stop visual studio making the changes?? I'm at the point of introducing my machine and visual studio to the sledge hammer that…
Last reply by college_amy, -
- 3 replies
- 974 views
Hi Guys, I know how to get the resolution of user and i want to know how to put the height and width to represent this resolution using javascript.. The code that i use to get width of user resolution window is screen.width, and screen.height So when i place image, i tried doing the following but didnt work I replace the width to be equal to = screen.width <asp:image id="Image1" style="Z-INDEX: 70; LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server" Width=screen.width Height="85px" ImageUrl=".jpg"></asp:image><br> Another question is how do i place or get the position just above the status bar in IE cause i want to place an ima…
Last reply by Cags, -
-
- Leaders
- *Experts*
- 4 replies
- 1.3k views
At a certain point in my program I need to launch a program [oApp.exe] with a specific command line parameter. To accomplish this I used the Process class as shown in the code below: Process.Start("oApp.exe", "c:\\text.txt"); This will launch oApp.exe (with command line parameter C:\Text.txt) which should take 5-10mins to process. Problem is, I want my code to WAIT for this process to complete/finsish (the 5-10mins) before going forward seeing as the next line of code assumes that the Text.txt was processed. The way it is now, the process is launched and them my code continues (it does not wait) which consequently causes a huge amount of fatal errors further d…
Last reply by Wile, -
-
- 1 reply
- 726 views
I have a function that returns a string array. A developer said I can do this: return a User object. As things get more complex, add properties to that user object. Anyone has an exmple of creating and returning a userobject?
Last reply by Nate Bross, -
- 1 reply
- 768 views
I want to have a window, that can contain many forms, and when they are minimized, they are placed at the bottom of the window, as in Microsoft access, how is this done?
Last reply by VagabondSW, -
-
- Leaders
- 6 replies
- 967 views
I'm trying to write a function in a class. when I create the function, before I even put any real meat in the function, i'm getting the warning that the function doesn't return a value on all code paths. A null reference exception could occur at run time when teh result is used. I've done some digging but can't turn anything up. can anyone help me out on by explaining what is going on. I did this in vb 2003 and didn't run into it... hope someone can explain it to me. thanks shannon
Last reply by Cags, -
-
- 1 reply
- 2.4k views
How do you use the Install for Everyone/Just Me selection made by the user when they install your application? I want to put a condition on a registry value based on what the user selects.
Last reply by grip003, -
- 1 reply
- 532 views
I have the following line of text that I want to store in a STRING oApp -o -E \STORE* "GRAB ALL SELECT*" (where STORE* and SELECT* are actually variables. So this gives me the following (I know it doesn't work but it illustrates my point): string sApp = "oApp -o -E \\" + STORE* + ""GRAB ALL " + SELECT* + ""; Of course that doesn't work at all, it generates a huge list of errors because I am using "s in my string (which is killing everything). So my question, how do I change sApp (string) so that it works? I need to have "s in my string AND I need to be able to add variables (as I did in the example). Any help/hints would be greatly appreciated, Thanks,
Last reply by Cags, -
- 0 replies
- 611 views
I understand the databinding concepts, however I have an issue. When binding controls on a usercontrol to a custom object I am left to use late binding. [csharp] txtAccount.DataBindings.Add(new Binding("Text", _customer, "Account")); [/csharp] This completely defeats the purpose of design-time validation of properties which would occure if I do this [csharp] txtAccount.Text = _customer.Account; [/csharp] I could of course use reflection to get a list of properties from the object and a list of textbox/property-name pairs, iterate through it and bind them all dynamically. However this approach seems to be utilizing more resources than needed (by going throug…
Last reply by DimkaNewtown, -
- 5 replies
- 1.5k views
hoping someone can point me in the right direction. I have some javascript dropdowns on a form, and want to pass the selected values of those ddl's to the server. so, I set a non-asp label to equal the values of both dropdowns. I now want to get that string, and pass it to the server. the problem is, anything on the client side will obviously not be "seen" server side, and that includes the code behind in my app. here's the function code on the html view function showItems() { var country = document.Form1.selCountry.value; var province = document.Form1.selProv.value; if ((country == '0') || (province == 'C0')) { alert('required! country and/or province'); } els…
Last reply by handlewithbeer, -
- 2 replies
- 1.4k views
Hi, I have an ASP.net form , which is a master detail form. The master section of the form has many textboxes and a Save button. The detail part is in a Datagrid, that is editable. There is an Edit button in each row , that the use clicks to edit the row. When the row is in edit mode , the row has an Update button. What I want is that if the user hits the ENTER key while editing a row , it should execute the code that is defined at the click event of the Update button in the row. Right now what it does is it submits the form when the user presses the ENTER key. How can I stop it from doing this , and execute the Update button code. Note: When the user presses th…
Last reply by handlewithbeer, -
- 0 replies
- 929 views
situation: Asp.net webUserControl with dropdowns, textboxes, and a datagrid. Using the ddls and txt to have a user specify certain attributes (country, product name, etc), and then populating a datagrid with the desired results. problem: Once the grid is filled with records, and a record is clicked (hyperlink column) the page posts back. The datagrid is no longer visible (possible: databindings are cleared on postback???) and the textboxes and ddl's above no longer have their original information in them. required: be able to click on a datagrid item and have that items details displayed on the page. also, to NOT have the ddl's and textboxes cleared, so as …
Last reply by handlewithbeer, -
- 12 replies
- 1.5k views
Using this thread by Plausibly Damp (http://www.xtremedotnettalk.com/showthread.php?t=83574), and various other threads, I've pretty much got the hang of how to use icons / images and such from resources. One thing I can't figure out is how to save the file - pretty much extracting the file from my apps resource, to the HD. Is there a way to do this, without 'cheating' by setting the image in a picturebox and saving it from there... A method that can work on all filetypes maybe - I'm thinking it would be possible to make a (very basic) installer this way, by adding a compressed archive to the project, then extracting it to a temporary location, then decompressing it (R…
Last reply by kcwallace, -
- 1 reply
- 635 views
All, I have the following code: <td><xsl:value-of select="UDF/Name/NameFirst" /><xsl:value-of select="UDF/Name/NameLast" /></td> The above code will show first name and last name like this: "JoeSmith", but I want to put a space between so it will displays "Joe Smith", how am I going to do it? consider " " does not work on XSLT. Thanks, Carl
Last reply by Cags, -
- 9 replies
- 4.1k views
I have a search field that when you hit enter it fires the keyup event and loads the grid. Well, in certain cases the field has to be numeric depending upon the search criteria. Well if it is not a messagebox appears and tells the user to enter a number, the problem is if the user hits the enter key, the messagebox is killed but then the keyup event is fired again therefore reexecuting the messagebox because the search field still has a number in it. Pretty much this is an endless loop unless the user actually hits the button using the mouse. Does anyone know how to prevent the keyup event from being fired or how I can detect that the enter key was pressed from a messageb…
Last reply by jccorner, -
- 0 replies
- 841 views
Hi, I am using the infragistic web tab control, with each tab having a web user control. Each control has some sort of validation, the problem that I am encountering is that when you click a button on one user control, it causes the validation on other user controls to fire off. Any suggestions on how to get around this problem? Mike55.
Last reply by mike55, -
-
- Leaders
- 4 replies
- 6.8k views
I need to capture the image of a hidden window. Can this be done without making it the top level window? (I have already code to capture an image of the top level window. But that involves a lot of hiding and showing windows and creates problem with flickering and that the whole area is not redrawn and I do not always capture what I want.)
Last reply by thomas10001, -
-
- 1 reply
- 799 views
Hi, I have two browser windows open displaying 2 different pages. Is it possible to call some of the methods on the page display on one browser window from a page on the second browser window? Mike55.
Last reply by mike55, -
- 5 replies
- 910 views
Hello everybody, Does someone have a piece of code to read an XML file as the one I put in attachment of this post ? I want to import it in a Sharepoint list and I have developped a webpart which creates the list and I'm blocking on the way I can read the file to create the names of columns and get the data of each column. If you want to know what I want to get, read the XML file in Excel. NB : I sent the file in txt so that you can read it first and notice that there is no malicious code in it. Thank you all. file_xml.txt
Last reply by scalf,
-
Who's Online 0 Members, 0 Anonymous, 59 Guests (See full list)
- There are no registered users currently online