Topics
-
-
- Administrators
- 2 replies
- 1.4k views
I am encrypting a large text file. I am getting a hash value before in encryption and then attaching the hash value to the file though the encryption stream as the last part. I then am decrypting the file, attempting to extract the hash value and compare it to a hash value of the file after it has been decrypted. I am also keeping the old hash vlue temporarly to see how they all three compare. Now, the character count is the same except for the before and after encrypt/decrypt phase except that the decrypted file with the hash still on is 21 characters longer than the original, not 20 as I expected. So, not if I take off just the original file protion, use the same h…
Last reply by cpopham, -
-
- 1 reply
- 889 views
Hi All, I've got a question, I've created a upload page with which I'm able to upload file to my server. When a file is uploaded it get a random filename on the server preventing that user get the error file allready exists. In a DB I've stored the original name of the file. Is there a way I can change the name of the download file for teh user eg. I upload a file called "this is an example.doc" it will be stored at the server as "jbytbxtwra436qwvyuxas564eq7wvf7q9xwe .doc" Now when the user downloads the file I want it to be called "this is an example.doc" again.. is this posible?? Tnx! Mrb
Last reply by MisterB, -
-
- Administrators
- Leaders
- 28 replies
- 5k views
Do you folks remember Eye of Beholder game or even Dungeon Master? http://img.photobucket.com/albums/v698/EFileTahi-A/1052220900-00.gif If you know/played any of these games then you will also know that when we move in any of the four available directions the player moves by gaps (blocks) instead of a smooth animation. Well, I'm wondering how does such grahical engine works. I mean, I know we need a 2D map like a crossword board representing the dugeon maze, but, how to assemble the graphics representing the maze? Do we have a full image per map block? (I don't think so). Or do we have some sort of formula to render the right piece of graphic? Like: Render the…
Last reply by EFileTahi-A, -
-
-
- Administrators
- 1 reply
- 1.3k views
Hi all, Is there a way that you can allow you a form to connect to multiple database types by creating a separate database class in C#? What I'm aiming to do is create a data class that has the connection information for both an OleDb and SQL database connection. I want to be able to allow a form to connect to the appropriate database type based on the information that is included in the data class. For example, I have 2 separate projects in my solution. The first project is my Windows Application. The second is a class library. My library includes a data class, and in the data class I have a public string property that returns the type of database that is bein…
Last reply by PlausiblyDamp, -
-
-
- *Experts*
- 2 replies
- 1.3k views
Dear All, I have developed a simple security class which contains a private nested class. This nested class displays a form on the screen at the users (programmers) request to obtain credentials from the end user. Is this good or bad practice, and if it's bad, then is there anyother way of declaring the form and still retaining its abstraction (the reason being I want the form to remain fixed and not be changed dynamically)? Thanks in advance, Paul.
Last reply by mandelbrot, -
-
- 1 reply
- 987 views
I have the following problem in my programming scenario: Someone clicks on a link to take a Math Placement Test which opens a Math Placement Test pop-up after entering the password and submitting. They close the pop-up window without taking the test, and then click on any other link. They then click on the back button on the browser and it takes them back to the previous page, and the closed pop-up window pops up again. How can I clear the browser history (in the code-behind) to avoid this problem?
Last reply by Mister E, -
-
- Administrators
- 3 replies
- 2k views
Hey all, I've been charged with finding out how you write an application that is modular. Lets say for example that I need to write an application that takes information from data sources such as an XML file or a HTML form etc and then outputs the in a new format. How would I make the application modular in terms of someone else being able to write and install there own module/assembly for the system that enables the same system to then make use of another data source such as a database or an RSS feed without having to make any changes to the original application? I realise that this will involve object orientation and I believe that i'd be able to use interface…
Last reply by samsmithnz, -
-
-
- Administrators
- 2 replies
- 2.4k views
I'm trying to make a linked server from an Excel file, but i get an error when I try to select from it: OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "stanley" returned message "Unrecognized database format 'F:\Analiza.xls'.". I use SQLEXPRESS 2005. It worked fine when i tryed to link to an access mdb file... Any ideea why the database format is not recognized ?
Last reply by Puiu, -
-
-
- Administrators
- *Experts*
- 2 replies
- 1.4k views
I am using vb basic.net 2003 and MS access as database. I read a few tutorials about creating stored procedures. The instructions were go to server explorer and right-click on database stored procedure to create a new procedure. The problem is, there is no such option when i follow suit. is this because i am using vb basic standard and not visual studio? How else can i try to create a stored procedure? Please help.......
Last reply by Nerseus, -
-
- 1 reply
- 787 views
What would cause a grid to not subscribe the listchanged event. I just can't understand what's happening. listchanged is always null
Last reply by barski, -
- 1 reply
- 903 views
know how to do a pop-up in ASP.Net. For example, user clicks on a button, the pop-up pops, asks a question, user clicks "ok" or "cancel" and the code captures the result (ok or cancel). But this is what I want to do: User clicks on a button. Pop-up pops and user clicks ok. code does some processing and returns value of True If value is true, pop another pop-up dialog and ask user if they want to continue How can I do the second pop-up?? I have found some examples like the one in this link but this is when user clicks on something http://riderdesign.com/articles/displayarticle.aspx?articleid=13
Last reply by eramgarden, -
-
- Administrators
- 3 replies
- 4.1k views
I am writing a WebService in VB.NET. So I just started by the dummy "helloWorld". I can compile the dummy without problems. But when I want to run, these errors occur: 1.) Messagebox with "Error while trying to run project" 2.) In the Output-Debug Box the list like: ... '/LM/w3svc/1/root/MyService-4-127819837944665120': Loaded 'c:\winnt\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll', No symbols loaded. '/LM/w3svc/1/root/MyService-4-127819837944665120': Loaded 'c:\winnt\assembly\gac\system.web.regularexpressions\1.0.5000.0__b03f5f7f11d50a3a\system.web.regularexpressions.dll', No symbols loaded. The program '[4936] aspnet_wp.exe: DefaultDoma…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- Leaders
- 24 replies
- 4.1k views
i have a habbit of writing code as i go along, and tackling problems as i meet them, but my code is a bit of a mess because of this, and difficult to read when you come back to it after a few weeks. does it make much of a diference to plan out your coding strategy first? the thing is that im not awfully expirienced, and to plan something , you need to know how it all works first and i learn as i go along. how do you all keep your code tidier?
Last reply by mandelbrot, -
-
public Queue exQueue = new Queue(); cmdQueue.Enqueue(new object[3]{byte n1, byte[] data}); Later ..... object packet = cmdQueue.Dequeue(); Now I want to extract the n1 and data from the packet, but It does not seems that I have any luck with that. Any suggestions ?
Last reply by Cags, -
- 5 replies
- 964 views
i have a floating DIV tag which moves along with the page, already tested it on modern browsers (with .HTM as extension, tested with IE6, NS8, Opera 8, Firefox 1.5 and Safari 1.x), it was working but it doesnt when i inserted the same code in my ASPX page. heres the same html page im using <html> <script language="javascript"> function moveDIV(source) { var frame = document.getElementById("floatingDIV"); var offset = 0; // IE compatible if ((document.all?true:false) == true) offset = source.scrollTop; else offset = document.body.scrollTop; frame.style.top = offset; } </script> <body OnMouseMove="moveDIV(this)"> <div id="floatingDIV"…
Last reply by lamy, -
- 2 replies
- 1.1k views
Im using C# 2003 and right now im reading and writing directly to the database, but I belive at some point soon I will need to use datasets, I have never used datasets before so I have a few questions about them. 1. how easy will it be to convert my current update/read functions, or am I going to have to recode it all? 2. When using datasets 1 dataset will hold all my tables right or do I need to create a dataset for each table? also if anyone knows of a good sample of doing this a link would be great cheers :D
Last reply by slip, -
- 1 reply
- 3.1k views
Looks like I have a million questions. I'm running VS.net. I try to connect to an AS/400 database. I drag the OldDbDataAdapter, then the Data Adapter Configuration wizard pops up. I choose New connection. I want to connect to a DB2 database on AS/400 (iSeries), so I choose 'IBM DB2 UDB for iSeries OLE DB Provider', entering IP address on the server name text box, enter the user name, add the library I wants to access in default collection, test Connection - succeeded. Using Query Builder, it shows all the table (physical file) and view (logical file) in the library. I select the 'temp' table, select * (all columns) - SELECT MYLIB.TEMP.* FROM MYLIB.TEMP. Now…
Last reply by laredo512, -
- 0 replies
- 2.1k views
Can anyone recommend some free blogging software that is fast, secure, reliable etc and that runs on the .net 2.0 framework i tried installing DasBlog - and it seemed like it had good reviews and all, but when i installed it, any changes to the configuration took about 5 mins to take affect and completely brought the web server to a crawl while doing so. any recommendations? or even any recommendations for some relatively cheap commercial versions?
Last reply by sdlangers, -
- 1 reply
- 1.5k views
Hi I have a windows server 2003 running with IIS6. I created a set of pages using aspx and vb.net that does content management for the rest of the site. The basics involve reading from htm files and then writing to them. However, I'm getting this error System.UnauthorizedAccessException: Access to the path "serverpath\default.htm" is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is imp…
Last reply by cz007j, -
- 0 replies
- 2.1k views
Hi All, I've got a realy strange problem. I've got an ASP application installed on iis (ver. 6) When I test the application via the intranet ( by typing the ip adress of the server in directly) everything works fine.. On the left side of the application I've got a tabstrip for navigation and via the intranet I can select anything I want and it works fine. Now when I test the application via the I-Net( by going to the domain) the tabstrip does NOTHING :confused: (***..) It shows just plain text... So I can't select anything... :( ( its the same computer I'm testing on so it won't be the explorer settings.. I've allready tried to set everythin on enabled…
Last reply by MisterB,
-
Who's Online 0 Members, 0 Anonymous, 59 Guests (See full list)
- There are no registered users currently online