C
C#13mo 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
JakenVeina13mo 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
deepakkr13mo ago
Yes exactly What is the way ?
JakenVeina
JakenVeina13mo ago
again I can't tell you without knowing what you have now
deepakkr
deepakkr13mo 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
JakenVeina13mo ago
great retrieve it from the database
deepakkr
deepakkr13mo ago
How
JakenVeina
JakenVeina13mo 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
deepakkr13mo ago
Microsoft sql Select query No idea about this
JakenVeina
JakenVeina13mo ago
what runs your select queries for you?
deepakkr
deepakkr13mo ago
This column list
JakenVeina
JakenVeina13mo ago
a column list does not run queries
deepakkr
deepakkr13mo ago
Which i want to bind
JakenVeina
JakenVeina13mo ago
how do you run queries?
deepakkr
deepakkr13mo ago
Select column name from table
JakenVeina
JakenVeina13mo ago
yes, that how do you do that? in your app
deepakkr
deepakkr13mo ago
In database I run the query
JakenVeina
JakenVeina13mo ago
how?
deepakkr
deepakkr13mo ago
Like how we run query in database
JakenVeina
JakenVeina13mo ago
yes how do you do that in your app?
deepakkr
deepakkr13mo ago
Are u aware about vb.net?
JakenVeina
JakenVeina13mo 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
deepakkr13mo ago
Production
JakenVeina
JakenVeina13mo ago
VB.NET is a language, not a data access library
deepakkr
deepakkr13mo 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
JakenVeina13mo ago
indeed
deepakkr
deepakkr13mo ago
In order to populate type list
JakenVeina
JakenVeina13mo ago
do you know how to run queries in VB?
deepakkr
deepakkr13mo ago
That i dont know How
JakenVeina
JakenVeina13mo ago
then that's what you need to be asking
deepakkr
deepakkr13mo ago
It is done Any reference You would like to share Doc , videos? To learn that
JakenVeina
JakenVeina13mo ago
JakenVeina
JakenVeina13mo ago
to start
deepakkr
deepakkr13mo ago
Okay Do you have any reference project which have the same ask as mine?
JakenVeina
JakenVeina13mo ago
ah, here we go
JakenVeina
JakenVeina13mo ago
Overview - ADO.NET
Read an overview of ADO.NET in .NET Framework and read about resources for more detailed explanations and examples.
JakenVeina
JakenVeina13mo ago
in particular
JakenVeina
JakenVeina13mo 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
deepakkr13mo ago
deepakkr
deepakkr13mo ago
JakenVeina
JakenVeina13mo ago
?
Angius
Angius13mo 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
deepakkr13mo ago
This code is in c# How can this be convert into vb
JakenVeina
JakenVeina13mo ago
by writing it in VB? also, what code? the code in that screenshot is VB you just have errors
deepakkr
deepakkr13mo ago
If possible can we connect tomorrow on zoom . I need help in resolving error kind of new with this technology
JakenVeina
JakenVeina13mo ago
no if you have questions, ask them here
deepakkr
deepakkr13mo ago
Accord
Accord13mo 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.