Hi Imar
In every wrox book (ASP.Net) is written code like this
%@ Import namespace="System.Data.SqlClient" %>
<%@ Import namespace="System.Data" %>
<%@ Page CodeBehind="Radio_button.aspx.
vb" Language="
vb"
AutoEventWireup="false" Inherits="WebApplication7.Radio_button" %>
<HTML>
<HEAD>
<title>Using Radio Buttons</title>
</HEAD>
<body>
<h3>Using Radio Buttons</h3>
<form runat="server">
<asp:RadioButtonList id="radEmployees" AutoPostBack="True" Rows="5"
OnSelectedIndexChanged="subListChange" runat="server" />
<br>
<br>
<asp:DataGrid id="dgEmployee" runat="server" />
</form>
<script language="
VB" runat="server">
Sub Page_Load(Source As Object, E As EventArgs)
If Not IsPostBack Then
Dim strConnection As String =
"server=dragan;database=northwind;uid=sa;pwd="
Dim strSQLforListBox As String = "SELECT LastName, EmployeeID "
strSQLforListBox += "FROM Employees ORDER BY LastName"
Dim objConnection As New SqlConnection(strConnection)
Dim objCommand As New SqlCommand(strSQLforListBox, objConnection)
objConnection.Open()
radEmployees.DataSource = objCommand.ExecuteReader()
radEmployees.DataTextField = "LastName"
radEmployees.DataValueField = "EmployeeID"
radEmployees.DataBind()
objConnection.Close()
End If
End Sub
-------
My question is how I can write this code. On the screen on the button left
corner I have HTML and design mode. If I chose design mode and type for
example RadEmploee. computer doesn't give me options. like datasource or
datatextfield and etc.. But If I click right button and chose option view
code I got screen same as visual basic 6.0 and I can chose object and events
from top screen .
My question How I can write same code as in the book. Probably I didn't
install something.
regards