3-level hierarchy: datalist->datalist->datagrid. edit of datagrid doesn't work

I have a 3-level hierarchy consisting of a datagrid nested in a datalist, which again is nested in a datalist. All works fine except for editing the datagrid. The EditCommand of the datagrid fires, and I set the EditItemIndex to the selected item after which I rebind the data of the whole hierarchy. I have analyzed the parameters, sender and eventargs, and they originate from the correct datagrid. The problem is that the datagrid row doesn't enter edit mode after the page is reloaded. I suspect that the problem is somehow caused by the data rebinding of the hierarchy. As you can see in the code I have tried to programmatically register an event handler to the editcommand of the grid, with no luck. I have read through many postings in newsgroups regarding this problem, but can't seem to find a working solution. 

I hope I've explained the problem clearly enough, even though I'm new to ASP.net.
Any tips and help would be greatly appreciated.
Regards,
Niclas Kjäll-Ohlsson

<%@ Page Language="VB" Debug="true" %>
<%@ Register TagPrefix="wmx" Namespace="Microsoft.Matrix.Framework.Web.UI" Assembly="Microsoft.Matrix.Framework, Version=0.6.0.0, Culture=neutral, PublicKeyToken=6f763c9966660626" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.OleDb" %>
<script runat="server">

Dim ConnStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\data\programming\jotunfjell\vaktliste.mdb"
Dim vaktlisteconn As New OleDbConnection(ConnStr
Sub Page_Load(ByVal Sender As Object, ByVal e As EventArgs)
If Not IsPostBack Then
BindGrid()
End If
End Sub
Function GetSkiftplanData(ByVal avdeling_id As String, ByVal skiftplan_id As String) As DataSet
Dim Skiftplan As New DataSet()
Dim SkiftplanAdpt As New OleDbDataAdapter()

Dim SQL As String = "SELECT x.skiftplan_id, x.uke, max(x.fra1) AS dag1fra, max(x.til1) AS dag1til, max(x.fra2) AS dag2fra, max(x.til2) AS dag2til, max(x.fra3) AS dag3fra, max(x.til3) AS dag3til, max(x.fra4) AS dag4fra, max(x.til4) AS dag4til, max(x.fra5) AS dag5fra, max(x.til5) AS dag5til, max(x.fra6) AS dag6fra, max(x.til6) AS dag6til, max(x.fra7) AS dag7fra, max(x.til7) AS dag7til, " & _
"sum((datediff(""h"",x.fra1,x.til1)+(datediff(""n"",x.fra1,x.til1) mod 60)/100/0.6) + " & _
"(datediff(""h"",x.fra2,x.til2)+(datediff(""n"",x.fra2,x.til2) mod 60)/100/0.6) + " & _
"(datediff(""h"",x.fra3,x.til3)+(datediff(""n"",x.fra3,x.til3) mod 60)/100/0.6) + " & _
"(datediff(""h"",x.fra4,x.til4)+(datediff(""n"",x.fra4,x.til4) mod 60)/100/0.6) + " & _
"(datediff(""h"",x.fra5,x.til5)+(datediff(""n"",x.fra5,x.til5) mod 60)/100/0.6) + " & _
"(datediff(""h"",x.fra6,x.til6)+(datediff(""n"",x.fra6,x.til6) mod 60)/100/0.6) + " & _
"(datediff(""h"",x.fra7,x.til7)+(datediff(""n"",x.fra7,x.til7) mod 60)/100/0.6)" & _
") as sumtimer, x.avdeling_id " & _
"FROM [SELECT a.skiftplan_id, a.uke, b.avdeling_id, a.fra as fra1, a.til as til1, cdate(0) as fra2, cdate(0) as til2, cdate(0) as fra3, cdate(0) as til3, cdate(0) as fra4, cdate(0) as til4, cdate(0) as fra5, cdate(0) as til5, cdate(0) as fra6, cdate(0) as til6, cdate(0) as fra7, cdate(0) as til7 " & _
"FROM sub_skiftplan a INNER JOIN skiftplan b ON a.skiftplan_id=b.skiftplan_id " & _
"WHERE a.dagnr = 1 AND a.enhet_id = 1 AND a.skiftplan_id = " & skiftplan_id & " AND b.avdeling_id = " & avdeling_id & " " & _
"UNION " & _
"SELECT a.skiftplan_id, a.uke, b.avdeling_id, cdate(0) as fra1, cdate(0) as til1, a.fra as fra2, a.til as til2, cdate(0) as fra3, cdate(0) as til3, cdate(0) as fra4, cdate(0) as til4, cdate(0) as fra5, cdate(0) as til5, cdate(0) as fra6, cdate(0) as til6, cdate(0) as fra7, cdate(0) as til7 " & _
"FROM sub_skiftplan a INNER JOIN skiftplan b ON a.skiftplan_id=b.skiftplan_id " & _
"WHERE a.dagnr = 2 AND a.enhet_id = 1 AND a.skiftplan_id = " & skiftplan_id & " AND b.avdeling_id = " & avdeling_id & " " & _
"UNION " & _
"SELECT a.skiftplan_id, a.uke, b.avdeling_id, cdate(0) as fra1, cdate(0) as til1, cdate(0) as fra2, cdate(0) as til2, a.fra as fra3, a.til as til3, cdate(0) as fra4, cdate(0) as til4, cdate(0) as fra5, cdate(0) as til5, cdate(0) as fra6, cdate(0) as til6, cdate(0) as fra7, cdate(0) as til7 " & _
"FROM sub_skiftplan a INNER JOIN skiftplan b ON a.skiftplan_id=b.skiftplan_id " & _
"WHERE a.dagnr = 3 AND a.enhet_id = 1 AND a.skiftplan_id = " & skiftplan_id & " AND b.avdeling_id = " & avdeling_id & " " & _
"UNION " & _
"SELECT a.skiftplan_id, a.uke, b.avdeling_id, cdate(0) as fra1, cdate(0) as til1, cdate(0) as fra2, cdate(0) as til2, cdate(0) as fra3, cdate(0) as til3, a.fra as fra4,a.til as til4, cdate(0) as fra5, cdate(0) as til5, cdate(0) as fra6, cdate(0) as til6, cdate(0) as fra7, cdate(0) as til7 " & _
"FROM sub_skiftplan a INNER JOIN skiftplan b ON a.skiftplan_id=b.skiftplan_id " & _
"WHERE a.dagnr = 4 AND a.enhet_id = 1 AND a.skiftplan_id = " & skiftplan_id & " AND b.avdeling_id = " & avdeling_id & " " & _
"UNION " & _
"SELECT a.skiftplan_id, a.uke, b.avdeling_id, cdate(0) as fra1,cdate(0) as til1, cdate(0) as fra2, cdate(0) as til2, cdate(0) as fra3, cdate(0) as til3, cdate(0) as fra4, cdate(0) as til4, a.fra as fra5, a.til as til5, cdate(0) as fra6, cdate(0) as til6, cdate(0) as fra7, cdate(0) as til7 " & _
"FROM sub_skiftplan a INNER JOIN skiftplan b ON a.skiftplan_id=b.skiftplan_id " & _
"WHERE a.dagnr = 5 AND a.enhet_id = 1 AND a.skiftplan_id = " & skiftplan_id & " AND b.avdeling_id = " & avdeling_id & " " & _
"UNION " & _
"SELECT a.skiftplan_id, a.uke, b.avdeling_id, cdate(0) as fra1, cdate(0) as til1, cdate(0) as fra2, cdate(0) as til2, cdate(0) as fra3, cdate(0) as til3, cdate(0) as fra4, cdate(0) as til4, cdate(0) as fra5, cdate(0) as til5, a.fra as fra6, a.til as til6, cdate(0) as fra7, cdate(0) as til7 " & _
"FROM sub_skiftplan a INNER JOIN skiftplan b ON a.skiftplan_id=b.skiftplan_id " & _
"WHERE a.dagnr = 6 AND a.enhet_id = 1 AND a.skiftplan_id = " & skiftplan_id & " AND b.avdeling_id = " & avdeling_id & " " & _
"UNION " & _
"SELECT a.skiftplan_id, a.uke, b.avdeling_id,cdate(0) as fra1, cdate(0) as til1, cdate(0) as fra2, cdate(0) as til2, cdate(0) as fra3, cdate(0) as til3, cdate(0) as fra4, cdate(0) as til4, cdate(0) as fra5, cdate(0) as til5, cdate(0) as fra6, cdate(0) as til6, a.fra as fra7,a.til as til7 " & _
"FROM sub_skiftplan a INNER JOIN skiftplan b ON a.skiftplan_id=b.skiftplan_id " & _
"WHERE a.dagnr =7 AND a.enhet_id = 1 AND a.skiftplan_id = " & skiftplan_id & " AND b.avdeling_id = " & avdeling_id & "]. AS x " & _
"GROUP BY x.uke, x.skiftplan_id, x.avdeling_id " & _
"ORDER BY x.avdeling_id, x.skiftplan_id, x.uke;"

Dim SkiftplanCmd As New OleDbCommand(SQL, vaktlisteconn)
SkiftplanAdpt.SelectCommand = SkiftplanCmd
Dim TitlesCB As New OleDbCommandBuilder(SkiftplanAdpt)
SkiftplanAdpt.Fill(Skiftplan)

Return Skiftplan
End Function

Function GetAvdelinger() As DataSet
Dim Avdelinger As New DataSet()
Dim adpt As New OleDbDataAdapter()

Dim SQL As String = "SELECT avdeling_id, avdeling_navn FROM avdeling"

Dim cmd As New OleDbCommand(SQL, vaktlisteconn)
adpt.SelectCommand = cmd
Dim TitlesCB As New OleDbCommandBuilder(adpt)
adpt.Fill(Avdelinger)

Return Avdelinger
End Function

Function GetSkiftplaner(ByVal avdeling As String) As DataSet
Dim skiftplaner As New DataSet()
Dim adpt As New OleDbDataAdapter()

Dim SQL As String = "SELECT skiftplan_id, skiftplan_navn, avdeling_id FROM skiftplan WHERE avdeling_id = " & avdeling

Dim cmd As New OleDbCommand(SQL, vaktlisteconn)
adpt.SelectCommand = cmd
Dim TitlesCB As New OleDbCommandBuilder(adpt)
adpt.Fill(skiftplaner)

Return skiftplaner
End Function

Sub BindGrid()
SkiftplanList.DataSource = GetAvdelinger()
SkiftplanList.DataBind()
End Sub
Sub EditClick(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
CType(sender, DataGrid).EditItemIndex = e.Item.ItemIndex
BindGrid()
End Sub
Sub CancelClick(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
CType(sender, DataGrid).EditItemIndex = -1
BindGrid()
End Sub

Sub UpdateClick(sender As Object, e As DataGridCommandEventArgs)
'Response.Write(e.Item.ItemIndex)
'BindGrid()
End Sub

Sub New_Skiftplan(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
CType(CType(sender, ImageButton).Parent.FindControl("pnlNewSkiftplan"), Panel).Visible = True
End Sub

Sub SkiftplanNyCancel(ByVal sender As Object, ByVal e As System.EventArgs)
CType(CType(sender, Button).Parent.FindControl("pnlNewSkiftplan"), Panel).Visible = False
CType(CType(CType(sender, Button).Parent.FindControl("pnlNewSkiftplan"), Panel).FindControl("skiftplan_navn"), TextBox).Text = ""
CType(CType(CType(sender, Button).Parent.FindControl("pnlNewSkiftplan"), Panel).FindControl("uker"), TextBox).Text = ""
End Sub

Sub SkiftplanNySave(ByVal sender As Object, ByVal e As System.EventArgs)
Dim SQL As String
Dim cmd As OleDbCommand
Dim i As Integer
Dim skiftplan_navn As String = _
CType(CType(CType(sender, Button).Parent.FindControl("pnlNewSkiftplan"), Panel).FindControl("skiftplan_navn"), TextBox).Text
Dim uker As String = _
CType(CType(CType(sender, Button).Parent.FindControl("pnlNewSkiftplan"), Panel).FindControl("uker"), TextBox).Text
Dim avdeling_id As String = _
CType(CType(CType(sender, Button).Parent.FindControl("pnlNewSkiftplan"), Panel).FindControl("avdeling_id"), HiddenField).Value
Dim skiftplan_id As String

vaktlisteconn.Open()

'OBS Må låse skiftplan tabellen her
'KRITISK SEKSJON

SQL = "INSERT INTO skiftplan(enhet_id, avdeling_id, skiftplan_navn, antall_uker) " & _
"VALUES (1," & avdeling_id & ",'" & skiftplan_navn & "'," & uker & ")"

cmd = New OleDbCommand(SQL, vaktlisteconn)
cmd.ExecuteNonQuery()

SQL = "SELECT MAX(skiftplan_id) FROM skiftplan"

cmd = New OleDbCommand(SQL, vaktlisteconn)
skiftplan_id = CType(cmd.ExecuteScalar(), String)

'SLUTT KRITISK SEKSJON

For i = 1 To CType(uker, Integer)
SQL = "INSERT INTO sub_skiftplan VALUES(" & skiftplan_id & "," & i & ",1,1,'00:00','00:00')"

cmd = New OleDbCommand(SQL, vaktlisteconn)
cmd.ExecuteNonQuery()
Next i

BindGrid()
End Sub

Sub sub_skiftplanlist_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs)
'Response.Write(e.Item.FindControl("uc").Controls(1).ToString & "<br>")
'Response.Write(e.Item.Controls(e.Item.ItemIndex).ToString & "<br>")
AddHandler (CType(e.Item.FindControl("uc").Controls(1), DataGrid).EditCommand), AddressOf EditClick
End Sub

Sub SkiftplanDelete(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
Dim cmd As OleDbCommand
Dim skiftplan_id As String = _
CType(CType(CType(sender, ImageButton).Parent, Panel).FindControl("skiftplan_id"), HiddenField).Value

vaktlisteconn.Open()

cmd = New OleDbCommand("DELETE FROM sub_skiftplan WHERE skiftplan_id = " & skiftplan_id, vaktlisteconn)
cmd.ExecuteNonQuery()

cmd = New OleDbCommand("DELETE FROM skiftplan WHERE skiftplan_id = " & skiftplan_id, vaktlisteconn)
cmd.ExecuteNonQuery()

BindGrid()
End Sub

Sub SkiftplangridBind(ByVal sender As Object, ByVal e As System.EventArgs)
End Sub

</script>
<html>
<head>
<title>Skiftplan redigering</title>
</head>
<body class="">
<form runat="server">
<asp:DataList ID="SkiftplanList" Runat="server" >
<ItemTemplate>
<table border="0" cellpadding="3" cellspacing="0" class="Content" width="100%">
<tr>
<td valign="top">
<font face="verdana">Avdeling: <%#DataBinder.Eval(Container.DataItem, "avdeling_navn")%>(<%#DataBinder.Eval(Container.DataItem, "avdeling_id")%>)
<asp:ImageButton ID="new_skiftplan" OnClick="New_Skiftplan" Runat="server" ImageUrl="new.gif" ToolTip="Legg til ny skiftplan" /><br />
<asp:Panel ID="pnlNewSkiftplan" Runat="Server" Visible="false" GroupingText="Legg til ny skiftplan">
Navn:<asp:TextBox ID="skiftplan_navn" Runat="server" /> Uker:<asp:TextBox ID="uker" Runat="server" /><asp:Button ID="save" Text="Legg til" Runat="Server" OnClick="SkiftplanNySave" /><asp:Button ID="cancel" Text="Avbryt" Runat="Server" Onclick="SkiftplanNyCancel" />
<asp:HiddenField ID="avdeling_id" Runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "avdeling_id")%>' />
</asp:panel>
</font>
</td>
</tr>
<tr>
<td>
<asp:DataList ID="sub_skiftplanlist" OnItemCreated="sub_skiftplanlist_ItemCreated" Runat="server" DataSource='<%# GetSkiftplaner(DataBinder.Eval(Container.DataItem, "avdeling_id")) %>'>
<ItemTemplate>
<table border="0" cellpadding="3" cellspacing="0" class="Content" width="100%">
<tr>
<td valign="top">
<asp:Panel id="dummy" Runat="server">
<font face="verdana">Skiftplan: <%#DataBinder.Eval(Container.DataItem, "skiftplan_navn")%>(<%#DataBinder.Eval(Container.DataItem, "skiftplan_id")%>)</font>
<asp:ImageButton ID="delete_skiftplan" Runat="server" ImageUrl="delete.gif" OnClick="SkiftplanDelete" ToolTip="Slett skiftplan" />
<asp:HiddenField ID="skiftplan_id" Runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "skiftplan_id")%>' />
</asp:Panel>
</td>
</tr>
<tr>
<td>
<UserControl id="uc" runat="server">
<asp:DataGrid ID="skiftplangrid" runat="server" BorderColor="black" BorderWidth="1" CellPadding="3" Font-Names="Verdana" Font-Size="8pt" HeaderStyle-BackColor="#aaaadd" OnCancelCommand="CancelClick" OnEditCommand="EditClick" AutoGenerateColumns="false" OnUpdateCommand="UpdateClick" DataSource='<%# GetSkiftplanData(DataBinder.Eval(Container.DataItem, "avdeling_id"), DataBinder.Eval(Container.DataItem, "skiftplan_id")) %>'>
<columns>
<asp:EditCommandColumn EditText="Edit" CancelText="Cancel" UpdateText="Update" ItemStyle-Wrap="false" HeaderText="" HeaderStyle-Wrap="false" />
<asp:BoundColumn HeaderText="uke" DataField="uke" ReadOnly="true" />
<asp:BoundColumn HeaderText="dag1fra" DataField="dag1fra" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag1til" DataField="dag1til" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag2fra" DataField="dag2fra" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag2til" DataField="dag2til" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag3fra" DataField="dag3fra" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag3til" DataField="dag3til" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag4fra" DataField="dag4fra" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag4til" DataField="dag4til" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag5fra" DataField="dag5fra" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag5til" DataField="dag5til" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag6fra" DataField="dag6fra" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag6til" DataField="dag6til" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag7fra" DataField="dag7fra" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="dag7til" DataField="dag7til" DataFormatString="{0:t}" />
<asp:BoundColumn HeaderText="Sum timer" DataField="sumtimer" ReadOnly="true" />
<asp:BoundColumn HeaderText="Avdelingsnr" DataField="avdeling_id" ReadOnly="true" Visible="False" />
<asp:BoundColumn HeaderText="skiftplan_id" ReadOnly="true" DataField="skiftplan_id" Visible="False" />
</columns>
</asp:DataGrid>
</UserControl>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</td>
</tr>
<tr>
<td>
<hr />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</form>
<br />
Meny
</body>
</html>
0
tnako
8/4/2004 3:59:59 PM
asp.net.presentation-controls 72751 articles. 3 followers. Follow

9 Replies
775 Views

Similar Articles

[PageSpeed] 21

I solved the problem, although in major hack-mode code. First i put the datagrid in a user control which I load dynamically from the innermost datalist's onitemcreated event. The user control pumps data into the datagrid. Edit event works smoothly. Secondly I needed to databind the datagrid on every page load. Here I discover that the update and cancel events don't trigger, even though the form gets posted back to the server. This is where the major hack enters the picture. I can detect which control that caused the postback, in this case datagrid_cancel hyperlinkbutton or datagrid_update hyperlinkbutton are interesting. From there on I extract the posted values from the Request.Form and I can update my database if there are changes. It's ugly, but it works.

If anyone have any questions regarding this hack I'd be happy to assist.
Also let me know if there is more elegant solution. To me it seems that there is a bug in the asp.net framework when nesting datagrids.
0
tnako
8/9/2004 3:23:33 AM
How did you bind the data to your nested datagrid?  I'm trying to do a very similiar process but cannot get the datagrid nested inside the nested datalist to bind.
0
bsoulek
10/26/2004 9:58:04 PM
Hi tnako,

Would it be possible for you to help me on 2 level datalist in the Commerce Starter Kit ?
I'm trying to find a solution for two month but i'm really facing problem.
thanks for your answer
0
divos
1/11/2005 8:28:02 AM

I am facing the same problem. Is it possible to post your fixed sample code. It is very urgent for meCrying [:'(]


Thanks


Venki
0
MyVenki
4/8/2005 3:27:40 AM
http://www.netomatix.com/GridInGrid.aspx
http://www.developer.com/net/asp/article.php/2215041
Gunnar Peipman

-- General Protection Fault
-- Illegal Page Fault
-- Not My Fault
0
Qnnn
4/8/2005 6:32:01 AM

It is working now, Thanks for the help

Venki


Thanks


Venki
0
MyVenki
4/8/2005 1:24:31 PM

Hi MyVenki,

Were you also working on the Commerce Straterkit. If so, would it be possible for you to help me ?

Thank you

0
divos
4/8/2005 4:12:31 PM

I don't know Commerce Straterkit, If you can help what you are looking for here and I can help you if possible.Sad [:(]


Thanks


Venki
0
MyVenki
4/8/2005 4:57:06 PM

Now I have come with another problemEmbarrassed [:$]

I have included the edit command in the data list (first level). The edit is working but after editing or canceling the edit mode the drilldown to 2nd level is not working, eventhough it command event is firing also it is executing the user control code but it is not showing the user control. If i do not use the edit command on the data list then it the drilldown is working properly.

If any one faced the issue? Please help me.

 

Here is the code below.

Private Sub DataListManage_ItemCommand(ByVal source As Object, ByVal e As DataListCommandEventArgs) Handles DataListManage.ItemCommand

If e.CommandName = "showsubtasks" Then

ViewState("TaskId") = CInt(CType(e.Item.FindControl("LabelTaskId"), Label).Text)

Dim childgrid As WebUserControlSubTask

childgrid = e.Item.FindControl("WebUserControlSubTask1")

childgrid.SetProject = CInt(ViewState("ProjectId"))

childgrid.SetTask = ViewState("TaskId")

childgrid.Visible = True

CType(e.Item.FindControl("ImagebuttonShowHideSubTask"), ImageButton).ImageUrl = "Images\treeMinus.gif"

CType(e.Item.FindControl("ImagebuttonShowHideSubTask"), ImageButton).CommandName = "hidesubtasks"

'End If

ElseIf e.CommandName = "hidesubtasks" Then

If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then

Dim childgrid As WebUserControlSubTask

childgrid = e.Item.FindControl("WebUserControlSubTask1")

childgrid.Visible = False

CType(e.Item.FindControl("ImagebuttonShowHideSubTask"), ImageButton).ImageUrl = "Images\treePlus.gif"

CType(e.Item.FindControl("ImagebuttonShowHideSubTask"), ImageButton).CommandName = "showsubtasks"

End If

ElseIf e.CommandName = "edit" Then

Me.DataListManage.EditItemIndex = e.Item.ItemIndex

Me.SetTaskData()

ElseIf e.CommandName = "exit" Then

Me.DataListManage.EditItemIndex = -1

Me.SetTaskData()

ElseIf e.CommandName = "delete" Then

End If


Thanks


Venki
0
MyVenki
4/9/2005 6:45:43 PM
Reply:

Similar Artilces:

Can't get the Web Controls to work.. The Build.Bat file doesn't work? HELP>> ARGGG>.
Hi.. I was wanting to use the IE Web Controls, the Tab Strip, etc, and play with it.. Since I have IIS 5, I thought I'd copy them there using the Read me.txt instructions and then copy to a dev server that I use at a web host.. Well, everything worked except the Build file doesn't build the Microsoft.UI.Webcontrols.DLL file? When I try to run it by double clicking on it, it runs really fast in  the DOS window, but I can't see what it says and it closes.. So I tried to do so manually and I received an error that the "cse.exe is not recognized as an internal or external command or batch...

Datalist -> Datalist ->DataGrid Format.
Hi Friends, I am trying to follow Reports Starter kit -Drill Down Report. (There is no need for me to edit the DataGrid. Just I have to show the data) My question is 1. Why he used all datasest and populated data into collections and then assigned to datalists? Why don't he use datareaders? 2. When I tried to do in a similar way, I am getting an error System.MissingMemberException: No default member found for type 'DrillDownReport'.(Error is in line 37) Source Error: Line 35:<tr> Line 36:<td valign="top&q...

superreview granted: [Bug 146075] 'Message > Edit Message As New' (== 'Edit As New...') set an incorrect initial "X-Priority:" value (when present), which messes up 'Options > Priority' U.I. also : #3
David Bienvenu <bienvenu@nventure.com> has granted David Bienvenu <bienvenu@nventure.com>'s request for superreview: Bug 146075: 'Message > Edit Message As New' (== 'Edit As New...') set an incorrect initial "X-Priority:" value (when present), which messes up 'Options > Priority' U.I. also http://bugzilla.mozilla.org/show_bug.cgi?id=146075 Attachment 136141: 'mime_generate_headers()' patch v1 http://bugzilla.mozilla.org/attachment.cgi?id=136141&action=edit ------- Additional Comments from David Bienvenu <bienv...

superreview cancelled: [Bug 146075] 'Message > Edit Message As New' (== 'Edit As New...') set an incorrect initial "X-Priority:" value (when present), which messes up 'Options > Priority' U.I. also; a #3
Serge GAUTHERIE <gautheri@noos.fr> has cancelled Serge GAUTHERIE <gautheri@noos.fr>'s request for superreview: Bug 146075: 'Message > Edit Message As New' (== 'Edit As New...') set an incorrect initial "X-Priority:" value (when present), which messes up 'Options > Priority' U.I. also; and code cleanup. https://bugzilla.mozilla.org/show_bug.cgi?id=146075 Attachment 150073: (Av2f) 'mime_generate_headers()' https://bugzilla.mozilla.org/attachment.cgi?id=150073&action=edit ...

superreview requested: [Bug 146075] 'Message > Edit Message As New' (== 'Edit As New...') set an incorrect initial "X-Priority:" value (when present), which messes up 'Options > Priority' U.I. also; a #3
Serge GAUTHERIE <gautheri@noos.fr> has asked David Bienvenu <bienvenu@nventure.com> for superreview: Bug 146075: 'Message > Edit Message As New' (== 'Edit As New...') set an incorrect initial "X-Priority:" value (when present), which messes up 'Options > Priority' U.I. also; and code cleanup. http://bugzilla.mozilla.org/show_bug.cgi?id=146075 Attachment 150091: (Ev1) 'Options > Priority > ...' menu http://bugzilla.mozilla.org/attachment.cgi?id=150091&action=edit ------- Additional Comments from Serge GAUTHERIE &l...

superreview requested: [Bug 146075] 'Message > Edit Message As New' (== 'Edit As New...') set an incorrect initial "X-Priority:" value (when present), which messes up 'Options > Priority' U.I. also : #3
Serge GAUTHERIE <gautheri@noos.fr> has asked David Bienvenu <bienvenu@nventure.com> for superreview: Bug 146075: 'Message > Edit Message As New' (== 'Edit As New...') set an incorrect initial "X-Priority:" value (when present), which messes up 'Options > Priority' U.I. also http://bugzilla.mozilla.org/show_bug.cgi?id=146075 Attachment 136206: 'mime_generate_headers()' patch v2 http://bugzilla.mozilla.org/attachment.cgi?id=136206&action=edit ------- Additional Comments from Serge GAUTHERIE <gautheri@noos.fr> ...

ASA 6.0 ISQL->ODBC->Srvr works, Central or MS Access -> ODBC -> Svr Doesn't
I have an ODBC data source which works fine with ISQL. It fails with a communication error when I use it with either MS Access or SQL Central. Any ideas about what might be the problem would be appreciated. With logging turned on here's what I get when using ISQL: Trying to start TCPIP link ... Loading wsock32.dll Loading ws2_32.dll Could not load ws2_32.dll Using Winsock 1.1. My IP address is 90.0.0.2 My IP address is 127.0.0.1 TCPIP link started successfully Trying 90.0.0.4:2638 Found database server sbxserver on TCPIP link And here is what I get when using MS A...

Custom Datagrid: Doesn't display and doesn't work
Hi all,Hope someone can share their experience! I am trying to make a custom datagrid, only in appearance for now. Results:1. On dragging the control from the VS toolbox: get a grey rectangle, not the table like look. 2. On running the Web page: no HTML.<code>Imports System.ComponentModelImports System.Web.UI.WebControlsImports System.Web.UI<DefaultProperty("Text"), ToolboxData("<{0}:custDG runat=server></{0}:custDG>")> Public Class custDG    Inherits DataGrid    Public Sub New()        Me.BorderColor = ...

IE 7: New CalendarExtender control doesn't work when inside a HTML paragraph <P></P> tag
This works:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>  <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1" />This doesn't work: <P> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1" /> </p> This also works: <p><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></p> <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" Targ...

cpan>install NET::SSH ----> Can't install NET::SSH don't know what it is?
Good day! This is the first time I'll be using the cpan to install modules. I run: perl -MCPAN -e shell and answer the questions one by one. When its done, I issued install NET::SSH at the cpan> prompt and I got the message: Can't install NET::SSH Don't know what it is. Question: How will I make cpan> know what NET::SSH is? Is there something I have to update first? How can I search for some useful modules using cpan> rather than using cpan search in www.cpan.org? What is auto bundle? And what does 'cpan -a' does? When I ran it, I can some...

.NET Remoting
Hi,I'm trying to write Remote server object , when I write:using System.Runtime.Remoting.Channel.TcpIt looks like this namespace doesn't exist and I can't use instances of objects in this name space as I used in .NET 1.1When I look at the documentation, it looks like there is no change in the syntex or methodology.Can some one please help me.all the best,el System.Runtime.Remoting.Channels.Tcp...

superreview granted: [Bug 267723] ViewSource doesn't scroll to the selected line when opened from JS Console links; ViewSource->Edit->Go to Line broken as well; works in 1.0PR : [Attachment 164591] r
Ben Goodger <bugs@bengoodger.com> has granted Doron Rosenberg (IBM) <doronr@us.ibm.com>'s request for superreview: Bug 267723: ViewSource doesn't scroll to the selected line when opened from JS Console links; ViewSource->Edit->Go to Line broken as well; works in 1.0PR https://bugzilla.mozilla.org/show_bug.cgi?id=267723 Attachment 164591: rename https://bugzilla.mozilla.org/attachment.cgi?id=164591&action=edit ...

<location> doesn't work when parent directory of path doesn't exist
Hi, I'm having a problem setting up web.config to challenge for authentication on some pages, but not others. Here is what I'm doing:<configuration>...    <system.web>...        <authentication mode="Windows" />        <authorization>            <allow users="*"/>        </authorization>...    </system.web>    <location path="se...

Can't insert OLE controls. GPF when accessing
Hi all, I'm running PB 9 (6533) on Wndows XP and having problems when trying to insert OLE Controls. PB crashes when clicking on the Tab "Insert Control" in dialogue "Insert Object". PB 10 beta works fine and PB 8 crashes like PB9 (all on the same PC). Does anyone have any clue how to solve this? /Thanks! I am having the exact same issue in PB8 on windows XP. I noticed that no one had a reply so I was wondering if you were ever able to resolve the issue. Thanks ...

Web resources about - 3-level hierarchy: datalist->datalist->datagrid. edit of datagrid doesn't work - asp.net.presentation-controls

Resources last updated: 1/10/2016 1:01:43 PM