Hello All,
This is to build off thread855-1425404. What I want is the simplest way to be able to click on a datagrid and go to another page based on the row clicked. I am a noob so please be patient with me.
I am using VB/ASP.NET 1.1 (moving to 2.0 this Friday night). The aforementioned thread is C#, and while i have nothing against C#, at all costs I do not want to mix C# code with my VB app. I would consider that bad programming.
I have this:
And as we all know, this gives me the most basic plain jane table ever.
I'll put lipstick on the pig later. What I want is to this:
I have googled on this. Surfed some threads, but nothing exactly fits for VB. The closest thing I've found requires new sub routines and 20some lines of code. Only to leave me thinking... "this can't be THAT hard".
Not to sound like a blues singer, but this concept is easy in ASP, PHP, JSP, and ColdFusion; .NET seems to be another animal.
Many thanks for the help.
"If it's stupid but works, it isn't stupid."
-Murphy's Military Laws
This is to build off thread855-1425404. What I want is the simplest way to be able to click on a datagrid and go to another page based on the row clicked. I am a noob so please be patient with me.
I am using VB/ASP.NET 1.1 (moving to 2.0 this Friday night). The aforementioned thread is C#, and while i have nothing against C#, at all costs I do not want to mix C# code with my VB app. I would consider that bad programming.
I have this:
Code:
Private Sub get_users()
Dim conn as New OleDbConnection(ConfigurationSettings.AppSettings("accdb"))
Const strSQL as String = "SELECT user_rowid AS ID, fname AS [First Name] FROM qryUsers"
Dim sqlCMD as New OleDbCommand(strSQL, conn)
conn.Open()
dgUsers.DataSource = sqlCMD.ExecuteReader(CommandBehavior.CloseConnection)
dgUsers.DataBind()
conn.Close
End Sub
And as we all know, this gives me the most basic plain jane table ever.
Code:
<table cellspacing="0" rules="all" border="1" id="dgUsers">
<tr>
<td>ID</td><td>First Name</td>
</tr><tr>
<td>uid1</td><td>uname1</td>
...
</table>
I'll put lipstick on the pig later. What I want is to this:
Code:
<table cellspacing="0" rules="all" border="1" id="dgUsers">
<tr>
<td>First Name</td>
</tr><tr>
<td><a href="page2.aspx?=uid1">uname1</a></td>
...
</table>
Not to sound like a blues singer, but this concept is easy in ASP, PHP, JSP, and ColdFusion; .NET seems to be another animal.
Many thanks for the help.
"If it's stupid but works, it isn't stupid."
-Murphy's Military Laws