Author: Mikkelmedetk | Posted on: 11/9/2010 6:28:45 AM | Views : 204

Hi i'm currently developing a news system with comments.


And i need a way to retrieve an id of the article in a click handle event so i can add new comments to each article


Here is my code-behind right now
Imports System.Data
Imports System.Data.SqlClient

Partial Class _Default
    Inherits System.Web.UI.Page
    Dim NyhedFac As New NyhedFac
    Dim pro As New NyhedPro
    Dim kommentarid As Integer
    Public Function hentkommentar(ByVal id As Integer) As Integer

        kommentarid = id

        Return kommentarid
    End Function


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not ...

Go to the complete details ...