15,611,482 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Python questions
View Javascript questions
View C++ questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Vinod Satapara (Top 9 by date)
Vinod Satapara
15-Oct-12 9:09am
View
Please provide more details. Do you want to save .doc or .docx file in sql table image type of column?
Vinod Satapara
30-Dec-11 4:22am
View
Please paste your sample code in the question text
Vinod Satapara
30-Dec-11 0:22am
View
You can build connectionstring on Login page and store it in session. Use that connection string everywhere in project.
Vinod Satapara
29-Dec-11 6:33am
View
Please provide clear requirement.
Vinod Satapara
29-Dec-11 4:53am
View
You are welcome :)
Vinod Satapara
29-Dec-11 1:46am
View
please be more specific. Which control are you using? RadiobuttonList, Radiobutton?
Can you provide your code sample here?
Vinod Satapara
28-Dec-11 0:18am
View
Deleted
Reason for my vote of 5
Good
Vinod Satapara
27-Dec-11 2:01am
View
Hi Rupali,
my code works fine in all browsers. I have tested it with the firefox. Also it is not possible without the javascript.
I am modifying your code
<asp:Content ID="Content1" ContentPlaceHolderID="CPHLeftNav" runat="server">
<asp:Panel ID="pnl_leftNav" runat="server" Visible="false" Style="font: 11px/16px Arial,sans-serif;"
Heigh="100%">
<asp:TreeView ID="TreeView2" runat="server" Style="margin-left: 0px; text-align: left;
margin-left: 0px; padding-left: 0px" Font-Bold="True" ExpandDepth="0" ForeColor="Indigo"
Height="100%" Width="100%" OnSelectedNodeChanged="TreeView2_SelectedNodeChanged"
PopulateNodesFromClient="true" ShowExpandCollapse="true" ImageSet="Arrows"
Target="ifrm1" >
<ParentNodeStyle Font-Bold="true" ForeColor="Firebrick" />
<SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px"
VerticalPadding="0px" />
<asp:TreeNode Text="SomeText" ToolTip="BillEntryForm" Value="SomeText" Target="iframe">
<asp:Content ID="Content2" ContentPlaceHolderID="CPHRightContent" runat="server">
<iframe id="ifrm1" runat="server" width="10%" height="10%"></iframe>
<script language="javascript">
function nav(url)
{
document.getElementById('<%=ifrm1.ClientID%>').src = url;
}
</script>
Protected Sub TreeView2_SelectedNodeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TreeView2.SelectedNodeChanged
ifrm1.Attributes.Add("src", TreeView2.SelectedNode.Value.ToString())
End Sub
-------------------------------------------
Private Sub PopulateRootLevel()
''Retriving Data from database
PopulateNodes(dt, TreeView2.Nodes)
End Sub
Private Sub PopulateNodes(ByVal dt As DataTable, _ByVal nodes As TreeNodeCollection)
For Each dr As DataRow In dt.Rows
Dim tn As New TreeNode()
tn.Value = dr("id").ToString()
tn.Text = dr("NText").ToString()
tn.ToolTip = dr("NTooltip").ToString()
tn.NavigateUrl = "javascript:nav('"+dr("NNavigateUrl").ToString()+"')";
'''Some code
nodes.Add(tn)
''''
tn.PopulateOnDemand = (CInt(dr("childnodecount")) > 0)
Next
End Sub
Private Sub PopulateSubLevel(ByVal parentid As Integer, ByVal parentNode As TreeNode)
''' Code for Retrieving Data From database
PopulateNodes(dt, parentNode.ChildNodes)
End Sub
Protected Sub TreeView2_TreeNodePopulate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.TreeNodeEventArgs) Handles TreeView2.TreeNodePopulate
PopulateSubLevel(CInt(e.Node.Value), e.Node)
End Sub
Vinod Satapara
26-Dec-11 5:28am
View
Deleted
Reason for my vote of 5
Good Info
Show More