Here's my code. I can't get the ddls to populate when the pages loads. I've only got two built in the code so far, but we want to be able to support 5-10 when the code goes live. I know the sprocs work, since since I tried using cache for the datasets, the ddls wouldn't populate.
The...
I have a query that uses a parameter for a person's last name in the where clause. I'd like to figure out how to get the report to pull all names the first time the report is run, then allow the user to specify specific records afterwards.
I can't get the default values right, or I'm missing...
Fixed with:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
adptContacts = Cache("adptContacts")
dsContacts = Cache("dsContacts")
dsContactTypes = Cache("dsContactTypes")
If Not IsPostBack Then
drpContactTypes.DataSource =...
Below is the code for the Page_load and button click event.
When the button is clicked, I get:
Object reference not set to an instance of an object.
..which happens @:
Line 80: rowNew = dsContacts.Contacts.NewContactsRow
Dim adptContacts As SqlDataAdapter
Dim dsContacts As dsContacts...
I've been asked that on another forum about the adapter. The "lab" for this chapter has you cache the connection, adapter, and the dataset.
Thanks for the help!
I'm working through the MCAD training, and can't seems to get a dropdownlist to populate from a cached dataset:
**********
Here's the code on the first page:
Private Sub Page_Load(....)
If Not IsPostBack Then
AddtoCache("adptCalls", DA1)
AddtoCache("adptContactTypes"...
Okay, it was a bit easier than I thought.
1. Go to Control Panel / Users Accounts / Change the way users log on or off
2. Un-check "Use the Welcome screen". This will now use the classic option where users are prompted for a username / password
3. I set the Computer administrator User...
One of our admin people uses a machine that others can get to. There is a folder on the hard drive she'd like to protect.
I know I can create another user to log onto the machnine, but my questions are:
1. Can I password protect each account icon on the desktop (or just the admin's icon)
2...
now, I get an error on the line of code:
Dim ddlP3ResCode As DropDownList = CType(e.Item.Cells(4).Controls(7), DropDownList)
This is the third row / second column of the HTML table.
I have the first dropdownlist working correctly, which is the first row / second column, and it's line of...
I'm using the first data column's EditItem Template to allow the user to edit 6 fields. This has allowed us to get the datagrid to expand vertically and increase the font size too. I'm using an HTML table control to hold the text boxes and dropdownlists so it's structured, but now...on the...
I'm using the first data cell (index 2 since I use the Edit and Delete columns) template column to place all data edits in the first data column in order to have the datagrid expand vertically.
What I'd like to do is hide the other cells in the row, as I only need this one column (index 2)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.