By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

where to put sub?

P: n/a
Hi,

i have a master page, and then my aspx page that uses that master page.

Now in my aspx i want to use a LinkButton to sort data on my page.

My question is where do i put the sub the LinkButton is calling to? If i put
it outside the <asp:Content tags i get an error that i can't place it there.
When i place the sub inside the content-tags i also get an error that i
can't place it there.

So where can i put the sub?

Thx in advance!

Regards,

Thomas
Jun 6 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Mr. T" <me@myself.netwrote in message
news:f4**********@gaudi2.UGent.be...
So where can i put the sub?
In the partial class of the code-behind page
--
http://www.markrae.net

Jun 6 '07 #2

P: n/a
Hello Mr. T,

Ok, the sub should go on yourpage.aspx event handler, if you created your
form with a code behind page then you should have something like this:

yourpage.aspx ----front end page or content page (html tags etc.)
yourpage.aspx.vb ---code behind page in VB, Here is where your sub must
go!!!.

But, if you created your form with no code behind page then the sub must go
between the script tags at the top of your content page, check this out:

<%@ Page Language="VB" %>
<script>

Private your sub
End sub

</script>
<html>
<head>
<title>XXX</title>
</head>
<body>
</body>
</html>

Hope this helps
Verci

"Mr. T" <me@myself.netwrote in message
news:f4**********@gaudi2.UGent.be...
Hi,

i have a master page, and then my aspx page that uses that master page.

Now in my aspx i want to use a LinkButton to sort data on my page.

My question is where do i put the sub the LinkButton is calling to? If i
put it outside the <asp:Content tags i get an error that i can't place it
there. When i place the sub inside the content-tags i also get an error
that i can't place it there.

So where can i put the sub?

Thx in advance!

Regards,

Thomas


Jun 6 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.