Topics
-
- 2 replies
- 810 views
hi all I have a FileUpload control on my page, and a button control called btnSave. I also have code that is responsible for uploading the images. The code also resizes and compresses the image. I have enclosed the code that responds to the btnSave handler in a try catch statement, with a stop statement with in the catch exception. I also have a number of break points within the btnSave handler code. The problem that occurs is that when I try and upload large images i.e. 12.7MB the btnSave handler code does not appear to run, and all I get is the page "Page cannot be display" as if I had no connection to the internet. Everything runs fine if the image size is…
Last reply by mike55, -
-
- Administrators
- 13 replies
- 4.8k views
Hello I have an old c++ dll (trdp.dll) inclusive .lib file. With an Visual Studio 2005 C++ Project, I can use it implicit. Now, I want to use the dll with a C# Project. It doesn`t work. I tryed two ways, calling the function (TrdpCreateLink(...)) 1. Using C# conform Variables as parameters for the dll functions 2. Using "unsafe" and "fixed" functionality Both times the same error occurs: The function will not be executed and the Last Error = 1008 I don`t know what`s that kind of error and how to avoid it. I added the code below. Thanks for any help! Michael Function declaration in c++ lib: [highlight=cpp] extern "C" _declspec(dllexport) unsigned…
Last reply by Pious, -
-
-
- Administrators
- Leaders
- 3 replies
- 773 views
i have a string, and it has to become a filename. the problem is it contains backslashes in many places. ive tried using the string.replace method to replace the \ with blank spaces but it doesnt work. its the same story with doubble quote charachters (the " charachter).what am i doing wrong?
Last reply by snarfblam, -
-
-
- Administrators
- 1 reply
- 994 views
so on vista, when i use stream writer to create a file anywhere i specify on my pc. apparently though, i am not authroized to do so. i believe this is a security "feature" in vista, as i can create files if i specify my home directory ( in C:\users\username). does anyone know a way around this?
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 3 replies
- 1.2k views
I'm trying to do some work that calls native methods...a lot of time I can find an example somewhere that will help me to know what the values of constants and the such are (such as MB_OKCANCEL)...but many times I cannot. Is there a source to find these values when they are not on MSDN or in the PSDK? Thanks
Last reply by Vasity, -
-
-
- Administrators
- 2 replies
- 1.4k views
I've recently been experimenting with packet sniffing for educational reasons, and have noticed that my computer is communicating via UDP constantly with at least two servers I don't recognize. I suspect that I may have some unwanted software hanging around, and I wonder if any of you know of any way to find out what programs are accessing the internet unbeknownst to me. Any ideas?
Last reply by mrthingtome, -
-
- 2 replies
- 2.8k views
I have code that performs an html scrape: Dim myConnection As New SqlConnection("server=(local);database=xxxx;Trusted_Connection=yes") Dim strAddress As String = ("http:" & straddress & ".html") Dim oRequest As WebRequest = WebRequest.Create(strAddress) Dim oResponse As WebResponse = oRequest.GetResponse() Dim oStream As Stream = oResponse.GetResponseStream() Dim oStreamReader As New StreamReader(oStream, Encoding.UTF8) Dim strData As String = oStreamReader.ReadToEnd() Dim regGames As New Regex("[regexpattern]", RegexOptions.Singleline) Dim mGames As Match = regG…
Last reply by MrPaul, -
-
- Administrators
- *Experts*
- 3 replies
- 913 views
All my project form's can not longer be shown. I get the following: "One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes." at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.GetValueNames() at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.AppendWindowPanes(RegistryKey parentKey, ArrayList windowPanes) at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.GetRegisteredPanes(String extension) at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.Cre…
Last reply by EFileTahi-A, -
-
-
- Leaders
- 4 replies
- 758 views
Can I convert a Label into a Text Box, and if so how? MT
Last reply by MTSkull, -
-
- 1 reply
- 1.2k views
Unless I am greately mistaken, I found a bug in Crystal Report. But maybe I am doing something wrong, so please tell me if problem is on my part. There are also 5 pictures atteched here: 1.JPG You see that I have defined a System DSN in ODBC Data Source Administrator named "My Database". 2.JPG As you can see database path is set to: (null)\Group.mdb. This is because program looks for the .mdb file in its path. I mean the same path as app.exe file. 3.JPG OK, when I proceed to show the CrystalReportViewer window, it uses the database in the app path to show the data in CrystalReportViewer. That's OK, if I close the CrystalReportViewer window and open it again, or if I …
Last reply by teixeira, -
- 1 reply
- 780 views
Quick question, if we install this on a web server, can it be administered remotely using the same management software as the full version? Thanks
Last reply by teixeira, -
-
- Administrators
- 4 replies
- 1.9k views
Hello, I've some doubts about error handling in sql server 2005. I'm confused about what to do, for example: should i use BEGIN TRANSACTION ... BEGIN TRY...END TRY BEGIN CATCH... END CATCH.....COMIT ...ROLLBACK... END inside the procedure and i get my sql execution prevented from any exception, but the SqlClient Connector doesn't know what happen, or should i have no error handling inside the procedure, and make the transaction inside my C# code, using SQlTransaction Class?? what is the best practice/advice about this, to catch all the errors, commit or roolback actions and have that information available at SqlClient Connector level in my client application ? T…
Last reply by teixeira, -
-
- 0 replies
- 1.2k views
I've got a simple datatable which I build dynamically in code, then i've bound it to a Gridview. Simple question how can I enable users to edit the rows in the grid view. Ideally a need to add a new column with an edit button which makes that row editable so the user can over type the values. Thank you
Last reply by Mondeo, -
- 0 replies
- 698 views
If I have a Stored Procedure and use the SqlDataSource to connect to it, my grid (MS or Infragistics) picks up the schema no problem and gives all the columns a basic formatting with what it believes the schema is intending. Not always perfect, but it's a starting point. Now I take the same Stored Procedure and access it through a WebService or an SQLServer Endpoint (turns a stored procedure into a web service call) and I add the WebReference to my project. Everything is looking fine and when I view the ASMX file (for the WebService) I get a list of methods and when I Invoke one, I see a schema prior to the returned information. But I connect an ObjectDataSource t…
Last reply by Denaes, -
- 1 reply
- 780 views
I have many many rows added to a datagrid. there is a checkbox in the first column of each row. i need to be able to extract the data for each checked row, and also count all the checked rows. does anyone know how to do this. i added the check box in the column properties of the datagrid in the visual studio designer, in case that matters.
Last reply by teixeira, -
- 1 reply
- 831 views
Hi I need to write an application for a balance device using VB.Net 2005, can anybody provide me of some articles or code to show me how to do it . the device has a RS232 output . thanks in advance
Last reply by teixeira, -
- 1 reply
- 1.3k views
I have written a Visual Basic Application, that exports what a user as written to PDF use the Crystal Report Viewer. My question is once the PDF has been created can another application open the PDF and add a watermark to it? This watermark would be temporary it would not actually add it to the image and the watermark would only be visible when this PDF is viewed in this application. And if the user prints out the PDF with this application it would print out the PDF with the watermark. Any suggestions on how to accomplish this would be grealy appreciated.
Last reply by teixeira, -
-
- Administrators
- 1 reply
- 1k views
Hello All, I am pretty new to multithreading but recently came across a problem which I feel needed to use multple threads. I am creating a dashboard app in asp.net c# which has a number of different sections (panels). Each section loads data for different departments such as finance, sales, markting etc. Each of the sections has a different database query attached to it and some obviously take longer than others. In some cases the queries can take 15-20 seconds to return results. I need to show a progress indicator for each section which is replaced when the data has loaded for the section and then a pretty graph is displayed in place of the progress animatio…
Last reply by PlausiblyDamp, -
-
-
- *Experts*
- 2 replies
- 835 views
Hi all I have the following data Doc# Date 1 2 Jan 2007 2 10 May 2007 2 14 May 2007 I want the latest entry for each document. Results should look like this: Doc# Date 1 2 Jan 2007 2 14 May 2007 How do I go about doing this? Thanks in advance
Last reply by sheriff, -
-
- 4 replies
- 1.6k views
I use a Cmd Prompt app (AVDump) which hashes and gets info from a video file (~200MB), which of course takes some time. While the App processes the file, it prints the progress into the cmd prompt, which I want to read into my App. Now I already achieved to read the line necessary from the cmd prompt, but with a huge delay, to be more exact, after the hashing is done. Since AVDump drives the CPU usage to 100%, I thought lowering the priority would solve the problem but it didn't. Here is the code I use: Public Class AVDump Dim CmdOutPut As IO.StreamReader Dim CmdProcess As New Process Dim Reader As New Threading.Thread(AddressOf ReadProgress) Pr…
Last reply by kurf,
-
Who's Online 0 Members, 0 Anonymous, 52 Guests (See full list)
- There are no registered users currently online