I have a repeater and within that repeater, I have an item template. Now this template is formatted with a couple of tables, but for this question I have removed them to make things easier to read:
I add data into the newly inserted column with the following code:
da.SelectCommand = New OleDb.OleDbCommand(sql, con) Dim cb As New OleDb.OleDbCommandBuilder(da) cb.QuotePrefix = "[" cb.QuoteSuffix = "]" ds.Tables("SchoolMaticsDatabase").Rows(inc).Item(ColumnDate) = Hours * Num da.Update(ds, "SchoolMaticsDatabase")
All of the above works fine; the issue arises when I try to edit the information originally placed in the newly added column. These are the approaches that I have taken. (None of them give an error message; it simply won't update within the database.)
da.SelectCommand = New OleDb.OleDbCommand(sql, con) Dim cb As New OleDb.OleDbCommandBuilder(da) cb.QuotePrefix = "["
[code]....
I added a column to the table manually via opening the access database and all the above approaches work for editing data stored in that column. So I believe it is something to do with the fact that the columns are created at run time.
How do we overwrite config file at runtime. I have four config files for DEV, TEST, UAT, PROD. Based on user selection I need to overwrite the default config file completely with one of the selection specific config files. These config files not only have appsettings section, but also has complex cutom sections and subelements with lot of attributes. I need to overwrite and refreshsections dynamically at runtime. I know there are so many articles on editing appsettings sections. But I want to completely overwrite the entire file.
Not sure if this is the correct place for this postWhat I am trying to do is update dll's in my application.Using VB with dotnet 2 (Visual Studio 2010)The Project has a number of Dll's one of each department i.e. Sales is sales.dll... Development is development.dll etc....Each dll has classes/User controls which is used and dispose depending on the section within the application.Once work has been completed with a dll, it put in the deployment area, currently another is program launching checks the file verison and updates as required, before the main application lauches, this works. The exe hasn't needed updated for a long time as all the changes are in the dlls.
What i have been looking at is update method for the dll's dymanically, when not in use, when the dll called into use or disposed of.I have looking at LoadLibrary/FreeLibrary and application.domain. I have been reading loads and tried out some of the examples, with a modified to suit. I am just not getting it.
I add data into the newly inserted column with the following
da.SelectCommand = New OleDb.OleDbCommand(sql, con) Dim cb As New OleDb.OleDbCommandBuilder(da) cb.QuotePrefix = "["
[code]....
I added a column to the table manually via opening the access database and all the above approaches work for editing data stored in that column. So I believe it is something to do with the fact that the columns are created at run time.
I am new to MVC.I have a string that I built from a controller called parsedCustomerNames. In web forms I can make the placeholder visible from the codebehind and then populate a control with the string. How would I be able to do this in MVC.
In other words the values of the last row used are stored in every key, value dictionary combination. How do you prevent this from happening? It is clearly associated with the use of the temp variable, as the dictionary changed as the temp variable changes. Is there a way to only copy the values from the array rather then associate the dictionary with the changing values of the array?
I have an asp program that needs to validate data for textboxes that are dynamically created and put into a placeholder. Each textbox has to have a value when the user hits the Save button. I have the following code:
Dim testCheck As Boolean = True For Each txt As TextBox In pnlTests.Controls If txt.Text = "" Then
I have a particular link that I'm trying to convert to an ASP:LinkButton place holder so that I can control it's visibility based on the user type: <asp:LinkButton id="linkColumnsSelect" runat="server" Text="Select CSV Columns for Export" Href="javascript: void(0)" Visible="True" />
I was able to remove the PostBackUrl by adding "javascript: void(0)" to the Href property, but now I have the problem of getting a real ID that I can use in javascript. As it currently stands, this creates an ID for the item of ctl00_ContentPlaceHolder1_linkColumnsSelect, however I need that ID to be "linkColumnsSelect" on the client side and still work server side (for jQuery coding reasons that involve looping). Is that possible? Or do I just need to adjust my jQuery to account for the placeholder segments of IDs?
I have a page that includes javascript which I only want to run under certain conditions. To do this I have placed the scripts into an asp: placeholder.This actually seems to work but when I run a debug on the page I get the following warning.Element 'placeholder' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.If I move the placeholders into the body of the page the warning goes, but that means I'm left with scripts in the body which I also want to avoid. Does anyone have any hints on the best practice for this scenario? [code]
A little pseudo code to provide some background:I have an ASPX with a placeholder and a buttonWhen the button is clicked it adds a web user control (uc1) to my placeholderThe uc has a button
I'm working with a website written in aspx.net over vb. I have a placeHolder, and I create a table of names inside this PlaceHolder, each name has an HtmlInputCheckBox next to it. Im doing this in the aspx.vb file, when the page is uploading. Then, when the user wants to send mail, he presses a button and than I need to access the checkboxes, and I'm having problems with this, the Sub doesn't know the checkBox object.
Within my webpage I am loading usercontrols within a placeholder. Each of these user controls triggers a postback when an ajaxcontroltoolkit rating is changed. The problem I am having is that if I use [code]The Load_EvaluationList is what loads the user controls, if I place the IsPostBack check around those two, the controls disappear, what could be the problem
I've created a function in my vb class file that creates dynamic tables. I'm planning to use this to create tables dependent on a button being clicked. The function references a placeholder in my aspx page but I'm getting "placeHolder1 is not declared".How can I access controls on my form from my class file? [code]
I need to remove the "padding" or "image place holder" before the text on a ToolBarButton (not a ToolStripButton). There is not ImageList set for the ToolBar, but there is still a blank space before the text on the left hand side of the ToolBarButton.
I have a UserControl that has a simple repeater inside. It has a property called data which when passed into the control populates the repeater using the standard databinding.
On a page I have a placeholder.
I have a loop which does the following
Dim qDetail As New UserControls_ReportDataTable qDetail = DirectCast(LoadControl("~/UserControls/ReportDataTable.ascx"), UserControls_ReportDataTable)
I have a webpage with a form that is used to edit some object. This object contains a Collection of other objects defined like this: Public Overridable Property Employees As List(Of Employee)
On a form I can delete an employee, add a new one or modify existing one. When I click save new values are sent to the server. On a server I check if the user exists. If exists then I modify its values, if it does not exist then I add it. All employees that exist on the server and were not sent are marked as deleted (State changed to EntityState.Deleted). I try to use the following code (dbCollection = database entities, newCollection = collection sent from the form):
[Code]...
This code does not work, because changing to EntityState.Deleted removes the object from collection, and for each loop breaks, since the collection is modified...I know that I can overcome this problem by using a for loop or adding objects to delete to some other list first, but I hope maybe there is a pattern that would make my code nicer.
I am developing a web mapping application intranet from our company. And I am creating add polygon function on the map. I use AspMap, Vb.net and sql server. So when user click a button for add new record therefor out the web form input data attribute. When i run the application I get trouble like this Incorrect syntax near '?' My code is:
Private Sub AddNewShape(ByVal checklist_id As String, ByVal type As String, ByVal shape As AspMap.Shape, ByVal address_area As String, ByVal dmz As String, ByVal customerid As String, ByVal source As String, ByVal area As String, ByVal instalatur As String, ByVal developer As String, ByVal data_received As DateTime, ByVal doc_data As DateTime, ByVal datereport As DateTime, ByVal remark As String)
I have created multiple dropdown list at runtime and populated with data. I also have added an eventhandler to determine the selected value of the drop down list.
The code is as follows : Dim tbl As New Table() tbl.EnableViewState = "true"
I have a Visual Basic 2005 program which runs fine if I execute the built Executable. However if I start the application in VS2005 debugger it gives a weird error
I'm creating an app to manage the movies I've watched and get some info about these movies and then display these info in labels.At moment I'm trying to load the "runtime" and "genre" into label3 (runtime) and label5 (genre). Once the movie name is clicked in the listbox control, these info are loaded from a website (webbrowser control) and then displayed in the labels. My question is: Is there any way to make the My.Settings save these info for EACH movie? Something like this:
Saving the info:
vb If ListBox1.SelectedItem.ToString > 0 Then 'LOADING THE INFO CODE... 'SAVING... 'create: My.Settings.(ListBox1.SelectedItem.ToString & "1") = Label3.text 'create: My.Settings.(ListBox1.SelectedItem.ToString & "2") = Label5.textEnd If
I've finally got around to starting windows phone dev. I'm not very good at it yet, but anyway, I hope you guys understand what I want to do here.From what I've learnt from other programmers, an ObservableCollection can be updated in live time whilst it is databound to an object, such as a listbox. All changes to the ObservableCollection will cause the UI of the object it's databound to update it's items.
So what I'm trying to do, is download a file from my server, parse it with json, then update the ObservableCollection with the new data. However, the webclient doesn't seem to be downloading the new data until the app is re opened!
There is something wrong with my codes. I don't know why it isn't updating the records.If I activated the line dt.Rows.Add(newrow) it will just create an error on da.update(dt) line QuoteThe changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.But if I deactivate that line, no errors will be occurred but the record won't update.
Here is my code
Dim dt As New DataTable Dim ds As New DataSet ds.Tables.Add(dt) Dim da As New OleDbDataAdapter
I have a data grid view bound to a sql server table. What I am trying to do is have changes made in the dgv update in the sql table. I tried to use the Update method of the table adapter but get the following error.[code]....
I have a datagridview with a datatable as datasource. If I add a row to the datatable, then the datagridview is not showing the contents.
grdChannel1.DataSource = CreateTable(colChannel) Private Function CreateTable(ByVal colChannel As MyCollection(Of Channel)) As DataTable 'Create table and add collection into
[code]....
I have 2 row counts if I check the the row counts of the datagridview in the debugging mode.