Click here to Skip to main content
15,891,777 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHow to create html documents with embedded images ? HTML printing problems.. [modified] Pin
GuimaSun14-Aug-07 7:44
GuimaSun14-Aug-07 7:44 
QuestionPreventing password fill-in Pin
GregStevens14-Aug-07 5:30
GregStevens14-Aug-07 5:30 
AnswerRe: Preventing password fill-in Pin
Vasudevan Deepak Kumar14-Aug-07 5:39
Vasudevan Deepak Kumar14-Aug-07 5:39 
GeneralRe: Preventing password fill-in Pin
GregStevens14-Aug-07 5:59
GregStevens14-Aug-07 5:59 
QuestionImplementing FLVPlayer compatible with c#.net 2.0 Pin
harryforum14-Aug-07 0:18
harryforum14-Aug-07 0:18 
Questionimplementing yahoo maps in c#.net website Pin
harryforum13-Aug-07 22:58
harryforum13-Aug-07 22:58 
Questionflash Pin
michael_jhons13-Aug-07 22:16
michael_jhons13-Aug-07 22:16 
Questionbutton inside a gridview to display more detailed grid view Pin
Oga M13-Aug-07 21:36
Oga M13-Aug-07 21:36 
This is the code for the first gridview,when the page open it should display the names of all the project members,

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

If Page.IsPostBack = False Then

'txtProjectManager.Text = Session("ProjectManager")

Dim obj As Businesslayer.TimeSheet = New Businesslayer.TimeSheet

Dim ds As New Data.DataSet

ds = obj.GetProjectMembers1

GridView2.DataSource = ds

GridView2.DataBind()

End If

End Sub



This is the code foe the btn

when I click the button inside the gridview it must show,the second gridview for each row

Private Sub Button1_Click(ByVal o As Object, ByVal e As EventArgs)

Dim Button1 As Button = DirectCast(o, Button)

Dim grdRow As GridViewRow = DirectCast(Button1.Parent.Parent, GridViewRow)

Dim strField1 As String = grdRow.Cells(0).Text

Dim strField2 As String = grdRow.Cells(0).Text

End Sub



This is the code for the second grid view



Protected Sub GridView2_SelectedIndexChanging(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView2.SelectedIndexChanged

Dim gv As GridView = CType(sender, GridView)

Dim ds As New Data.DataSet

Dim obj As Businesslayer.TimeSheet = New Businesslayer.TimeSheet

ds = obj.GetTimeSheet(gv.SelectedValue.ToString())

obj = Nothing

GridView1.DataSource = ds

GridView1.DataBind()

End Sub

When I click the btn,it only postback,doesn’t display the second gridview,what might be the problem?



QuestionFramework for developing ASP.NET Pin
ctlqt1213-Aug-07 20:20
ctlqt1213-Aug-07 20:20 
AnswerRe: Framework for developing ASP.NET Pin
Christian Graus13-Aug-07 20:45
protectorChristian Graus13-Aug-07 20:45 
GeneralRe: Framework for developing ASP.NET Pin
ctlqt1213-Aug-07 21:22
ctlqt1213-Aug-07 21:22 
GeneralRe: Framework for developing ASP.NET Pin
kubben14-Aug-07 3:29
kubben14-Aug-07 3:29 
AnswerRe: Framework for developing ASP.NET Pin
eggie514-Aug-07 12:23
eggie514-Aug-07 12:23 
QuestionSharePoint Help Pin
alexfromto13-Aug-07 9:34
alexfromto13-Aug-07 9:34 
AnswerRe: SharePoint Help Pin
Michael Sync13-Aug-07 15:54
Michael Sync13-Aug-07 15:54 
GeneralRe: SharePoint Help Pin
Michael Sync13-Aug-07 16:00
Michael Sync13-Aug-07 16:00 
GeneralRe: SharePoint Help Pin
alexfromto14-Aug-07 11:44
alexfromto14-Aug-07 11:44 
GeneralRe: SharePoint Help Pin
.NET4Ever14-Aug-07 17:55
.NET4Ever14-Aug-07 17:55 
GeneralRe: SharePoint Help Pin
alexfromto15-Aug-07 2:45
alexfromto15-Aug-07 2:45 
QuestionRefeshing Grid View Pin
Muhammad Noor13-Aug-07 4:14
Muhammad Noor13-Aug-07 4:14 
AnswerRe: Refeshing Grid View Pin
Michael Sync13-Aug-07 5:00
Michael Sync13-Aug-07 5:00 
QuestionPhoto Album Pin
Muhammad Noor13-Aug-07 4:08
Muhammad Noor13-Aug-07 4:08 
AnswerRe: Photo Album Pin
Michael Sync13-Aug-07 4:47
Michael Sync13-Aug-07 4:47 
AnswerRe: Photo Album Pin
.NET4Ever14-Aug-07 17:47
.NET4Ever14-Aug-07 17:47 
GeneralRe: Photo Album Pin
Michael Sync15-Aug-07 16:50
Michael Sync15-Aug-07 16:50 

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.