Click here to Skip to main content
15,890,845 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Datagrid Hyperlinks Pin
Not Active26-Jul-06 2:15
mentorNot Active26-Jul-06 2:15 
AnswerRe: Datagrid Hyperlinks [modified] Pin
ToddHileHoffer26-Jul-06 2:32
ToddHileHoffer26-Jul-06 2:32 
AnswerRe: Datagrid Hyperlinks Pin
postmaster@programmingknowledge.com26-Jul-06 3:06
postmaster@programmingknowledge.com26-Jul-06 3:06 
QuestionRight click option in ASP.NET Pin
Fahad Wali26-Jul-06 1:58
Fahad Wali26-Jul-06 1:58 
QuestionRe: Right click option in ASP.NET Pin
mnaveed26-Jul-06 2:43
mnaveed26-Jul-06 2:43 
AnswerRe: Right click option in ASP.NET Pin
J4amieC26-Jul-06 2:56
J4amieC26-Jul-06 2:56 
QuestionASp.net Pin
pradeepkumarcb26-Jul-06 1:37
pradeepkumarcb26-Jul-06 1:37 
AnswerRe: ASp.net Pin
ToddHileHoffer26-Jul-06 2:35
ToddHileHoffer26-Jul-06 2:35 
Sorry it is vb.net but it had to be. Now here is what I did using a treeview in 2.0. Now go try google.

ViewState("MenuSearch") = ""
Dim dst As DataSet
dst = GetMenuData(EffectiveDate)
TreeView1.Nodes.Clear()
For Each masterRow As DataRow In dst.Tables("Header").Rows()
Dim masterNode As New TreeNode(masterRow("MenuText").ToString())
masterNode.Collapse()
masterNode.Target = ""

If masterRow("FileID").ToString() <> "0" Then
masterNode.Value = masterRow("FileID").ToString()
masterNode.SelectAction = TreeNodeSelectAction.Select
Else
masterNode.SelectAction = TreeNodeSelectAction.None
End If

TreeView1.Nodes.Add(masterNode)
For Each childRow As DataRow In _
masterRow.GetChildRows("Children")
Dim childNode As New TreeNode(childRow("MenuText").ToString())
childNode.Value = childRow("FileID").ToString()
masterNode.ChildNodes.Add(childNode)
Next
Next
Public Shared Function GetMenuData(ByVal EffectiveDate As Date) As DataSet
Dim conn As SqlConnection
conn = PennLink.Security.ConnectionManager.GetConnection()
Dim dst As New DataSet()
Dim daHeader As New SqlDataAdapter()
Dim cmd As SqlCommand = GetSQLCommand("dbo.uspGetMenuHeader", conn)
AddEffDate(cmd, EffectiveDate)
daHeader.SelectCommand = cmd

'Load Header DataSet
conn.Open()
daHeader.Fill(dst, "Header")
conn.Close()

'Load Detail DataSet
cmd.CommandText = "dbo.uspGetMenuDetail"
Dim daDetails As New SqlDataAdapter
daDetails.SelectCommand = cmd
conn.Open()
daDetails.Fill(dst, "Details")

dst.Relations.Add("Children", _
dst.Tables("Header").Columns("MenuID"), _
dst.Tables("Details").Columns("MenuID"))
Return dst
End Function

how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06

Questionabout the project Pin
shiva_kcs26-Jul-06 0:06
shiva_kcs26-Jul-06 0:06 
QuestionRe: about the project Pin
Paddy Boyd26-Jul-06 0:11
Paddy Boyd26-Jul-06 0:11 
AnswerRe: about the project Pin
SeMartens26-Jul-06 0:34
SeMartens26-Jul-06 0:34 
JokeRe: about the project Pin
mnaveed26-Jul-06 2:38
mnaveed26-Jul-06 2:38 
AnswerRe: about the project Pin
J4amieC26-Jul-06 2:57
J4amieC26-Jul-06 2:57 
QuestionYahoo messenger Library Pin
Mairy25-Jul-06 23:06
Mairy25-Jul-06 23:06 
AnswerRe: Yahoo messenger Library Pin
Ista27-Jul-06 4:20
Ista27-Jul-06 4:20 
QuestionProblem in Redirection Pin
Mairy25-Jul-06 22:56
Mairy25-Jul-06 22:56 
AnswerRe: Problem in Redirection Pin
Vipin Venugopal25-Jul-06 23:29
Vipin Venugopal25-Jul-06 23:29 
QuestionPop-up windows in ASP.NET Pin
Mairy25-Jul-06 22:26
Mairy25-Jul-06 22:26 
AnswerRe: Pop-up windows in ASP.NET [modified] Pin
l0kke26-Jul-06 1:43
l0kke26-Jul-06 1:43 
Questionmouseover Pin
rajmani25-Jul-06 21:56
rajmani25-Jul-06 21:56 
AnswerRe: mouseover Pin
alex_-_25-Jul-06 22:48
alex_-_25-Jul-06 22:48 
GeneralRe: mouseover Pin
rajmani25-Jul-06 23:18
rajmani25-Jul-06 23:18 
GeneralRe: mouseover Pin
alex_-_25-Jul-06 23:34
alex_-_25-Jul-06 23:34 
GeneralRe: mouseover Pin
rajmani25-Jul-06 23:57
rajmani25-Jul-06 23:57 
GeneralRe: mouseover Pin
rajmani26-Jul-06 0:18
rajmani26-Jul-06 0:18 

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.