Skip to main content

Posts

Show parent child node value at runtime and populate treeview in asp.net

Show parent child node value at runtime and populate treeview in asp.net. This program is use to populate treeview at runtime using asp.net. you can try this code. Imports System.Data Imports System.Configuration Imports System.Web Imports System.Web.Security Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Web.UI.WebControls.WebParts Imports System.Web.UI.HtmlControls Imports System.Data.SqlClient Imports System.Web.UI.WebControls.TreeNode Partial Class Bibliography Inherits System.Web.UI.Page Dim clscmn1 As New clsCommon Dim cn As New clsConnection Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then PopulateRootLevel() Else Exit Sub End If End Sub Private Sub PopulateRootLevel() Dim dt1 As New DataTable() Dim objCommand As New SqlCommand("select PRODUCT_CATEGORY_CD,PRODUCT_CATEGORY,(select count(*) FROM PRODUCT_CATEGORY ...

Add items to menu at runtime,display message,Web service to search item in textbox etc in asp.net

Add items to menu at runtime using asp.net Dim str, str1 As String str = "select distinct PRODUCT_CATEGORY,PARENT_CATEGORY_CD,PRODUCT_CATEGORY_CD from PRODUCT_CATEGORY where PARENT_CATEGORY_CD is NULL" Dim adp As New SqlDataAdapter(str, cn.openDb()) adp.Fill(ds) cn.closeDb() If (ds.Tables(0).Rows.Count > 0) Then For Each dr In ds.Tables(0).Rows Dim mu As MenuItem = New MenuItem mu.Text = dr("PRODUCT_CATEGORY").ToString mu.Value = dr("PRODUCT_CATEGORY_CD").ToString BrowsebyCategory.Items.Add(mu) Next End If This code is to Add items to menu at runtime using asp.net code you can use code to backend side Simple Display message using asp.net Simple Display message using asp.net. Just use following code. Dim myStringVariable As String = String.Empty myStringVariable = "Message" ClientScript.RegisterStartupScript(Me.[GetType](), "myalert", "alert('" & myStringVariab...

New challenges of Globalization

New challenges of Globalization Globalization, the point is frequently overlooked that it is an ancient phenomenon. In the modern world, it began to gather strength at the end of the 15th century and strengthened in the 16th and 17th centuries with the maritime exploration of the Portuguese and Spanish and later the English, French, the Dutch, who put Europe in contact with the rest of the world. In the 20th century, especially after World War II, Europe lost its global hegemony, and was devastated, along with Japan. Two non-European countries, the United States and the Soviet Union, then became the dominant powers and their ideological, economic, and military rivalry divided the world into two opposing blocs. This was the beginning of the Cold War, which kept the world suspended in an “equilibrium of terror”. In parallel, in the 50’s and 60’s, the process of decolonization led to the emergence of the Movement of the Non-Aligned Countries and later the Third World movement. Mean...

Web Designing Tips

You should have original content. Content is the key factor of any excellent Web site. The ability to take a common subject and give it some interest and originality is a rare talent,but necessary to keep visitors coming back. You should update the content twice in a month. After that you should have great graphics in your website. If your graphics are correctly used they can greatly improve a web site and it's content. If you overuse or they will take a lot of time to load, you will drive visitors away before they even see the content. You don't need expensive programs or graphics you just need simple and decent graphics. Third, you need a good presentation. Good Web sites do not keep the user guessing. They make their purpose immediately evident and present an easy to follow navigation system. The content and graphics blend in perfectly with the presentation and following it is a simple matter. You will never find hyperbole or confusion caused by overuse of animated gr...