Topics
-
-
- Administrators
- 2 replies
- 890 views
I'm not sure if this is better asked here or in the database section, but here goes: I've been asked to provide a shopping cart and ecommerce (i.e. checkout and payment) site. Ok, I've never done this before. We are going to do this with .NET Framework 2.0, and I don't really know what the data or even the database is going to be yet. My language preference is C#, but I can understand VB just fine. So, does someone have a very basic, step-by-step tutorial or something on how to code a shopping cart? I want to use good, acceptable techniques and be safe at the same time. I know there are a lot of things to do in a shopping cart, so I don't want to start banging aw…
Last reply by joe_pool_is, -
-
- 2 replies
- 2.1k views
Using the DXSDK I figured out how to record audio and play it back. I have two other things I want to do. 1. I want the recording to be automatic. 2. I need to have it stop automatically. The audio that I was to record comes in with three tones in the begining [Header] and ends with three tones [EOM]. I need to make directx record when the header starts and stop when the EOM is complete. So I some how need to watch a soundcard input and wait for this information. Audio level alone will not work. Does anyone know where I should start? Thanks ZeroEffect
Last reply by ZeroEffect, -
-
- Administrators
- 2 replies
- 905 views
Hi, all I've been programming in C#/C++ for a few years and keep running into these weird operators (I hope I'm using the right term) that I have never found out what they are. Here's a list of some: | >>= |= I'm working with some Home Automation products, which require me to do some programming through the COM port and can't figure out why some of the examples I found use these when working with bytes. Here's a few examples of what I found: BYTE hc; hc|= 0x4; for (BYTE bBit = 0x80;bBit > 0;bBit >>= 1) { BYTE hc; hc = houseCodes[(BYTE(cHouseCode) | 0x20) - 'a']; I'm a firm believer in NOT stealing code and I can't le…
Last reply by Fork501, -
-
XML posting
by Arul- 1 reply
- 700 views
Hi I am very new to C# and using VS 2005 I need to read some data from database and should post the data in XML format to a Gateway (ASP website). I dont know anything regarding how to Post a XML request to a web page. I have formated the data in XML, but dont know how to move into next step Please advice me what are the steps that I need to take to post a XML request
Last reply by Arul, -
-
- Administrators
- 3 replies
- 695 views
Hi, I have a string array. I want to reverse its members, is there a direct way to do this? For example: Input array: a1 a2 a3 a4 a5 Output array: a6 a5 a4 a3 a2 a1 ???
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 8.8k views
Hi, I have this match collection: Dim MC As MatchCollection = Regex.Matches(y, "x") Now I want to split the match collection to an string array! I know I can use MC.CopyTo(MyArray, ?) But the question mark is that I don't know where is the last used index so I can start from next one? How can I do this? Thanks:)
Last reply by PlausiblyDamp, -
-
- 1 reply
- 942 views
Hi forum members! :) I have a question in my mind: I want to read from an Access .mdb database file. This code works if I want to read the contents of a specific table from database: Dim StringConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + FileTextBox.Text + ";Jet OLEDB:Database Password = " + PasswordTextBox.Text Dim MyConnection As New OleDbConnection(StringConnection) MyConnection.Open() Dim MyCommands As New OleDbCommand("SELECT * FROM MyTable", MyConnection) MyConnection.Close() However, I want to do a different thing! I don't know if my database has any tables or not? Perhaps it has, so I just want to get the name of all tables in …
Last reply by Machaira, -
-
- Administrators
- 5 replies
- 1.7k views
hi there, i am new to this forum can anybody like to suggest , how to display and retive data more quickly.what to use datagrid or datareader, or creating xml file or what else we can do to get quicker. Any reply is most appreciated. Thank you Jitesh .Net Consulting
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1k views
I want to draw some text to the side of a vertical line. The text could be anything. The vertical line has a limited length. According to this link ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/CPref17/html/T_System_Windows_Forms_TextRenderer.htm "The DrawText methods of TextRenderer are not supported for printing. You should always use the DrawString methods of the Graphics class." I want to use the same procedure both on screen and for printing, so it seems I should use the DrawString methods, not the TextRenderer. I don't want the text to appear on just one line if it consists of more than one word, as it could then be too wide. I'd like it to appear on as ma…
Last reply by rbulph, -
- 1 reply
- 794 views
If the user begins a dragdrop operation, and then cancels it, either by dropping on an irrelevant part of the screen or by pressing the Esc key, how can I detect that this has happened?
Last reply by rbulph, -
-
- Administrators
- 2 replies
- 1.2k views
Hi all, I have implemented some code in my page that will generate a .txt file (on the fly) when the user click on an ASP button, then a download box will show up and so the user can download that file. But I want to delete the file right away after the file is finished downloading... can anyone give me some hint? Thanks, Carl
Last reply by microkarl, -
-
- 2 replies
- 906 views
I have a web application that I want to deploy to my webserver. It is a dedicated server from an ISP that I control through RDC. When I create the application, I do not see an option for the 3.5 framework. It only displays 1.1 and 2.0 the 3.5 framework has been installed. atleast according to the program list in the control panel Can anyone help? I am sorry if this is in the wrong category
Last reply by kcwallace, -
-
- Administrators
- Leaders
- 3 replies
- 897 views
Hi, I want to convert this function to VB.NET: Private Function FilterFileName(ByVal FileName As String) As String FilterFileName = Empty Dim MyLoop As Integer For MyLoop = 1 To Len(FileName) If Asc(Mid$(FileName, MyLoop, 1)) >= 97 And Asc(Mid$(FileName, MyLoop, 1)) <= 122 Or _ Asc(Mid$(FileName, MyLoop, 1)) >= 65 And Asc(Mid$(FileName, MyLoop, 1)) <= 90 Or _ Asc(Mid$(FileName, MyLoop, 1)) >= 48 And Asc(Mid$(FileName, MyLoop, 1)) <= 57 Or _ Asc(Mid$(FileName, MyLoop, 1)) = 32 Or _ Asc(Mid$(FileName, MyLoop, 1)) = 45 Or _ Asc(Mid$(FileName, MyLoop, 1)) = 95 Then FilterFileName = FilterFileName & Mid$(F…
Last reply by Nate Bross, -
-
- 1 reply
- 972 views
I have a page where I have <button> tags and I simply wrap them inside <a href> but TIDY says this is not legit. What's the correct way to do the following: <a href="?action=go"><button>GO</button></a> The W3C doesn't mention anything either: http://www.w3schools.com/tags/tag_button.asp Technically, the traditional way to do this, which works fine but is very verbose is: <form style="display: inline;"><input type="hidden" name="action" value="go"><input type="submit"></form> but as you have more GET values to push, this gets very long (I already have 3 in my real code). I'm just looking for a cle…
Last reply by travisowens, -
-
- Administrators
- 3 replies
- 3.8k views
Hello everyone here! I hope I will enjoy using the forum! OK my first post is a VB.NET request since I am confused at here. I just found a code snippet in MSDN which convert an input file to an output (ZIP GZ) file. It should be OK but I cannot figure it so it can accept multiple files as input and give me one single ZIP GZ output! Maybe a pro can help me! Dim SourceFile As FileStream = File.OpenRead(InPath) Dim DestinationFile As FileStream = File.Create(OutPath) Dim Buffer(SourceFile.Length) As Byte SourceFile.Read(Buffer, 0, Buffer.Length) Using Output As New GZipStream(DestinationFile, CompressionMode.Compress) Output.Write(Buffer, 0, Buffer.Length) End…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 907 views
I am developing an application that will run on a notebook computer that as part of its functionality will need to refresh the local database with a version copied down from a network server. The database is in SQL Server Express 2005. When I test my code though I am getting an error message that says... "Exclusive access could not be obtained because the database is in use." As part of the process I need to check to see if there are any pending changes before I allow the user to refresh the local copy of the database. That is the highlighted code below in red. Public Function RefreshLocalDatabase() As Boolean Dim strMessage As String = "" Dim bol…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.5k views
G'day X.NET! I have a dilly of a pickle here, wondering if anyone can help a neighbourino out. </flanders> I have an application I'm building that uses asynchronous TCP connections to ferry data about between a server and multiple clients. I'm trying to implement a TreeView on my server UI form that will display all the connected clients' usernames. The problem I'm having is that I've written a method populateUserTree(), and called it from my receiveEvent() method, which is an AsyncCallback for BeginReceive. Whoops! Doesn't work, as the thread I'm in can't access the controls on the form. The error message hints at using Control.Invoke to achieve this, …
Last reply by HastaLaVictoria, -
-
- Leaders
- 5 replies
- 5.7k views
I've upgraded a large VB6 app to VB.NET. However, the VB6 ImageList doesn't upgrade to the .NET ImageList. That's fine - I'll just dump the same images to a new .NET ImageList. Easier said than done! I don't have the images anymore, just the old VB6 ImageList - how do I extract the images from a VB6 ImageList ?? The ImageList is working in .NET, but I need the images in a new .NET ImageList to associate with other .NET controls. Here's the code I was trying to use to recover one image as a test, but the second line causes an exception: Dim test As stdole.IPictureDisp = Me.MyVB6ImageList.ListImages(1).Picture Dim testimage As System.Drawing.Image = VB6.IPictureDi…
Last reply by MarkJuras, -
-
-
- Administrators
- 2 replies
- 829 views
1) How can I round a variable of the type Double to six most significant numbers (not six decimals)? 0.000001403012501 --> 0.00000140301 1403012501 --> 1403010000 2) How can I convert a variable of the type Double to string in exponential form - even if the exponent would be something very small? 0.00000140301 --> "1.40301e-06" 3) I bet you could do the thing in the first question at same time you do the thing in the second question, but I want to keep those procedures separate.
Last reply by JumpyNET, -
-
- 1 reply
- 907 views
mmm, English is not my local lang, however "flank speed" is used on virtual things like email? for example is it ok if I say "email sent at flank speed"?:confused: is it also formal or informal?
Last reply by mskeel,
-
Who's Online 0 Members, 0 Anonymous, 43 Guests (See full list)
- There are no registered users currently online