Click here to Skip to main content
15,891,431 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP.NET Login Pin
Abhijit Jana14-Dec-08 19:29
professionalAbhijit Jana14-Dec-08 19:29 
Questionoptimistic concurrency Pin
billcodes14-Dec-08 17:23
billcodes14-Dec-08 17:23 
AnswerRe: optimistic concurrency Pin
Christian Graus14-Dec-08 17:37
protectorChristian Graus14-Dec-08 17:37 
QuestionAutoSuggestMenu help Pin
Dio2214-Dec-08 17:19
Dio2214-Dec-08 17:19 
AnswerRe: AutoSuggestMenu help Pin
Christian Graus14-Dec-08 17:38
protectorChristian Graus14-Dec-08 17:38 
QuestionWhy is it the log4net doesn't work in deploy Pin
C#Coudou14-Dec-08 13:48
C#Coudou14-Dec-08 13:48 
AnswerRe: Why is it the log4net doesn't work in deploy Pin
Colin Angus Mackay14-Dec-08 14:35
Colin Angus Mackay14-Dec-08 14:35 
QuestionRecreating the VBA ComboBox Functionality on my aspx page Pin
Ginozzzz14-Dec-08 10:38
Ginozzzz14-Dec-08 10:38 
Hi all. I have wrestled with this for a week now.

I have a website in .net 2.0, created with VWD Express, and I use VB in my code. The site is designed to sell size based products. I have a reasonable amount of experience with VBA in Access databases, but I'm struggling to get to grips with this new way of thinking when working with online applications. Please excuse my ignorance with terminology etc.

In Access, I was able to use a combobox to hold a recordset. For example, my combox could hold this info:

OptionName | OptionPrice | PriceMethod
------------------------------------------------
Pink £10.00 1
Brown £12.00 1
White £5.00 2
Red £9.00 3

In access, the CB would be populated with all the above detail on the PageLoad event with all the options for a particular product.

Usually, in Access, I could quickly reference the 2nd and 3rd column values in code and make calcualtions on them.

This would enable me to quickly re-price an option if the CB value is changed without going back to the database. This makes so much more sense than waiting for a round trip to the DB, and means that price calculations are instant.

How can I recreate this in asp.net?

I have investigated some custom controls which mimic ComboBoxes, but I'm struggling to get them to work properly, and what I've seen so far don't really seem that stable.

I have questioned whether it's possible to send the Recordset to a hidden field or viewstate, but having scanned lots of newsgroups I can't find any examples of similar situations, so I'm reluctant to waste days investigating. I'm also unsure on how to reference the table values in code, since I can't find any documentation.

I thought about using a multi array variable, but again, this seems a little crude and long-winded given the simple task I need to acheive.

Worst case, is that I'll probably have to use Ajax to make a trip to the DB. But I simply can't believe that Microsoft would replace the CB with that feeble Drop Down List. Surely there's a simple way???

Any inspiration would be appreciated.
Thanks.
AnswerRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Christian Graus14-Dec-08 11:08
protectorChristian Graus14-Dec-08 11:08 
AnswerRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Nishant Singh14-Dec-08 18:24
Nishant Singh14-Dec-08 18:24 
GeneralRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Ginozzzz14-Dec-08 23:26
Ginozzzz14-Dec-08 23:26 
GeneralRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Nishant Singh15-Dec-08 1:15
Nishant Singh15-Dec-08 1:15 
GeneralRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Ginozzzz15-Dec-08 1:57
Ginozzzz15-Dec-08 1:57 
GeneralRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Ginozzzz15-Dec-08 9:40
Ginozzzz15-Dec-08 9:40 
QuestionDetailsView and dropdownlist Pin
Sandraa14-Dec-08 8:01
Sandraa14-Dec-08 8:01 
AnswerRe: DetailsView and dropdownlist Pin
Marcelo Emmerich14-Dec-08 9:30
Marcelo Emmerich14-Dec-08 9:30 
GeneralRe: DetailsView and dropdownlist Pin
Sandraa14-Dec-08 9:43
Sandraa14-Dec-08 9:43 
GeneralRe: DetailsView and dropdownlist Pin
Christian Graus14-Dec-08 10:14
protectorChristian Graus14-Dec-08 10:14 
AnswerRe: DetailsView and dropdownlist Pin
Nishant Singh14-Dec-08 17:09
Nishant Singh14-Dec-08 17:09 
GeneralRe: DetailsView and dropdownlist Pin
Sandraa15-Dec-08 7:51
Sandraa15-Dec-08 7:51 
GeneralRe: DetailsView and dropdownlist Pin
Sandraa16-Dec-08 9:04
Sandraa16-Dec-08 9:04 
QuestionHow to load any configuration file other than web.config ? Pin
Bijay Deo14-Dec-08 7:30
Bijay Deo14-Dec-08 7:30 
AnswerRe: How to load any configuration file other than web.config ? Pin
Christian Graus14-Dec-08 8:20
protectorChristian Graus14-Dec-08 8:20 
QuestionA free hosting of ASP with Mysql Pin
abbd14-Dec-08 6:16
abbd14-Dec-08 6:16 
AnswerRe: A free hosting of ASP with Mysql Pin
Christian Graus14-Dec-08 8:20
protectorChristian Graus14-Dec-08 8:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.