Topics
-
- 5 replies
- 1.8k views
I am trying to create a search page in VS 2003 that will search all of the subfolders in a directory. I had a way to do it in asp but .NET is different. I tried this: Dim strPath As String = "/intranet/Quality/Discrepancy Reports Closed" Dim strQuery As String Dim myDirInfo As DirectoryInfo strQuery = txtQuery.Text If strQuery = "" Then strQuery = CStr(Request.QueryString("query")) txtQuery.Text = strQuery myDirInfo = New DirectoryInfo(Server.MapPath(strPath)) dgFiles.DataSource = myDirInfo.GetFiles("*" & strQuery & "*") dgFiles.DataBind() Any suggestions would be appreciated.
Last reply by lorena, -
- 0 replies
- 832 views
Hi people, It seems that Crystal has issues with large text fields. I tried making a simple report from a MS SQL 2000 DB where one of the fields was a type "text". The only way crystal wasn't throwing an error on this report was if I trimmed the text down to about 300 characters... Why won't it take more? Is there a way around this ? Thanks
Last reply by laredo512, -
- 1 reply
- 1k views
I know that a connection with two different DataReaders cannot exist at the same time. I'm doing this: 1. reading from a table and replicating these same rows 2. then these replicated rows should have Updated linked columns (IDfak - not the pirmary ID though!) pseudocode: connection open Reader1 SELECT statement (Command1) While read add parameters from Reader1 to Command2, except IDfakt (new value) Command2 INSERT (replicate) these rows - executenonquery End While connection close Is there another way to do this. I attached a TXT file with the code snip. code1.txt
Last reply by IxiRancid, -
- 0 replies
- 1.1k views
is it posible to get a value of another running program? my situation is: i want to get the value of the x y coordinate of the charactor in the Game if the charactor is going too far from the area i want it to be(eg, between x>10 && x<20) i will make him go back, and i know how to do this, my only question is How do I get that value? beside, I used the program "GameMaster8.0" to find out 2 sets of code from the game, they are 0012ADAC and 0012ACE8 (x) and (y) how can i make use of those? Thank you for your help
Last reply by nevetx, -
- 2 replies
- 1.6k views
Hello, I have a for loop. in this for loop I try to perform a command(send1fax). this send1fax command sometimes doesn't work and keeps on trying to send. I would like to have some sort of a time out.... if send1fax hasn't finished in 30 seconds... then go to the next in my for loop. for blabla to allfaxes send1fax("555 55555") next I can NOT change the code in the send1fax function. I can only programme around it. can anyone help ? thx,
Last reply by inter, -
-
- Administrators
- 4 replies
- 1.1k views
Hi. I hope this is the right place for this as I am new to this site and new to VS.net. I was wandering if anyone could tell me what it means when an error says "Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated." I am making a program in Visual Basic using Visual Studio.Net and I have a timer in it. The form is displayed with the options to select and give the right/wrong answer and then the form is supposed to reload itself with different questions and answers. It seems to work fine, but the error will not go away and when i go to deploy the project, it gives me errors which I think are …
Last reply by mjcs100, -
-
-
- Administrators
- 6 replies
- 1.3k views
suppose i made a custom control with a textbox controls, when its rendered it would have (Me.ID + $ + textbox name), IE allows object names with "$" sign, so theres no problem finding/altering the object, but in FF it doesnt, so doing this wouldnt work with FF. document.getElementById("myControl$Textbox1").disable = false; anyone knows how to resolve this?
Last reply by Joe Mamma, -
-
- 1 reply
- 768 views
Is it possible to set things up so that a specific UDF or SP will run at a specified interval. I don't want it to start automatically when the server starts, but to run in an endless loop (at interval) once trigged until the server is stopped.
Last reply by Joe Mamma, -
-
- *Experts*
- 1 reply
- 1.1k views
Hello everyone, As shown in the code below, is it possible for me to add the new objects for tipoDT and sementesDT without having to do it one-by-one? Like, for example, getting the values automatically from the tables?.... How would I do that? The sementesDT table is quite large and would take me forever to add the new objects one-by-one! Here's the code: public frmBA() { tipoDT = new DataTable("tabTipoSemente"); tipoDT.Columns.Add("CodTipo", typeof(int)); tipoDT.Columns.Add("Tipo", typeof(string)); tipoDT.Rows.Add(new object[] { 0, "Nocivas Probidas" }); tipoDT.Rows.Add(new object[] { 1, "N…
Last reply by Nerseus, -
-
- 0 replies
- 1.8k views
Bonehead question... where's the tool or menu item to do that? I found it before, maybe two weeks ago, I thought I right-clicked on something, and it automatically applied a new tab order to all of the items on the form. But now I can't find it... grrrrrrr PS - I did find the View: Taborder, but that's not what I'm looking for; that worked for now, but what I'm looking for is a one-click thing that guesses at what order you will want them in.
Last reply by alreadyused, -
- 0 replies
- 858 views
I am trying to create a class that can be invoked to create a bi-directional sort of any datagrid on the pages of the site I am working on. This is only the second time I have ever tried this and I am getting errors in the code but I am not sure why. I want to incorporate ViewState as part of the class. This is my code: Imports System.Web.UI.Page Public Class clsSort Private Property SortExpression() As String Get Dim o As Object = ViewState("SortExpression") If o Is Nothing Then Return String.Empty Else Return o.ToString End If End Get Set(ByVal Value As String) ViewState("…
Last reply by lorena, -
- 0 replies
- 760 views
Hi all I previously changed some settings on my machine and I managed to stop the port number appearing in the url when I loaded my project from the 2005 development environment. Unfortunately I can't remember what I did, can anyone point me in the right direction. Mike55.
Last reply by mike55, -
-
- Administrators
- 2 replies
- 1.9k views
Hi all, I've got a question, What I want to do is this: if a page is UNLOADED say by clicking on a close button on the page OR by clicking on the (x) button on top of the window),I want to set a few session objects to nothing. But..... When I try to do this via the Page_Unload event it does it every tim the page loads and reloads... So.. this is not realy what i want... and.... if I click the (x) button the event doen't fire @ all.. :confused: So Now I'm stuck with a session object... that isn't destroyed after the window is closed.... Does anyone have any ID?? Tnx
Last reply by MisterB, -
-
-
- Administrators
- 2 replies
- 1.1k views
Is there an equivalent to doing this programmatically: <form name="form1" id="form1" method="post" action="https://remotesite.com/xample.php"> <input type="hidden" name="transaction" value="whatever" /> I want to be able to set those hidden values in my code dynamically before the user goes to the foreign site to which I have no control. I tried response.addheader , response.appendheader before calling a response.redirect... Can't seem to find an answer. by the way, server.transfer doesn't work either. Thanks
Last reply by laredo512, -
-
- 0 replies
- 796 views
I have declared the following global variable. dim dtMembers as datatable = new Datatable("Members") However the .net 2005 environment throws the following error: I have imported the following at the start: imports system imports system.data If I however change the global code to the following: dim dtMembers as Datatable = new System.Data.DataTable("Members") the environment does not throw an error. Any suggestions on what is going wrong? Mike55.
Last reply by mike55, -
- 0 replies
- 1.7k views
I've got a form with a datagridview. On the form i'll get a few records and the selected columns (no ID column!). To fill the datagrid i'll use the following components: - Bindingsource - TableAdaptor - and another one What i like to do: I will that the program fills a textbox with the ID value of the selected row on the datagridview. How can i get that ? And another DataGridVieuw Problem: If i change something into the grid.. averything looks like its changed. But if i close the form. And open it again.. its as before.. nothing changes. Do you need a save button ore something like that ? I've controlled if all data components are not (readonly=…
Last reply by Jelmer, -
- 0 replies
- 1.1k views
Hi I've just installed it and am looking at Smart Devices. I've built a small CE application, but it only has Pocket PC emulators on my machine (NOT CE). Can someone else have a look on theirs for me please? Because i was playing around emulators a week or so ago and wonder whether this maybe where they come from. Thanks
Last reply by Jay1b, -
-
- Administrators
- 1 reply
- 1.3k views
Hi, I want to make sure that my trace.Writeline's are properly written to my trace file and so I created a Threading.Timer like... _trdStreamFlusher = New Threading.Timer(AddressOf StreamFlusher, _Stream, 10000, 10000) ' -Snip- Private Shared Sub StreamFlusher(ByVal file As Object) Dim oStream As IO.FileStream = DirectCast(file, IO.FileStream) Try oStream.Flush() Catch ex As Exception Console.WriteLine(ex.Message) End Try End Sub but the file don't contain all my trace information :( Any ideas? TIA /Kejpa
Last reply by PlausiblyDamp, -
-
-
- *Experts*
- Leaders
- 43 replies
- 5.6k views
I would like to see the faces of those who mostly help me in this GREAT forum. Specially PlausiblyDamp, Nerseus, Joe Mamma, Marble Eater, Deneas, PenDragon and Engine252... (just to name a few). I would like to post a photo of mine, but I don't know if this would be in vain...
Last reply by Dark Kai, -
-
- 2 replies
- 1.1k views
Thanks in advance to anyone who can help. I have been pounding forums and google to no avail. I am looking for any resource (book, sample code, guide, link, etc..) I have seen several answers to this question but they all lead to things like configuring IE custom toolbars , adding buttons to IE toolbar, code in C++, toolbars for forms. Here is what I want to do. Create a new toolbar (toolband) to add to my internet explorer browser. (Must be in VB.net) Basic look will be like the google toolbar, except it will have a dropdown box that pulls data (URL's) from an access database on my web server. When you select an URL from the dropdown list it will open t…
Last reply by Rankun,
-
Who's Online 1 Member, 0 Anonymous, 49 Guests (See full list)