- Strength to Increase Rep
- +12
- Strength to Decrease Rep
- -3
- Upvotes Received
- 45
- Posts with Upvotes
- 43
- Upvoting Members
- 25
- Downvotes Received
- 5
- Posts with Downvotes
- 5
- Downvoting Members
- 5
Software Engineer
Re: its not open from another application is it? also wrap a try catch around and check and make sure it is accessing it properly | |
Re: I have it, its a pretty descent small book. Here's also a couple links that might be of reference [url]http://www.comp.lancs.ac.uk/~ss/java2c/diffs.html[/url] [url]http://www.d.umn.edu/~gshute/java/c2java.html[/url] | |
Re: wow, thanks for all the links, might be able to take a day off from google now :-) | |
Re: Good explanation shanti. I would also say that null is much easiet to query for than a blank value. | |
Re: either a path or a url to the image file | |
A common question that routinely comes up is how to share data between forms. I have outlined two common ways to pass data between forms, among many others. I have used a public property on the output form to accept a value and update the display. I also have a … | |
Re: ok we see your assignment, what have you done so far, what are you having trouble with? | |
Re: you want a single stored procedure to do all of that? i would advise to separate each out | |
Re: You don't necessarily need 'permission accounts'. Lets say for instance you have a user account id, group account id they are part of. You can create your files table something like this file_id user_id group_id file_name file_path then when you need to show the user/group their files [code] select * … | |
Re: You are still adding the companyid parameter. Take that out and you should be good to go. [code] myCommand.Parameters.Add(new SqlParameter("@idcompany",i_companyID));//, SqlDbType.Int, 4, "ID_Company")); [/code] | |
Re: It is wayyy to complicated to convert a doc to pdf, if you are just wanting to use your own code. I agree with LizR, use a pdf printer. You can use Ghostscript PDF Printer and call through code. I have also used pdf995. The pdf spec is fairly complicated … | |
Re: In the past I have used SharpZipLib [url]http://www.icsharpcode.net/OpenSource/SharpZipLib/[/url] | |
Re: Lots of moving pieces here. This most likely makes me think its a permission issue connecting to the database, but might not be. Can you make sure your connection string is connecting as a single user to the database with the same host, regardless of the logging in user? Any … | |
Re: You need the user control to save its data, not sure what you need so can't give you any tips there yet. I don't know how they work, but you might be able to make them member variables on the form and never dispose of them. My advice would be … | |
Re: Create all that code as a class, then you will be able to share that code in between multiple pages. | |
Re: You really can't do this from the fileupload control. Based on certan ie permission settings, it won't always work in ie either. My advice is to use either your own control and load the textbox value on postback, or use a 3rd party control. You normally don't need, care, and … | |
Re: Where are you setting the connection to the command? My advice is to not set the connection open on the form shown. Only use the connection when you are going to run a sqlcommand / query. That way, when you are done with it you can close it. | |
Re: Do you have the source you can show us where you are assigning the buttons? Make sure you are adding the action listener from both buttons. Also assuming those two objects are buttons. [CODE] connect.addActionListener(this); disconnect.addActionListener(this); [/CODE] | |
Re: As previously stated before it could be a lot of things. The schema doesn't look like it should take anytime to query regardless if indexes are in place or not. When you are in this 10 min waiting phase, run this command on the database, just in management studio is … | |
Re: Use an ArrayList, so your list can automatically grow as you need it to. | |
Re: Isn't it UID instead of User? | |
Re: here is the sql code to get it [code] SELECT sysobjects.name AS "TABLE_NAME", syscolumns.name AS "COLUMN_NAME", systypes.name AS "DATA_TYPE", syscolumns.LENGTH AS "LENGTH" FROM sysobjects INNER JOIN syscolumns ON sysobjects.id = syscolumns.id INNER JOIN systypes ON syscolumns.xtype = systypes.xtype WHERE (sysobjects.xtype = 'U') and sysobjects.name = 'MyTableName' ORDER BY sysobjects.name, syscolumns.colid … | |
Re: make it public [code] public class classinprac1 [/code] | |
Re: Along with all the previous, you MUST know where the file will be, whether that is remote or local. If it is remote you can use a unc path like \\192.168.1.100\shared\myfile.txt. A possibly better solution would be to use mapped network drives, and not necessarily hard code all these paths. … | |
Re: What are you wanting then? Are you wanting the data or gridview to be written? Also you are using htmltextwriter, which is exporting html. | |
Re: A tick is based upon the time interval. For example you set the timer to poll every 1 second. After 1 second elapsed, tick After 2 seconds, tick Is this what you are asking? | |
Re: is the first one in a stored procedure? where you pass @table_name in? | |
Re: Sounds like a homework question to me. Why don't you start off with what you have, and what you really have questions, not just our answers. | |
Re: you are trying to run the jar file do you have this in there? [code] public static void main(String [] args) [/code] i'm assuming you don't, but for a jar file to be run, just like any other code, it needs to start with a main method |