473,471 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

looking for example code

--vb.net
--gridview column as dropdownlist
--populated from an array
--match selected value stored in a database for that record displayed in the row
Jan 17 '07 #1
2 936
Sorry, this one isn't exact, but it's close - -
http://aspnet101.com/aspnet101/aspne...ode=EditDDL_GV

the dropdownlist is populated from a database instead of an array

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message
news:et**************@TK2MSFTNGP02.phx.gbl...
--vb.net
--gridview column as dropdownlist
--populated from an array
--match selected value stored in a database for that record displayed in
the row
>

Jan 17 '07 #2
thanks

need a bit more help. my update command is failing to work.

error msg:
Must declare the scalar variable "@userid".

I have the following set:

....asp:SqlDataSource
UpdateCommand="UPDATE UserData SET status = @status WHERE userid = @userid ">

....asp:GridView
DataKeyNames="userid"


"David Wier" <da********@noSpamhotmail.comwrote in message news:eM*************@TK2MSFTNGP06.phx.gbl...
Sorry, this one isn't exact, but it's close - -
http://aspnet101.com/aspnet101/aspne...ode=EditDDL_GV

the dropdownlist is populated from a database instead of an array

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message
news:et**************@TK2MSFTNGP02.phx.gbl...
>--vb.net
--gridview column as dropdownlist
--populated from an array
--match selected value stored in a database for that record displayed in
the row
>>


Jan 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rick | last post by:
Hi all, I have recently been implementing php code in some web pages and am now looking for a more visual oriented php development environment because for example creating php/html forms by hand...
10
by: Bill Davidson | last post by:
Hi there, Please forgive me for posting this article on multiple groups. Being new in the newsgroups, I was not sure which group would have been appropriate for my question. Sorry. My...
4
by: Frank Einstein | last post by:
Looking for a tool that can edit an XML file in a browser. The basic requirement is that the XML file is rendered as an HTML form with editable fields (including add/delete, preferably in...
3
by: SpamProof | last post by:
I'm looking for an example of a detailed design that I can follow or get ideas from before programming in vb.net. Currently, I'm using this outline approach that describes my Project, Classes,...
3
by: MikeY | last post by:
Hi Everyone, I am working in C#, windows forms.My question is this. All my button dynamic controls properties are present and accounted for except for the"FlatStyle" properties. I can't seem to...
0
by: Gene Ariani | last post by:
Hi; I am looking for 3-tier web examples for .Net environment. Most examples treat the code as they are residing on the same machine. I am looking for an example that treats 3-tier as client,...
8
by: gumi | last post by:
Hi, I am looking for code for a alarm clock program that pops up a messege to be used as part of my VB.Net class project. Any help is very much appreciated. Thanks
13
by: Alan Silver | last post by:
Hello, MSDN (amongst other places) is full of helpful advice on ways to do data access, but they all seem geared to wards enterprise applications. Maybe I'm in a minority, but I don't have those...
14
by: Rex | last post by:
Re: Looking for Tips/Writeup on overall approach to Exception Processing Hi All - I am fairly new to C# and am wondering how to best implement (overall) Exception Processing within my...
6
by: beantaxi | last post by:
Hello all, I'm looking for a very simple code analysis tool. I have a large codebase to analyze, and all I really need to do is to find all uses of all methods in a few interfaces. Many tools...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.