Topics
-
-
- Administrators
- Leaders
- 5 replies
- 13.9k views
I've found a very through example on the BackgroundWorker Class on MSDN here, but I have a question that it does not address. I have at least three (3) different, time-consuming tasks that I'd like to use a BackgroundWorker object on: Two for database queries, and one for text validation. Can a single BackgroundWorker object be used for all three (3) of these tasks? Some of the tasks do, on occasion, call on the other tasks. The BackgroundWorker's DoWork method includes a sender object. Would the sender be the name of the function that I used to call the BackgroundWorker's RunWorkerAsync method? Alternately, I could drop a separate BackgroundWorker component o…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.9k views
Hey, I've got a GridControl in an ASP site (VB.NET codebehind), VS 2005. The user has control over the columns displayed, so the grid needs to be re-built. As well as that functionality, one of the first two columns (the Image Buttons) needs to be changed based on data in that row (it is the project status, FWIW). The first time the RowDataBound event fires, everything works fine. After that, any subsequent Bind event errors out. First, here's the code in the RowDataBound event that fails: Dim dt As New DataTable Dim dv As New DataView dt = Session("dt") dv = dt.DefaultView Dim stat As Integer Dim ViewProj As ImageButton = CType(e.Row.FindControl("Sta…
Last reply by SteveoAtilla, -
-
- Administrators
- 4 replies
- 1.2k views
Hi all, I recently completed certain milestones of a project I am developing in VB.Net/SQL2000, locally in my computer at my workplace. I am using a local database and my computer is part of a domain. Now, I got some users over the domain (I am not an admin). Is there any way I can make it possible for the users (of the same domain) to test my project using the local database in my computer? That is, could my computer be used as a "server", just for the purpose of testing the program? Thanks
Last reply by Borix, -
-
-
- Administrators
- 1 reply
- 2.3k views
Hi, I was looking at some good video tutorials by Beth Massey http://msdn.microsoft.com/en-us/vbasic/bb737878.aspx. They are good but the thing is these are applications. I have found if I open Visual Studio 2008 and create a web based project the data menu item is not visible on the toolbar and the data sources tab is not visible. Is there a way of getting these items to show in ASP.NET project? Cheers Dave.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 4 replies
- 1.6k views
I'm declaring some session variables on one form, that are in a subdirectory. They do not seem to be visible in the main directory whenever I redirect to them. Am I missing something? Session variables are not declared, are they? I'm trying to port over some old Classic ASP code to C#, and I am declaring them similar to before: Session["value1"] = txtValue1.Text; Whenever I get to my other form, however, Session["value1"] does not exist. What's "the way" to do this?
Last reply by joe_pool_is, -
-
-
- Administrators
- 5 replies
- 1k views
I've got some code that works whenever I fill my SQL Server tables, but now that I am getting used to how to do this, my technique is starting to look like it does some unnecessary steps. I have found that before I can call a SqlDataAdapter's Update method after specifying an InsertCommand, I have to provide it with a Select statement and call the Fill method so that the Column Names are known whenever I try to populate fields for my InsertCommand. After I call the SqlDataAdapter's Fill method, I create a NewRow for the DataTable, and supply each Column Name with a Value. Next, I create a new SqlCommand and add Parameter values to it. After this, I assign this…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 2k views
I'm trying to switch to a virtual listview, instead of a normal one, since it can makes things alot easier/faster for me. And I got it almost to work, but there is one thing which doesn't work: If I change my array associated with the virtual listview, I don't know how to update that specific ListViewItem. To make it update I would have to scroll up/down until the item is out of sight and then scroll back. Which is obviously not the best solution.
Last reply by Arokh, -
-
- Administrators
- 2 replies
- 1.4k views
I wrote a spell checker function, however I could not adjust its language. Although it has an adjustment part : object objLanguage = Word.WdLanguageID.wdEnglishUS; , it is not working. I live in Turkey and it works Turkish. Can you help me ? Thanks a lot. public string[] Suggest2(string word) { object nothing = Missing.Value; object objLanguage = Word.WdLanguageID.wdEnglishUS; //ask MS Word to spell check the given word bool spelledright = this.application.CheckSpelling( word, ref nothing, ref nothing, ref (object)objLanguage, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing ); if (spell…
Last reply by Dehanny25, -
-
-
- Administrators
- 2 replies
- 888 views
I have a class with a list of string and integer pairs. How could I make two methods for sorting the ShortFuncs list - one by the string and one by the integer? Public Class ShortCutFuncListClass Private Class ShortFuncClass Public Name As String Public ActionNumb As Integer Public Sub New(ByVal par_Name As String, ByVal par_ActionNumb As Integer) Name = par_Name ActionNumb = par_ActionNumb End Sub End Class Private ShortFuncs As List(Of ShortFuncClass) Public Sub New() ShortFuncs = New List(Of ShortFuncClass) ShortFuncs.Add(New ShortFuncClas…
Last reply by JumpyNET, -
-
- 2 replies
- 3.7k views
i have an asp.net site. I'd like to be able to create a textarea with javascript. I don't want to use a post back. does anyone have a code snibit they can share. i've found a couple on the net, but haven't been able to get them to work. what kind of plumbing needs to be in place so that the textareas show up in the correct spot. do i need to put it in a table, or can i have a div tag and add it inside the div tag. not real handy with javascript, so if you have code example that would be great. thanks shannon
Last reply by Diesel, -
- 3 replies
- 1.6k views
Hi, I don't understand how relationships and constraints in a database work... Actually, I just wanna know if this is possible: I have two tables: 1. contains a primary key, and the 2. contains foreign key that is linked to the first one. It looks like this: 1.table ID Name Year 2.table ID Description Is it possible to delete a record in first table (which contains primary key), and then, because of their relationship, rows in the second table containing ID (foreign key) be deleted? Or do I need to do it all programatically Btw. I'm using Microsoft SQL Server 2005 Express
Last reply by Nate Bross, -
- 2 replies
- 1.7k views
I am after reading on the microsoft site (http://www.microsoft.com/sqlserver/2008/en/us/express.aspx) that SQL Server 2008 Express is available free. Anyone know where it can be downloaded from? or if the Compact version would be more suitable. I am looking for a version that I can play with windows and web applications in my own free time. Mike55.
Last reply by pendragon, -
- 3 replies
- 864 views
Hi, I have an (I think) easy question. I have a situation where i have an array of strings like Dim Names as string() and this array doesn't always have the same number of strings in it. My problem is that i have to print that strings on to my aspx page but I obviously can't use label controls on my aspx form for this, cause I don't know how much strings will I have, so I can't populate my labels. I need to print these names in a list like this: Peter Bob Michael So, what control to use for this or how to print these names one below the other?
Last reply by ttkalec1, -
- 0 replies
- 943 views
I found a nice sample (http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx) on how to set the action attribute of a form HTML element. However when an ajax request is made the code throws a NPE: public class FormControlAdapter : ControlAdapter { protected override void Render(HtmlTextWriter writer) { base.Render(new FormWriter(writer)); //Throws NPE when a ajax request is made } } public class FormWriter : HtmlTextWriter { public FormWriter(HtmlTextWriter writer) : base(writer) { base.InnerWriter = writer; } public FormWriter(TextWriter writer) : base(writer) { base.…
Last reply by JCDenton, -
-
- Administrators
- 10 replies
- 1.3k views
I have a function that takes a Type object as one of its arguments, and I'd like to make sure that it only gets called from code within the class indicated by the given Type. What's the best, most performant way of doing this? Thanks in advance!
Last reply by Tygur, -
-
-
- Administrators
- 7 replies
- 1.6k views
Hi I need the MD4 Hash algorithm and since I couldn't find it in .NET, I looked for libraries in the Web. The only thing I found was something written in Java. Now I'm trying to convert the source. I fixed all the syntax errors but it seems I converted some bitwise operators wrongly. Javacode: int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | in[i++] << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | in[i++] << 24; ... int aa, bb, cc, dd; aa = a; bb = b; cc = c; dd = d; aa += ((bb & cc) | ((~bb) & dd)…
Last reply by jo0ls, -
-
-
- Administrators
- 2 replies
- 2.4k views
I used to append a file using Classic ASP on my website. I finally migrated parts over to .NET, but I can't seem to find out how to append a file. I can still determine if the file exists using File.Exists, but I don't know how to fill it! if (File.Exists(strPath) == true) { FileStream fs = null; try { fs = File.Open(strPath, FileMode.Append); char[] data = historyMsg.ToCharArray(); byte[] bdat = new byte[2 * data.Length]; for (int i = 0; i < (2 * data.Length); i++) { // how do I fill this part??? } fs.Write(bdat, 0, bdat.Length); } catch (Exception err) { Response.W…
Last reply by joe_pool_is, -
-
Xna?
by Nate Bross-
- Administrators
- Leaders
- 7 replies
- 1.3k views
Why isn't there an additional Sub-Form for The XNA Framework? It is different than Managed DirectX 9.0c... Just wondering...
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 4 replies
- 1.3k views
I was tasked to find a way to allow our team to dynamically pull down a set of lists within a Time Correction program we wrote. I figured that putting an xml file on a web server and use a webservice to not only call the specific lists but also allow us to update it as well. The web service does what it is supposed to do, we can retrieve a list of users, update the list with new members or delete them as we see fit. The problem is, it only appears to return data when I browse to it in the browser. When I try to do the same via the vb.net form, it doesn't error, it just doesn't return the expected string. I found that it does if I deploy the web service locally on my …
Last reply by Nate Bross, -
-
- 3 replies
- 1.4k views
Hi, I need to write a program to check whether a webservice is up or not? The program should take the service as input and determine whether the webservice is up or not? Can you suggest me some ideas. Thanks, smriti
Last reply by Nate Bross,
-
Who's Online 0 Members, 0 Anonymous, 47 Guests (See full list)
- There are no registered users currently online