Topics
-
- 1 reply
- 1.4k views
I have a ListBox with the DataSource property assigned to an ArrayList. The ListBox displays the distinct values of a Column selected in another ListBox. So, depending on the Column selected in the other ListBox, the ArrayList could contain values that are all Integer, String, DateTime, etc. Although the ArrayList does not implement the IBindingList interface, the MSDN description of the Binding Class confirms that an ArrayList can be used in a Binding. When the ArrayList contains DateTime values, the ListBox displays them in the default format: 11/20/2002 12:00:00 AM I only want to display the Date, not the Time. Assuming (and it is an assumption) that it …
Last reply by VagabondSW, -
- 3 replies
- 1.1k views
I am writing a string parser and wondering how efficient it is to call the Is* and .Char() methods? Performance is an issue in this case since I need to make multiple passes through the string to 1) remove HTML tags , 2) remove CR-NL's and 3) parse the string for multiple combinations of characters. The strings can be up to 100k in size. In C, I can compare characters using: if str[x] = '\n' ... and it is very fast since there is no function call overhead. At the moment, I am using this type of code. Relatively speaking, how fast is the .Chars() method? I'm assuming I can't view the assembly source like I could with VB6. if (s.chars(x) = "5") t…
Last reply by Talyrond, -
- 1 reply
- 853 views
Hi there, I would like update the changes on my lastview after save/update click.So after I click save button the changes in the database should be immediately reflected on the listview.I have tried refresh and redrawitems but in vain.I have also tried searching in the web but none seem to work.I would appreciate if you help me with this....Thx in adv...
Last reply by Machaira, -
- 2 replies
- 2.9k views
I'm getting information out of an html document. Here is the html: Text here <STRONG>Info:</STRONG> <b>Information</b> here.<BR><STRONG>hello</STRONG><BR> ... Text here <STRONG>Info:</STRONG> <b>blahblah</b><BR><A HREF="blah.html">MORE</STRONG><BR> ... Text <STRONG>Info:</STRONG> more <b>stuff</b><BR>HELLO<BR> ... Text <STRONG>Info:</STRONG> more<b>stuff</b><BR><IMG SRC="image.jpg"><BR> I want to be able to find just the "<STRONG>Info:</STRONG> Information changes in <b>he…
Last reply by decrypt, -
- 2 replies
- 768 views
I have a MS Access database with the entries formatted differently: Text, Memo, Hyperlink, Date/Time, Yes/No. How would I create OleDbType parameters to match these?
Last reply by Joe Mamma, -
-
- Administrators
- 15 replies
- 13.4k views
Hello all, My ASP.NET application attempts to export data into an Excel workbook using the following code: Dim excelFileRef As Excel.Application excelFileRef = New Excel.Application Dim wbookNew As Excel.Workbook wbookNew = excelFileRef.Workbooks.Add 'Save Instructions to Excel Workbook InsertStringInExcel(wbookNew, strInstructions) 'Write data to Excel Workbook InsertDataInExcel(wbookNew, dtableAnalysis) excelFileRef.Visible = True This code works fine on about 2/3 machines. However, when run on one of my client's machine, the Excel sheet does not open up. When I stepped through code here, it worked OK with no errors, except that the Excel applic…
Last reply by mark007, -
-
- 1 reply
- 1k views
I'm about 4 weeks before the beta release of my asp.net applications and I already see the performance problems. Very special during application start. I've found a lot of information in internet about precompilation of asp.net pages but I'm not sure which is the best solution. Have you experience of precompilation? Thank's in advance for any help. Greets Adam
Last reply by HJB417, -
- 1 reply
- 1.1k views
A while ago i had the code that would do this but now i cant find it anymore. I need it so that when the user clicks a button on my form it saves the source code from a certain webpage into a .txt file in application.startuppath thanks.
Last reply by HJB417, -
- 1 reply
- 1.4k views
I have to write a rather small project quickly, and I am trying to keep every clean and OO. I am fairly new to .NET. I'd like your comments on my proposed solution. Request: Display a list of summary information (hospitals) with some columns of information next to each one. The columns represent how many database records are present, and some other math is done is show statistics of parts based on whole. No record detail is needed, just summary information about the records. Example: Hospital | totals records | type A records | type B records | % of records that are type A | % of records that are type B Walter Reed Hospital | 100 | 10 | 90 | 10% | 90% I t…
Last reply by HJB417, -
-
- Administrators
- 7 replies
- 1.3k views
Have you got any ideas?
Last reply by PlausiblyDamp, -
-
- 8 replies
- 1.7k views
I have a form with a datagrid that loads open and closed records for the users to view. They need to be able to edit records that are not closed but closed records should be read only. Is there a way to do this? I thought I had a handle on it but my coe doesn't work. Here it is: Sub dgRecs_EditRow(ByVal sender As Object, ByVal e As DataGridCommandEventArgs) dgRecs.EditItemIndex = e.Item.ItemIndex If IsDate(e.Item.Cells(8).Text) Then e.Item.Cells(8).Enabled = False End If BindData() End Sub
Last reply by mark007, -
-
- Leaders
- 2 replies
- 3.3k views
I am calling realplayer from within my app using shell. If I just call the player it works OK, realplayer opens. If I tack on the file name I want to open realplayer opens but I then get a general error from it saying this: http://100_0942.MOV I have the path to realplayer as: Public gstrRealPlayerPath As String = """C:\Program Files\Real\RealPlayer\realplay.exe""" I then add this when the user selects the movie file of choice: Dim strPlayerAndFilePath As String = gstrRealPlayerPath & " """ & Me.cboMovies.SelectedItem & """" I then pass strPlayerAndFilePath to shell. With or without quotes I get the error? If I run realplayer man…
Last reply by hog, -
-
- 2 replies
- 1.2k views
Hi I have bunch of textboxes bound to dataset (ms sql server). How can I make those textboxes which are bound to a column type double, to always show two decimal places even if one or both of them are zeroes. Is there any solution not envolving calling some procedure from lostfocus or other event, so far I have only came up with those kind of exapmles. Thanks
Last reply by ivan74, -
- 1 reply
- 1.1k views
I'm trying to bind a ddl with a database field that is a Yes or No field. I can't seem to figure out how to make it work. In design view, I selected the field from the databindings, and then in code view put the normal... Me.SqlDataAdapter1.SelectCommand.Parameters("@LeadID").Value() = intLeadid Me.SqlDataAdapter1.Fill(DsLegal1.ClientInfo) Me.DataBind() My dropdownlist isn't showing me anything, shouldn't it automatically populate the dropdownlist?
Last reply by Hyuga, -
-
- Administrators
- 4 replies
- 910 views
Hi all, I'm doing some pretty standard stuff here. The database is ok and the proc returns 200 records when I run this directly in query analyser. The datareader is returning the recordset but I'm getting no records. Any ideas? Thanks! Tim -------------------------------------------------------- SqlConnection mySqlConnection = new SqlConnection(); string strConn = ""; strConn = "Data Source=" + this.textBoxInstance.Text + ";" ; strConn += "DataBase= " + this.textBoxDBName.Text + ";" ; //strConn += " Integrated Security=SSPI ;" ; strConn += "User ID = sa;" ; strConn += " connection timeout=10000" ; mySqlConnection.ConnectionString = strConn; Sql…
Last reply by PlausiblyDamp, -
-
-
- *Experts*
- 2 replies
- 720 views
Hi All, Firstly what's the tag for displaying code properly in these messages? <code> </code> or similar? <ADTfile> <Message> <Header> <DocumentName>A File</DocumentName> <ATversion>2.3</ATversion> </Header> </Message> <Pupils> -- NOTE: lots of these. <Pupil> <UPN>F938870105001</UPN> </Pupil> …
Last reply by Tim Field, -
-
-
- *Experts*
- 5 replies
- 1.1k views
I'm trying to update a sql database field with a string value. I'm getting a wierd error saying "Invalid column name 'NO'". The field that I'm trying to update is just simply the value out of a dropdownlist, and the two values are 'yes' and 'no'. Here is my update statement. Dim sqlcommand As New SqlCommand Dim judgement As String = ddlLegal.SelectedValue sqlcommand.Connection = connPayables sqlcommand.CommandText = "UPDATE ClientInfo SET OutJudgements = " & judgement & " WHERE LeadID = " & intLeadid connPayables.Open() sqlcommand.ExecuteNonQuery() connPayables.Close() I know that the variable "judgement…
Last reply by Joe Mamma, -
-
- 1 reply
- 1.9k views
I'm trying to use the Request.UrlReferrer.ToString() to get the referrer. It works but if you go straight to the page, meaning Request.UrlReferrer.ToString() is nothing, I get an Object instance not set to an instance of an object error. I tried.. If Not IsPostBack Then If Not Request.UrlReferrer.ToString() Is Nothing Then referrer = Request.UrlReferrer.ToString() End If End If I still got the same error. Any ideas?
Last reply by flann, -
arrays
by shankar_it- 7 replies
- 1.2k views
Dim a() As String a.SetValue("a-a", 0) a.SetValue("a-b", 1) a.SetValue("c-a", 2) a.SetValue("b-l", 3) a.SetValue("b-k", 4) a.SetValue("c-l", 5) a.SetValue("c-v", 6) a.SetValue("a-l", 7) when i try to use this in the program it always gives error.If i declare Dim a(500) As String it works but when i use a.length command it gives 501 as the result instead of 8 which i expect to return. Can any one help me in this?.
Last reply by shankar_it, -
- 5 replies
- 1.2k views
This is a continuation for the thread Keypress Anomaly in which I was having a problem with an MDI application and picking up enter on keypress in a text box. I am still having that problem and I have been able to recreate it with a very simple example that I am attaching. Here is a step by step guide to reproduce the problem: 1) Run the application. 2) Click the Child1 menu item in the MDI Parent - Notice the textbox has the ReadOnly property set to true. 3) Click Enable - the textbox ReadOnly property is set to false & Message "Allowing enter to be pressed" comes up - click ok. 4) Click in the textbox & press enter - Message "You pressed enter!!" comes…
Last reply by grip003,
-
Who's Online 0 Members, 0 Anonymous, 51 Guests (See full list)
- There are no registered users currently online