Topics
-
- 4 replies
- 1.1k views
Hi all, I have a very strange problem with accessing and reading from my access database. my .mdb file is password protected, the pass is "12345". ok, the code works fine when I want to read data from Table "SC" but when I want to read the data from Table "Groups" I cannot!!! you simply can replace this code with the one is my form_load event: and will see that it won't work anymore! pleassssseeeeeeee help meeeeeee! :( Dim STrPath = System.IO.Directory.GetCurrentDirectory & "\0.mdb" Try DB = New OleDbConnection("Provider=microsoft.jet.oledb.4.0; data source='" & STrPath & "';jet oledb:database password=12345") Dc…
Last reply by ACCESS ADO, -
- 1 reply
- 1.1k views
Hi all 1st Question. How i can know that the file already successfully downloaded into local path in client pc. Im using the the Repsonse.Wirte(FilePath) 2nd Question All the file to download will display in the datagrid and 1 of the column display the status of the file either "Downloaded" or "Not yet downloaded" After i Downloaded the File i will update the status for the particular File in database. The status was updated in db and i try to bind the datagrid back but it seems like not working... Any comments? Please help i am stuck :confused: Thanks in advance
Last reply by ym21, -
- 0 replies
- 1.2k views
I need to be able to access a file via a network path using the TextFieldParser object. I have the following code: <code> Dim tfParser As New TextFieldParser(\\servername\e\April_CDR_Search\0423\filename.csv) </code> I get the error that the file can't be found, when I know it is there. When I change it to my local drive (with C:\ as the prefix, it works fine). Is there something else I need to include in order for the TextFieldParser object to find the file on the network drive?
Last reply by wsyeager, -
- 5 replies
- 3k views
Using visual basic .net, I was wondering how I would be able to get the target file of a shortcut (.lnk file). Thank you for any help.
Last reply by nbrege, -
- 0 replies
- 784 views
I have 2 computers, A and B. On computer A I have installed sqlserver 2005 and I have enabled Ad Hoc queries. On computer B I have an excel file, MyExcel.xls. On comp B I have installed only SQL Server Management Studio and it can access the databases on computer A On computer B I�m trying to select the data from that excel file(witch I remind you is on computer B) using the following query: select * from OpenDataSource( 'Microsoft.Jet.OLEDB.4.0', 'Data Source="\\ComputerB\Share\MyExcel.xls";user id=myUser;password=myPassword; Extended properties=Excel 8.0')...Sheet1$ When I parse this query I got the message: �Ad hoc access to OLE DB provider 'Microsoft.J…
Last reply by Puiu, -
- 0 replies
- 895 views
Hi: I am working on routine that takes in a datatable, and add extended properties to each column, by reading an XMLDocument object. The routine is currently doing a dt = source.copy, and then has a for each statement, in which extended properties are added by reading each XML node. I would like to also include a functionality so I can set sequence for the columns, so the routine returns a datatable with columns sequenced from a sequence attribute in my xml. Can someone please tell me how to set the sequence for each column in a datatable before returning it. Following is the function, that works right now, but doesnt do the sequencing althought it does take in a datat…
Last reply by manaleem, -
- 0 replies
- 960 views
Hi Guys, I have a few aspx pages which returns xml results.. Meaning user will send a url through external application and it will return xml results in an aspx page. For ex: user might send a url like : http://10.20.2.2/fol/getNames.aspx And this page might return some data in xml format like the following <names> <name id = "1" name="john" age="20" /> ... </names> So the flow is : User send URL -> XML Results return to aspx page -> apply xslt -> return html My question is that how can i apply xslt to this getNames.aspx so that it converts the data into some html format table? thank you very much for any sugess…
Last reply by a1jit, -
- 0 replies
- 873 views
Hi!, My web site on a server which does not allow changing file permissions. The server normally does not allow any file upload or writing for ASP.NET. I tried using "<identity impersonate= true>" on web config but this did not solved my problem. When I open my ftp connection and upload a file manually then my ASP.NET code can write for a while (about 20 mins). How can i find a good solution on this issue? Do I have to follow these boring steps each time? Thanks in advance.
Last reply by aliassce, -
- 0 replies
- 2.1k views
Hi, I need to get child control to the gridview during edit mode. In fact I have a date field, during edit mode, the date will be in a textbox, beside the textbox is an image button. For what I need is if user click on the button, it will popup a calendar. After user selected the date, then calendar will automatic close. And that selected date will be place into the textbox. So, how do I get control to the image button which is in edititemtemplate? Is anyone can help me!! Calvin
Last reply by calvin, -
- 0 replies
- 1.4k views
Hi, This is my first time to handle ASP.NET Web Applications after being drown into Windows Application for months :p. Currently, I have read about XCOPY, Publishing, Web Setup Project, Web Deployment Project and manual installation. I want to know what's the best solution to implement patching Web Apps. That is to the least possible to 0 downtime. I have read about this Application State that dies if I'm going to rewrite a dll that is running, can someone elaborate more about this? Please point me to the right direction. In short, I want to implement a `plug-n-play` architecture. Is it possible? Thanks.
Last reply by ZeroCoolJr, -
- 1 reply
- 5.2k views
Is it not possible to retreive session variables created in a Sub in a Public Shared Function? I get the following error message: "BC30369: Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class". I underlined the code where the error occurrs. Here's the code: Sub GetLoggedInUser() Dim userID As String Dim strFullName As String strFullName = User.Identity.Name 'Get just the corpId (remove the domain info) userID = strFullName.Substring(strFullName.IndexOf("\", 0) + 1) Session("sUserId") = userID End Sub Public Shared …
Last reply by slimshady, -
- 1 reply
- 1.8k views
Hello everyone. How can I get DX9 to render into a picturebox on a forum? Will this cause a slow down, and should I be using the whole window? The reason why I ask is becuase I need a chatbox which lines can easily be added and has support for different colors per line. So I find it easier to use Forms and use RichTextBox becuase I wouldn't know how to code an entire UI system in DX9. Also, I could use some good DX9 and C# tutorials. Thanks!
Last reply by ardman, -
- 0 replies
- 936 views
Second week at my new job and looking at the DB :) 1.They have made every field either char or numeric or created user-defined database type. Read about the diff between char and varchar:Char being faster and it's used for "fixed length" if it's less than 30 bytes. Varchar used for "variable length". 2. They have made ALL char fields NOT NULL with default value of BLANK. Questions 1. Still not sure what variable length and fixed length mean. How would I know if the data is less than 30 bytes? 2. Is there a downside to making everything NOT Null and having default of blank?
Last reply by eramgarden, -
- 0 replies
- 2.2k views
Hi, I try to use gridview with objectdatasource to obtain the images from the sql database. Within the database, a datafield is declare as "image" datatype. Now in my gridview, it doesn't show me the image instead of showing me a text "System.Byte[]" May I know how to solve it. What column I should use for the image? ImageField, TemplateField, Bound Field? Please help me!!! Calvin
Last reply by calvin, -
-
- Administrators
- 1 reply
- 923 views
I am trying to find out if there is an efficient way to add C# (.cs) files in a VB.NET project? Of course there is always the option of continuing developing in VB but my company has to make sure that there is no way to continue developing in the existing VB projects using C# before it will proceed with any decisions. I�ve read about multifile assemblies but the complexity of the existing projects make the process rather frustrating with endless drawbacks. Does anyone with previous experience on that field can help me here? Any ideas? Many thanks in advance Celetron
Last reply by PlausiblyDamp, -
-
-
- Administrators
- Leaders
- 7 replies
- 1.2k views
I have written some code to capture a image of the desktop and preview it within a picturebox, this works fine. The problem comes when I try to repeat the process and the following error is produced "An unhandled exception of type 'System.Runtime.InteropServices.ExternalException' occurred in system.drawing.dll Additional information: A generic error occurred in GDI+." I can only presume this is because my picturebox is still keeping the file open. There is not problem in overwritting the file if I close my program and open it again. I have tried pointing the picturebox image to nothing but this does not work. Private Sub btnCapture_Click(ByVal sender As…
Last reply by Cags, -
-
-
- Administrators
- 6 replies
- 1k views
Hello im a college student learning VB.net and im trying to optimize a bit of code and could use some help. I created 81 textboxes in my form named textbox0, textbox1, . . . , textbox80. I also have a 2D array called Game(8,8) as Textbox. Heres my current code: Game(0,0) = Textbox0 Game(0,1) = Textbox1 Game(0,2) = Textbox2 . . . Game(8,8) = Textbox80 I would like a loop that automatically increments the numeric digits at the end of Textbox object name. Something along the lines of: Dim Row As Integer Dim Column As Integer Dim intCount As Integer = 0 For Row = 0 To 8 For Column = 0 To 8 …
Last reply by Moritain, -
-
- 1 reply
- 5.8k views
Hi, I am using objectdatasource as datasource in page. I use the "File Upload" control to get the image and save to database. Within the database table, there are a lot of datafield. I got the problem of setting the parameter value for the image. I use three datafield to store the image relevant data. Datafield DataType 1. imgName (nvarchar 50) 2. imgData (Image) 3. imgType (nvarchar 50) Try Dim imgName As String Dim imgContentType As String Dim imgLen As Int32 Dim imgbin() As Byte If Me.FileUpload.HasFile = True Then If Me.FileUpload.PostedFile.FileName.Trim.Length > 0 And Me.FileUpload.Post…
Last reply by calvin, -
- 2 replies
- 864 views
Network admins at my company did something...took away privileges and add others and now my report interface no longer is able to read the user accessing the reports. This is important because there is code that is dependent upon the user that logs in. I need help trying to figure out what went wrong so I can fix it because they don't think they did anything wrong. Where do I start? User.Identity.Name used to return the username logging into the application. Now it returns nothing, so certain users are unable to access their special reports. Help?!?! :confused:
Last reply by emitrebel, -
- 0 replies
- 1.4k views
I'm at a new job and looking at their app... Last application I worked with was an internal application to the company that was developed for us by a vendor. They used windows authentication: There was table with userNames in them..one field was the "windows usename" that the users would type in. So when the app was launched, the windows login was checked against that field. And if I remember correctly, the database had a LOGIN user that was used in the web.config to connect to the database. Current app I'm looking at is not fully developed yet but in the database, I can see login names. This app is NOT an internal application...it will be sold to potential clie…
Last reply by eramgarden,
-
Who's Online 0 Members, 0 Anonymous, 48 Guests (See full list)
- There are no registered users currently online