954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Calling function to add HTML to the page

I have a page that have a dinamic menu and i have created a function to create the correct HTML to view the menu, but how can I call this function in my aspx page that I see the generated HTML in the correct position?? :rolleyes:

lorf14plus
Newbie Poster
20 posts since May 2005
Reputation Points: 10
Solved Threads: 1
 

check out user controls.

here's a quickstart with some examples:
http://www.dotnetjunkies.com/quickstart/aspplus/doc/webpagelets.aspx

sypher
Light Poster
29 posts since May 2005
Reputation Points: 13
Solved Threads: 0
 

Thanks for your help but I want to generate dinamic HTML during compilation of the page.
When the user login in the application i generate the correct HTML with a check to the right that are stored in the database.
DIfferent user have differenz HTML page, i don't have any event and any botton, I must display different page to different users.
I have create a sub that create the correct HTML but I don't now how call this sub to print out the result.

lorf14plus
Newbie Poster
20 posts since May 2005
Reputation Points: 10
Solved Threads: 1
 

I found in the tutorial that you have post it in an other page the solution to my problem thanks a lot for your help. :) :)

lorf14plus
Newbie Poster
20 posts since May 2005
Reputation Points: 10
Solved Threads: 1
 
CREATE FUNCTION dbo.update
	(
    @Quantity int
    )
RETURNS TABLE
AS
GO
UPDATE Quantity.Quantity1
SET Quantity = Quantity+Quantity
FROM Quantity.Quantity1 AS sp
JOIN Quantity.InwardEntries AS so
ON sp.Id = so.Id 

GO





	RETURN /*select ... from ... */

how to call above function in asp.net

diptibhatore
Newbie Poster
5 posts since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You