- 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
606 Posted Topics
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 | |
Re: Are you using firefox? It won't display in non-ie browsers. | |
Re: What are your needs for a website? ASP.NET and Sharepoint are completely different ballgames. If you are just needing a website, or programmability built in to a website I would suggest asp.net. If you need a CMS system, many users, ability to change content from users, many companies or sites … | |
Re: use a readline down to row 29, then however your columns are delimited, read 6 through 9 what piece are you having trouble with, please post the code | |
Re: I'm sure you have already looked at obfuscation. That is about the best solution. If you are writing managed code, as in C#, it can be decompiled. Here is a program that makes it harder than just plain obfuscation, but still doable, think its outdated now, but there might be … | |
Re: [code] public boolean isEmply(){ if(top == -1){ return true; } else { return false; } } public boolean isFull(){ if((stackSize - 1) == top){ return true; } else { return false; } } [/code] also change your push to use top++ | |
Re: The problem is your "public" user most likely does not have permissions to call the insert stored procedures. A lot of times, you may have a separate user for searching or selecting data, than inserting data. | |
Re: You might want to try it with user controls rather than forms. Create the user controls and add them to the panel. If you really want forms, then take a look at MDI. | |
Re: you can import the data, in management studio right click on your destination database and click import, then set up a mysql connection to your other database depending upon how mysql specific the queries are, they could most likely be used as well, just swapping out the connection strings | |
Re: i think you are concerning yourself with the id's when you actually don't need them here, you know the order already page 1 select * from table limit 1 offset 0 page 2 select * from table limit 1 offset 1 if you are doing ordering, just add the order … | |
Re: why not just delete the row from your datasource and reload the grid? | |
Re: you need to have an open connection, just as it says, right before you call execute reader call this [CODE] if (conn1.State != ConnectionState.Open) { conn1.Open(); } [/CODE] also it would be a good idea to create a separate class or method for calling all sql functions, that way you … | |
| |
Re: Agreed, it is a little trickier in C# than some languages. Would placing this datagrid in a user control and adding it to the forms work for you? | |
Re: I'll give you a place to start The problem you are running into is with indexing urls that are "urlrewrite" This isn't specific to horse racing, its widely used, but theres a place to start | |
Re: this isn't necessarily pertinent to vb, but normally what you would do is create a locked column in the database, whenever they start reserving set it to locked and not allow any other users to access when the column is set | |
Re: A good way to think about top level objects, is what ways you 'access' this object. You interact with the top level objects, for the top level objects to interact with low-level objects. An example is you can use the door on it, but regardless of the door, you have … | |
Re: I have ran into this before, when trying to communicate between drivers and applications. If you are running on Vista with sp1 this is a no no, and it will give you this error. I would recommend changing your code to either use registry or file to communicate between the … | |
Re: to get the files use [code] string dir = @"C:\images\"; string[] files; int numFiles; files = Directory.GetFiles(dir); numFiles = files.Length; string nextFileName = (numFiles + 1).ToString() + ".jpg"; [/code] | |
Re: converted into object oriented code? what language if so? | |
Re: [quote]If I add a distinct clause to the statement, only 9 records are returned from the budget table. [/quote] are you sure you are needing to do 34 updates, 9 records only need 9 updates if the update isn't working properly, can you give us a little more of the … |
The End.