468,242 Members | 1,767 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,242 developers. It's quick & easy.

where to put sub?

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
2 1250
"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
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.

Similar topics

47 posts views Thread by Andrey Tatarinov | last post: by
3 posts views Thread by A.V.C. | last post: by
7 posts views Thread by Britney | last post: by
5 posts views Thread by comp.lang.php | last post: by
5 posts views Thread by John | last post: by
1 post views Thread by not_a_commie | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.