This is actually what I ment. I want the user to be adding data into Sql database using a datagrid. So I'm using a ListBox to do this and edit update and delete. I placed listbox in EditItemTemplate and label in ItemTemplate. but when I try now to edit it does not bring the lisbox but i can read the grid with the sql content. my code actually looks like this:
I am creating a website first time. I want to upload it but for that I have to create an index.html file. Can you please tell me that what should I do? or how can I call my php file while index.html is load?
whenever an click event of any control occurs in my C# asp.net web application(visual studio.net 2003), form load is called again and all controls are initialized. Like i m using check box in my grid and want to capture my check state against any button click. But when i click button then form is again loaded and all check boxex became converted in their default state(which is unchecked).
therefore the following condition in my button click event alwayx bacame false coz at that time no check box is in checked state.
the condition is
i have many other problems also due to this from loading against any event. Therefore can u tell me how to stop this loading every time.
I am designing an application using HTML.And Frames are used for that.
In my main window there are 3 rows.I need to use title bar(including minimize,
maximize and close buttons in each source in this Frameset.Means to close each frame from a frameset.
Is it possible?
I am working on a simple page (first one), intention is to allow operator to select several file names from a list and download them. My files are listed in lstLogFiles. Without the loop a selected log file can be downloaded, with this code the first selected log file can be downloaded, but only the first. I may be not understanding something (obviously) any idea why or what I need to do?
Private Sub btnDownLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDownLoad.Click<br />
Dim fullpath As String<br />
Dim i As Integer<br />
For i = 0 To lstLogFiles.Items.Count<br />
If lstLogFiles.Items.Item(i).Selected Then<br />
fullpath = lblCurrentPath.Text & lstLogFiles.SelectedItem.Text<br />
DownloadFile(fullpath, True)<br />
End If<br />
I haven't tested this or played with it...but just looking at the code you supplied it seems like this line: fullpath = lblCurrentPath.Text & lstLogFiles.SelectedItem.Text
should be something more like this fullpath = lblCurrentPath.Text & lstLogFiles.Items.Item(i).ToString
Hmmm. I don't do a lot with List objects, so I'm not sure what is going on. You said "It seems like after file is downloaded the procedure exits"...did you debug and actually see this happen?
If that is the case then perhaps the For statement is off somehow. What does the list.count show when you debug?
You could try doing a For Each str as String In lst.SelectedItems If the List object has that option...Other than that, perhaps there is something within the DownloadFile method that is causing a problem. Can you supply us with that code?
-- modified at 14:45 Tuesday 20th February, 2007
Last Visit: 31-Dec-99 19:00 Last Update: 29-Nov-22 8:27