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

ASP.NET

 
AnswerRe: ASP.NET project not 'seeing' css file Pin
Arvind Zamakia26-Sep-14 2:56
Arvind Zamakia26-Sep-14 2:56 
GeneralRe: ASP.NET project not 'seeing' css file Pin
Member 876166726-Sep-14 4:39
Member 876166726-Sep-14 4:39 
QuestionHow to add Items in DropDown List Programitically ??? Pin
Abhishek kumar12121-Sep-14 1:00
Abhishek kumar12121-Sep-14 1:00 
AnswerRe: How to add Items in DropDown List Programitically ??? Pin
M.Farrukh Abbas21-Sep-14 1:59
M.Farrukh Abbas21-Sep-14 1:59 
GeneralRe: How to add Items in DropDown List Programitically ??? Pin
Abhishek kumar12121-Sep-14 2:16
Abhishek kumar12121-Sep-14 2:16 
GeneralRe: How to add Items in DropDown List Programitically ??? Pin
M.Farrukh Abbas21-Sep-14 19:04
M.Farrukh Abbas21-Sep-14 19:04 
AnswerRe: How to add Items in DropDown List Programitically ??? Pin
Arvind Zamakia26-Sep-14 3:28
Arvind Zamakia26-Sep-14 3:28 
QuestionWhy is it so difficult to make search by dropdownlist value? (Solved) Pin
samflex20-Sep-14 15:10
samflex20-Sep-14 15:10 
Hi Experts,

I have this:

PHP
<asp:DropDownList ID="ddlLocation" runat="server" AppendDataBoundItems="True"
   AutoPostBack="True" Width="140px">
 <asp:ListItem Value="0">Choose Location</asp:ListItem>
</asp:DropDownList>


Then this sub on codebehind:

PHP
Public Sub BindData()
       Dim oconn As New SqlConnection(sqlconn)
       '   AddHandler ddlLocation.SelectedIndexChanged, New EventHandler(AddressOf ddl_SelectedIndexChanged)
       oconn.Open()
       Dim ocmd As New SqlCommand("select l.locationid,l.Location, c.CourseId, i.instructorId,CourseName, i.instructorname, dbo.fnFormatDate(t.trainingDates, 'MON/DD/YYYY') trainingDates, t.trainingTime,CourseDescription from tblCourses c, tblLocations l, tblTrainingDates t, tblInstructors i, tblCourseInstructor ci where l.locationid = c.locationid and c.dateId = t.dateId and i.instructorid =  ci.instructorId and c.courseid=ci.courseid and YEAR(t.trainingDates) = YEAR(getDate()) and l.locationId = " & ddlLocation.SelectedValue, oconn)
       Dim oda As New SqlDataAdapter(ocmd)
       Dim builder As New SqlCommandBuilder(oda)
       Dim ds As New DataSet()
       oda.Fill(ds)
       gv1.DataSource = ds
       gv1.DataBind()
   End Sub


We would like to select a value from the ddlLocation dropdownlist and display records associated with that value.

Any ideas how to handle this?

Thanks a lot in advance

modified 21-Sep-14 21:41pm.

AnswerRe: Why is it so difficult to make search by dropdownlist value? Pin
M.Farrukh Abbas21-Sep-14 2:02
M.Farrukh Abbas21-Sep-14 2:02 
GeneralRe: Why is it so difficult to make search by dropdownlist value? Pin
samflex21-Sep-14 4:08
samflex21-Sep-14 4:08 
AnswerRe: Why is it so difficult to make search by dropdownlist value? (Solved) Pin
Arvind Zamakia26-Sep-14 3:33
Arvind Zamakia26-Sep-14 3:33 
GeneralRe: Why is it so difficult to make search by dropdownlist value? (Solved) Pin
samflex26-Sep-14 8:25
samflex26-Sep-14 8:25 
QuestionJavaScript Code not working properly for a registration ASP page. Pin
omrohit120-Sep-14 6:10
omrohit120-Sep-14 6:10 
AnswerRe: JavaScript Code not working properly for a registration ASP page. Pin
Kornfeld Eliyahu Peter20-Sep-14 8:32
professionalKornfeld Eliyahu Peter20-Sep-14 8:32 
AnswerRe: JavaScript Code not working properly for a registration ASP page. Pin
Richard Deeming22-Sep-14 2:27
mveRichard Deeming22-Sep-14 2:27 
QuestionGetting error ORA12541 while connecting to oracle through ASP.net Pin
Akshay Dukhande19-Sep-14 0:01
Akshay Dukhande19-Sep-14 0:01 
AnswerRe: Getting error ORA12541 while connecting to oracle through ASP.net Pin
jkirkerx19-Sep-14 7:47
professionaljkirkerx19-Sep-14 7:47 
GeneralRe: Getting error ORA12541 while connecting to oracle through ASP.net Pin
Akshay Dukhande20-Sep-14 6:34
Akshay Dukhande20-Sep-14 6:34 
GeneralRe: Getting error ORA12541 while connecting to oracle through ASP.net Pin
jkirkerx20-Sep-14 8:07
professionaljkirkerx20-Sep-14 8:07 
GeneralRe: Getting error ORA12541 while connecting to oracle through ASP.net Pin
Akshay Dukhande21-Sep-14 19:20
Akshay Dukhande21-Sep-14 19:20 
GeneralRe: Getting error ORA12541 while connecting to oracle through ASP.net Pin
jkirkerx22-Sep-14 13:30
professionaljkirkerx22-Sep-14 13:30 
AnswerRe: Getting error ORA12541 while connecting to oracle through ASP.net Pin
thatraja21-Sep-14 19:28
professionalthatraja21-Sep-14 19:28 
QuestionPosting a form to a table Pin
Member 914293618-Sep-14 10:23
Member 914293618-Sep-14 10:23 
AnswerRe: Posting a form to a table Pin
Richard Deeming19-Sep-14 1:34
mveRichard Deeming19-Sep-14 1:34 
QuestionI am having problem updating one table by selecting values from dynamic dropdownlist from another table Pin
samflex18-Sep-14 5:40
samflex18-Sep-14 5:40 

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.