C
C#2y ago
deepakkr

Hello , i am developing a aspx page using web forms where i have introduced a dropdown combo box as

Hello , i am developing a aspx page using web forms where i have introduced a dropdown combo box as types and the ask is it should reflect all the types that already exist in database . What changes do i have to make in aspx.vb in order to populate the list as such from the database column.Can anyone suggest how to do so
47 Replies
JakenVeina
JakenVeina2y ago
can't tell you what changes you need to make without knowing what you have now by definition of what "changes" means but suffice it to say it's going to involve you retrieving the list of values from the database and rendering them into your page
deepakkr
deepakkrOP2y ago
Yes exactly What is the way ?
JakenVeina
JakenVeina2y ago
again I can't tell you without knowing what you have now
deepakkr
deepakkrOP2y ago
Actually there is one column in database named as license type I have made a combo box in my aspx page as license type I want to populate exact list which is showing in databse
JakenVeina
JakenVeina2y ago
great retrieve it from the database
deepakkr
deepakkrOP2y ago
How
JakenVeina
JakenVeina2y ago
then put it in the ComboBox you tell me how do you retrieve things from the database in this app? what database are you even using? what data access library are you using?
deepakkr
deepakkrOP2y ago
Microsoft sql Select query No idea about this
JakenVeina
JakenVeina2y ago
what runs your select queries for you?
deepakkr
deepakkrOP2y ago
This column list
JakenVeina
JakenVeina2y ago
a column list does not run queries
deepakkr
deepakkrOP2y ago
Which i want to bind
JakenVeina
JakenVeina2y ago
how do you run queries?
deepakkr
deepakkrOP2y ago
Select column name from table
JakenVeina
JakenVeina2y ago
yes, that how do you do that? in your app
deepakkr
deepakkrOP2y ago
In database I run the query
JakenVeina
JakenVeina2y ago
how?
deepakkr
deepakkrOP2y ago
Like how we run query in database
JakenVeina
JakenVeina2y ago
yes how do you do that in your app?
deepakkr
deepakkrOP2y ago
Are u aware about vb.net?
JakenVeina
JakenVeina2y ago
the thing that does that in your app is your data access library what data access library are you using? yes, I use it daily
deepakkr
deepakkrOP2y ago
Production
JakenVeina
JakenVeina2y ago
VB.NET is a language, not a data access library
deepakkr
deepakkrOP2y ago
I am trying to create taking help from multiple places but still cant figure out how to do so I mean i need to bind the data from database with my aspx.vb page
JakenVeina
JakenVeina2y ago
indeed
deepakkr
deepakkrOP2y ago
In order to populate type list
JakenVeina
JakenVeina2y ago
do you know how to run queries in VB?
deepakkr
deepakkrOP2y ago
That i dont know How
JakenVeina
JakenVeina2y ago
then that's what you need to be asking
deepakkr
deepakkrOP2y ago
It is done Any reference You would like to share Doc , videos? To learn that
JakenVeina
JakenVeina2y ago
to start
deepakkr
deepakkrOP2y ago
Okay Do you have any reference project which have the same ask as mine?
JakenVeina
JakenVeina2y ago
ah, here we go
JakenVeina
JakenVeina2y ago
Overview - ADO.NET
Read an overview of ADO.NET in .NET Framework and read about resources for more detailed explanations and examples.
JakenVeina
JakenVeina2y ago
in particular
JakenVeina
JakenVeina2y ago
Code examples - ADO.NET
These examples show .NET Framework programmers how to retrieve data from a database by using ADO.NET data providers and ADO.NET Entity Framework.
deepakkr
deepakkrOP2y ago
deepakkr
deepakkrOP2y ago
JakenVeina
JakenVeina2y ago
?
Angius
Angius2y ago
I'm no archaeologist so I don't know much about webforms and VB, but do you have connectioNString declared anywhere? I'd assume error messages would be helpful
deepakkr
deepakkrOP2y ago
This code is in c# How can this be convert into vb
JakenVeina
JakenVeina2y ago
by writing it in VB? also, what code? the code in that screenshot is VB you just have errors
deepakkr
deepakkrOP2y ago
If possible can we connect tomorrow on zoom . I need help in resolving error kind of new with this technology
JakenVeina
JakenVeina2y ago
no if you have questions, ask them here
deepakkr
deepakkrOP2y ago
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server