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

HR Interview How To Succeed In A Telephonic Interview

It is important for you to be prepared for a telephone interview. Always keep your resume in a place where you can easily view it. You will be asked questions during the interview that you may need to answer with the information you have on your resume. You should always have a pen and paper ready. You may be required to write down important information, and you won't have time to go look for these things. Missing the interview will kill your chances of being hired immediately. Before the interview starts, you will need to make sure you are in a quiet place. Noisy distractions such as pets, children, and loud noises must be stopped before the interview starts. While conducting a telephone interview may sound easy, it is more difficult than you think. It is best to practice the telephone interview. You can do this with your family or friends. While speaking properly is important in a standard interview, it is crucial on the telephone. The interviewer will place an em

Personal Development

Most of the people in today's world are going crazy about personal development .Mostly those individuals who wish to be successful in their career can often be seen joining personal development courses.But many of them are unaware of the fact that personal development can't just be achieved by joining a course or by being extra ordinary as far as studies are concerned.The main purpose of personal development is to analyze your own self and figure out the weakness within you.Then try to work on it because ignoring it can cause serious harm to you in future. How do work for personal development: Here are a few points,considering them any individual can work on personal development and achieve success. - Try to develop a healthy life style.Healthy body and healthy mind are the per-requisites for personal development.Do do not get careless about your diet,exercise and sleep.Also work on your looks and try to improve on it,because good look can boost up your confidence and ca