Question: How do I maintain both the contents (from queries) and selected value of both dropdowns after postback?
Source Code: Download my source code from this link (link now works). Just add a reference to your AjaxControlToolkit
User Action: Select a value from each dropdown. Click Submit.
After Postback: StatesDrop: (Selected va...
Hey there. I have a function in VB.net that authenticates a user towards a MySQL DB before launching the main application. Here's the code of the function:
Public Function authConnect() As Boolean
Dim dbserver As String
Dim dbuser As String
Dim dbpass As String
dbserver = My.Settings.dbserver.ToString
dbuser = My...
I have a complex program in which I have to first create, then use wrappers around bitmaps and send them across a lot of different classes. The problem in the end is deciding which classes should dispose the bitmaps. Most of the time the end classes don't know if they can indeed dispose the bitmap as the same bitmap can be used in severa...
Hi,
I have an asp.net page "demo.aspx", that has a normal link called "Demo Link" which uses jQuery Thick box. The page that is wrapped inside the Thickbox is "target.aspx", that has a button "Demo Button" and a label.
If I click on the Demo Link, it show the "target.aspx" wrapped inside the Thickbox nicely. However, If I click on the ...
Please take a look at the following click event...
Protected Sub btnDownloadEmpl_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDownloadEmpl.Click
Dim emplTable As DataTable = SiteAccess.DownloadEmployee_H()
Dim d As String = Format(Date.Now, "d")
Dim ad() As String = d.Split("/")
...
I want to display an xml file data in silverlight datagrid. im using the below code but it doesnt work.Please help.
My vb.net code:
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Windows
Imports System.Windows.Controls
Imports System.Xml.Linq
Namespace SilverlightApplication1
Public Par...
I'm using Crystal Report with VB.NET in Visual Studio 2005.
I have report that works if I pass in a list of List(Of Stuff). I had been sorting the report by one of the members of Stuff but a need now to sort first by one member, like Stuff.StatusCode and then by another member, like Stuff.ItemNumber.
Can I do this just be having more ...
I'm writing myself a class library to manage Active Directory.
I have an interface:
Public Interface ISourceAnnuaire(Of T as {IGroupe, ITop, IUniteOrganisation, IUtilisateur})
Readonly Property Changements As Dictionary(Of T, HashSet(Of String))
End Interface
This Changements property is used to save in memory the changes that oc...
Alright so I want to grab the information on a website thats between
[usernames] and [/usernames]
I know how to get the string but how would I use regex to only have the information in the middle.
Remember I am going to be having more then one thing on the page.
...
I am coding in vb.net through visual studio 2008. I have successfully compiled a dll file from my code but I continue to get "Run-time error '453'" when I try to reference the dll in vba. I understand there is some sort of compiling error that occurs when using vb.net. Does anyone have any suggestions to fix/overcome this issue? I would ...
Hello,
I seem to have a problem that I can't find a solution for. I have a table that has this format.
projectId | departmentId | plan | ETC | month | year | ID
But, I need to find a way to take that data and display it like this:
Is this something a gridview can handle, or a repeater, or something else?
Thank you.
Ben
http://img8...
I am trying to create a lottery simulator. The lottery has 6 numbers, the number generated must be between 1 - 49 and cannot be in the next number generated. I have tried using the OR function but I'm not entirely sure if I am using it properly. Any help would be great. Thanks.
Public Class Form1
Private Sub cmdRun_Click(ByVal sender A...
Joined is a datetime data type column in the database and dates are saved as '12/05/2010 15:54:32'
This my query:
SELECT *
FROM users
WHERE joined BETWEEN '12/05/2010 00:00:00' AND '12/05/2010 23:59:59'
ORDER BY id ASC
But it doesn't work. It returns no rows.
So how i gan get them?
Solution:
SELECT *
FROM users
WHERE joined ...
I wrote download excel file in my code. If I click download button I need show ajax-load image (pnlPopup panel). But it is not displaying. I think because of Some "Response" statements (see below code). Download working fine, but simultaniously I want show loader panel too.
<asp:Panel ID="pnlPopup" runat="server" visible="false">
...
I'm trying to remove visual studio's navigation bar in VB.net, I know how to remove it in c# but unfortunately it has no effect in VB.net.
would appreciate any help.
i'm trying to remove the bar with DBLoggingProvider and (Declarations)
...
I want to make custom combo box which have contain datagrid and textbox too.
On clicks into combo box datagridview should be appear and selecting any row particular cell value of the datagridview added on the combo.
thanks in advance..
...
I'm running the following code to check for updates in my software, and I wonder whether VB.Net will automatically user computer proxy settings:
Dim CurrentVersion As String = (New System.Net.WebClient).DownloadString("URL/version.txt")
If not, how can I adapt it to use proxy settings?
...
Dim usersInRole As String() = Roles.GetUsersInRole("HR_Base_Role")
Dim Myusers As New MembershipUserCollection
For Each UserName As String In usersInRole
Myusers.Add(Membership.GetUser(UserName))
Next
ComboBox2.DataSource = Myusers
The code above throws a "Specified method is not supported." exception on the first line.
Any one kn...
Does the IO.File.Copy method preserve file attributes? Especially, if I have a write-protected file, will the copy be write-protected to?
...
I would like the VB.net WebClient to remember cookies.
I have searched and tried numerous overloads classes.
I want to login to a website via POST, then POST to another page and get its contents whilst still retaining my session.
Is this possible with VB.net without using WebBrowser control ?
I tried Chilkat.HTTP and it works, but I ...