Click here to Skip to main content
15,908,841 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: How display data from DB by selecting from DropdownList [modified] Pin
Praveen 1231-Feb-07 17:06
Praveen 1231-Feb-07 17:06 
QuestionHow do i pass the SelectedValue/Index of a DropDownList in a GridViews EditItem Template to a Control Parameter? Pin
Red_Wizard_Shot_The_Food1-Feb-07 1:18
Red_Wizard_Shot_The_Food1-Feb-07 1:18 
AnswerRe: How do i pass the SelectedValue/Index of a DropDownList in a GridViews EditItem Template to a Control Parameter? Pin
minhpc_bk1-Feb-07 5:35
minhpc_bk1-Feb-07 5:35 
GeneralRe: How do i pass the SelectedValue/Index of a DropDownList in a GridViews EditItem Template to a Control Parameter? Pin
Red_Wizard_Shot_The_Food1-Feb-07 6:14
Red_Wizard_Shot_The_Food1-Feb-07 6:14 
GeneralRe: How do i pass the SelectedValue/Index of a DropDownList in a GridViews EditItem Template to a Control Parameter? Pin
minhpc_bk1-Feb-07 18:44
minhpc_bk1-Feb-07 18:44 
QuestionReporting Problem Pin
Sarfaraj Ahmed1-Feb-07 1:15
Sarfaraj Ahmed1-Feb-07 1:15 
AnswerRe: Reporting Problem Pin
Sandeep Akhare1-Feb-07 2:58
Sandeep Akhare1-Feb-07 2:58 
GeneralRe: Reporting Problem Pin
Sarfaraj Ahmed2-Feb-07 1:40
Sarfaraj Ahmed2-Feb-07 1:40 
Hi Sandeep
Please check the code and let me know
Thanks

Imports System.Data
Imports System.Data.SqlClient
Imports Microsoft.Reporting.WebForms
Partial Class Member_Members
Inherits System.Web.UI.Page

Protected Sub btnSearchMember_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearchMember.Click
Dim con As DataAccess = New DataAccess()
Dim conLessons As SqlConnection = con.SQLConnnect()
Dim cmd As SqlCommand = New SqlCommand()
Dim _DataReader As SqlDataReader
Dim _DataSet As DataSet = New DataSetMember()
Dim _ReportDataSource As ReportDataSource = New ReportDataSource()

Try
conLessons.Open()
cmd.CommandType = CommandType.Text
cmd.Connection = conLessons
cmd.CommandText = "Select AutoID, ForeName, SurName From Members Where AutoID=" & TextBox1.Text & ""
_DataReader = cmd.ExecuteReader()
_DataSet.Tables(0).Load(_DataReader)
_DataReader.Close()
conLessons.Close()
ReportViewerMembers.LocalReport.ReportPath = Server.MapPath("~/Member/ReportMembers.rdlc")
_ReportDataSource.Name = "DataSetMember_Members"
_ReportDataSource.Value = _DataSet.Tables(0)
ReportViewerMembers.LocalReport.DataSources.Add(_ReportDataSource)
ReportViewerMembers.LocalReport.Refresh()
Catch ex As Exception
If conLessons.State = ConnectionState.Open Then
conLessons.Close()
End If
End Try
End Sub
End Class

Sarfarj Ahmed

GeneralRe: Reporting Problem Pin
Sandeep Akhare2-Feb-07 2:03
Sandeep Akhare2-Feb-07 2:03 
GeneralRe: Reporting Problem Pin
Sarfaraj Ahmed2-Feb-07 4:03
Sarfaraj Ahmed2-Feb-07 4:03 
Questionhow to import data from an excel to a datagrid Pin
gauthee1-Feb-07 1:06
gauthee1-Feb-07 1:06 
AnswerRe: how to import data from an excel to a datagrid Pin
Parwej Ahamad1-Feb-07 1:18
professionalParwej Ahamad1-Feb-07 1:18 
AnswerRe: how to import data from an excel to a datagrid Pin
Sandeep Akhare1-Feb-07 3:09
Sandeep Akhare1-Feb-07 3:09 
GeneralRe: how to import data from an excel to a datagrid Pin
gauthee1-Feb-07 23:08
gauthee1-Feb-07 23:08 
GeneralRe: how to import data from an excel to a datagrid Pin
Sandeep Akhare2-Feb-07 2:06
Sandeep Akhare2-Feb-07 2:06 
GeneralRe: how to import data from an excel to a datagrid Pin
Sandeep Akhare2-Feb-07 2:15
Sandeep Akhare2-Feb-07 2:15 
QuestionWhy OleDbCommand call oracle9i user function success,but OleDbCommand call failed. Pin
Old Gun1-Feb-07 0:56
Old Gun1-Feb-07 0:56 
QuestionUser Control Pin
aaraaayen1-Feb-07 0:11
aaraaayen1-Feb-07 0:11 
AnswerRe: User Control Pin
blue_arc1-Feb-07 1:48
blue_arc1-Feb-07 1:48 
AnswerRe: User Control Pin
Sandeep Akhare1-Feb-07 3:01
Sandeep Akhare1-Feb-07 3:01 
AnswerRe: User Control Pin
DavidNohejl1-Feb-07 11:35
DavidNohejl1-Feb-07 11:35 
QuestionInterview Material Pin
rrcc31-Jan-07 23:08
rrcc31-Jan-07 23:08 
AnswerRe: Interview Material Pin
rrcc31-Jan-07 23:35
rrcc31-Jan-07 23:35 
AnswerRe: Interview Material Pin
_AK_31-Jan-07 23:44
_AK_31-Jan-07 23:44 
Questioninfo abt whiteboard Pin
Sebastian T Xavier31-Jan-07 22:55
Sebastian T Xavier31-Jan-07 22:55 

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.