I have a datagridview with a dataTable as the dataSource. The user can add new rows to the datadridview, but I dont display the primary key column (for obvious reasons) and set it to .visible = false. When I need to update the information in the datagridview to the database, I use the sqlClient.SqlCommandBuilder to then update the underlying…
Need to convert a string to normal datetime format so it can be correctly inserted onto a datetime type field.
String Format:
4/21/2010 4:43:03 PM
Example:
2010-04-21 16:43:03.000
I have an GridView control with some data in the first cell throughout the column. Ineed to make that cell data into a hyperlink (anchor tag) like the following.
<a href=""myPage.aspx?r=" & strParam & """>" & strData & "</a>"
Can anyone advise on the most effective way to do this? I am using a datatable and…
I am trying to invoke the onclick function in an html page that displays content. I am using the httpwebreqest control and not a browser control. I have traced the function and tried to find the link it calls but looking at the code below I tried inserting the link into the browser with the main url but it does not work.
<div…
Hey so I get this error in this code:
Private Sub Request_Stuff_button_Click()
Call Main.createObjects
Call My_Control.requestStuff
End Sub
at the 'Call My_Control.requestStuff' line.
The 'Main' module looks like this:
Public My_Control As ControlObject
Public Sub createObjects()
If My_Control Is Nothing Then
…
Hello, is there a possibility to prevent the creation of all the folders with the resources.dll files and just embed every globalization culture right into the compiled exe file?
Is it possible for a webpage to popup a open folder dialog, ask the user to select a folder, then show the contents of that folder in a list(or something) in the webpage.
It won't write to the files, only read them.
The webpage is hosted remotely.
Jonathan
I am working with a large site trying to implement web parts for particular users in a particular subdirectory but I can't get the .ASPXAUTH cookie to be recognized. I've read dozens of tutorials and MS class library pages that tell me how it should work to no avail. I am brand new to Web parts, so I'm sorry if I'm unclear.
The…
I have written a small XML validator, that takes in an XML file and an XML schema and validates the XML files against that schema. It works well, except for an XML file, with this content:
<?xml version="1.0" encoding="utf-8"?>
<xc:program xmlns:xc="http:\\www.something.com\Schema\XC10" xc:version="4.0.22.0" >
…
Question: I want to call a generic function, defined as:
Public Shared Function DeserializeFromXML(Of T)(Optional ByRef strFileNameAndPath As String = Nothing) As T
Now when I call it, I wanted to do it with any of the variants below:
Dim x As New XMLserialization.cConfiguration
x =…
Currently I have a third party control that generates a Metafile. I can save the .wmf file to disk with out issue. The problem is how do I render the Metafile as a Tiff file.
Currently I have the following code to get my metafile and save it.
Dim mf As Metafile =…
I have a simple form containing two text boxes, I am attempting to apply some validation to the first text box using JavaScript. This is the first time I have attempted this and am having some trouble.
I have a label beside the text box stating an error, this labels…
I have 10 labels named lbl1, lbl2, ... lbl10
I'd like to change their propriety (using a cicle) with the cicle index
for i as integer=1 to 10 step 1
lbl (i) = PROPRETY 'I know this is wrong but it's what I would do...
end for
I'm using a workaround, but I'm…
Hello,
My program uses some external programs that i included in the Files folder.
In my code im reffering to Files/external_program.exe Windows Vista & Windows 7 knows how to handle this and starts the program on the same location as my program in the Files…
I'm trying to page and sort my datagrid wich is inside a modalpopupextender but I can't page it in any way, already tried with , put the updatepanel inside, outside, in the middle (loL) and it does NOT work. modal popup does not get closed but the grid just…
Well I am trying to autoscroll my ListBox or display everything the opposite way just like a shoutbox.
Please post the code here on how to do it. I have tried many ways but they either gave me errors or didn't work.
I have an application that has a .sql file in it. The sql file is set to Embedded Resource. When I run the following code, I get an empty string array indicating there are no embedded resources.
However this project has been working fine previously.
Any…
i wrote a module of a connection to DB with OleDB and the 'sub UpdateClients' doesn't work, the DB don't update.
what's missing or wrong?
Module mdlDB
Const CONNECTION_STRING As String = _
"provider= Microsoft.Jet.OleDB.4.0;Data…
I have this string that shall come in from another file. The string has maximum length of 102 digits. I need to compare the string with numbers in a pair and delete those form that string.
e.g - 6125223659587412563265... till 102
numbers that…
how do i put the onblur and onfocus attributes on a textbox created programatically?
here's my code -
td = New HtmlTableCell
td.Style.Add("padding-bottom", "5px")
Dim txtbox As New TextBox
…