Click here to Skip to main content
15,914,013 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Paging in datagrid Pin
Nagraj Naik15-Jun-06 19:49
Nagraj Naik15-Jun-06 19:49 
GeneralRe: Paging in datagrid Pin
Suamal15-Jun-06 20:11
Suamal15-Jun-06 20:11 
GeneralRe: Paging in datagrid Pin
Nagraj Naik15-Jun-06 21:38
Nagraj Naik15-Jun-06 21:38 
GeneralRe: Paging in datagrid Pin
Suamal15-Jun-06 22:58
Suamal15-Jun-06 22:58 
GeneralRe: Paging in datagrid Pin
Nagraj Naik15-Jun-06 23:22
Nagraj Naik15-Jun-06 23:22 
QuestionError : Page_Validators is undefined [modified] Pin
Praveen_S14-Jun-06 20:24
Praveen_S14-Jun-06 20:24 
AnswerRe: Error : Page_Validators is undefined Pin
minhpc_bk15-Jun-06 16:54
minhpc_bk15-Jun-06 16:54 
Questiondyamically generate 0 to n number of web charts within a templated control. Pin
uglyeyes14-Jun-06 19:47
uglyeyes14-Jun-06 19:47 
Hi I am in process of this task. i am not worrying about chart i am working about organising my data first to bind to a chart.

i dont get any data in the last repeater. my aspx code
===========================
<asp:repeater id="myRepeater" runat="server">
<ItemTemplate>
<TR>
<TD><b><u><%#DataBinder.Eval(Container.DataItem, "ScoreCardId")%></u></b></TD>
</TR>
<asp:repeater id="NestedRepeater" runat="server">
<ItemTemplate>
<TR>
<TD><%#DataBinder.Eval(Container.DataItem,"Measure_ID")%>
<br>
</TD>
</TR>
<asp:Repeater id="SubNestedRepeater" Runat="server">
<ItemTemplate>
<tr>
<td><%#DataBinder.Eval(Container.DataItem,"period")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"target")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"actual")%></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</ItemTemplate>
</asp:repeater>
</ItemTemplate>
</asp:repeater>

vb code
=====================================

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here

objConn = New SqlConnection(dbPath)
cmd = New SqlCommand("select distinct(ScoreCardId) from measuredata;select * from measuredata", objConn)
Dim sdap As New SqlDataAdapter(cmd)
Dim ds As New DataSet
sdap.Fill(ds)

ds.Relations.Add(New DataRelation("NestThem", ds.Tables(0).Columns("ScorecardId"), ds.Tables(1).Columns("ScorecardId")))
myRepeater.DataSource = ds
myRepeater.DataBind()
End Sub

Private Sub myRepeater_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles myRepeater.ItemDataBound
Dim dv As DataRowView = e.Item.DataItem '
If Not (dv Is Nothing) Then
Dim nestedRepeater As Repeater = e.Item.FindControl("NestedRepeater") '

If Not (nestedRepeater Is Nothing) Then
objConn = New SqlConnection(dbPath)
cmd = New SqlCommand("select distinct (measure_id) from measuredata; select * from measuredata", objConn)
Dim subadap As New SqlDataAdapter(cmd)
Dim subDs As New DataSet
subadap.Fill(subDs)

subDs.Relations.Add(New DataRelation("NestThemSub", subDs.Tables(0).Columns("Measure_ID"), subDs.Tables(1).Columns("Measure_ID")))
nestedRepeater.DataSource = dv.CreateChildView("NestThem")
nestedRepeater.DataBind()

End If
End If
End Sub 'myRepeater_ItemDataBound

Private Sub nestedRepeater_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles nestedRepeater.ItemDataBound
Dim dv As DataRowView = e.Item.DataItem

If Not (dv Is Nothing) Then
Dim subNestedRepeater As Repeater = e.Item.FindControl("SubNestedRepeater")

If Not (subNestedRepeater Is Nothing) Then
subNestedRepeater.DataSource = dv.CreateChildView("NestThemSub")
subNestedRepeater.DataBind()

End If
End If
End Sub
------------------------------
I dont know why my subNestedReapeater is not getting any data.
please help.

EVENTUALLY I NEED TO BE ABLE TO DISPLAY

ScorecardId
dynamic webchart objectS instead of subNestedRepeater

currently my output is something like this for the above code.

----------------
1
1.1.1.1

1.1.1.1

1.1.1.1

1.1.1.1

1.1.1.1

1.1.1.1

1.1.1.2

1.1.1.2

1.1.1.2

1.1.1.2

1.1.1.2

1.1.1.2

1.1.1.2

1.1.1.2

2
1.1.2.1

1.1.2.1

1.1.2.1

1.1.2.1

1.1.2.1

1.1.2.1

----------------

i want to display

1
webchart1 with all the data associated with measure_id 1.1.1.1
webchart2 with all the data associated with measure_id 1.1.2.1

2
webchart1 with all the data associated with measure_id 1.1.2.1 (only)

(please note since 2 have only one measure id so i need to plot only 1 webchart. the idea is i need to generate webchart dynamically based on how many measure_id there is for each ScorecardID.

Questionsddfgfd Pin
surshbabuk14-Jun-06 19:44
surshbabuk14-Jun-06 19:44 
AnswerRe: sddfgfd Pin
_AK_14-Jun-06 20:18
_AK_14-Jun-06 20:18 
JokeRe: sddfgfd Pin
Guffa15-Jun-06 0:40
Guffa15-Jun-06 0:40 
GeneralRe: sddfgfd Pin
_AK_15-Jun-06 0:43
_AK_15-Jun-06 0:43 
Questionrename the file in vb.net Pin
amaneet14-Jun-06 19:36
amaneet14-Jun-06 19:36 
AnswerRe: rename the file in vb.net Pin
minhpc_bk14-Jun-06 20:02
minhpc_bk14-Jun-06 20:02 
Questiondraw graphs Pin
Najeed14-Jun-06 19:23
Najeed14-Jun-06 19:23 
AnswerRe: draw graphs Pin
amaneet14-Jun-06 19:29
amaneet14-Jun-06 19:29 
Questionbitmap class in vb.net Pin
amaneet14-Jun-06 19:20
amaneet14-Jun-06 19:20 
QuestionReading Contents of a Word File. Pin
deepaks314-Jun-06 19:15
deepaks314-Jun-06 19:15 
AnswerRe: Reading Contents of a Word File. Pin
amaneet14-Jun-06 19:22
amaneet14-Jun-06 19:22 
GeneralRe: Reading Contents of a Word File. Pin
deepaks314-Jun-06 19:41
deepaks314-Jun-06 19:41 
QuestionMultiline Datagrid Control [modified] Pin
Nagraj Naik14-Jun-06 19:11
Nagraj Naik14-Jun-06 19:11 
GeneralRe: Multiline Datagrid Control [modified] Pin
amaneet14-Jun-06 19:25
amaneet14-Jun-06 19:25 
AnswerRe: Multiline Datagrid Control Pin
Suamal14-Jun-06 19:36
Suamal14-Jun-06 19:36 
GeneralRe: Multiline Datagrid Control Pin
Nagraj Naik14-Jun-06 20:08
Nagraj Naik14-Jun-06 20:08 
QuestionCount WebSite Visitors Pin
TheEagle14-Jun-06 18:36
TheEagle14-Jun-06 18:36 

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.