WebUserControls & Javascript

Joined
Jul 19, 2011
Messages
1
Reaction score
0
I have created a WUC to enhance the GridView control.

Basically, after fiddling with PageIndex, ItemCount, it calls on:
base.InitializePager(row, columnSpan, pagedDataSource);
... and voila, I have my GV populated with all the data and pagebuttons i required.

Next, I need to include some Javascript in order to sort out a fixed header/footer for the grid.
Now I am new to the .NET world, but if does seem rather confusing and complicated on how to do this.

I have the script here in notepad infront of me, and all I want to do is have it appear thus on the end webpage.
The server does not need to do anything with it, or even know about it....it's basicaly just a load of text that needs to be stored in the WUC and dumped out into HTML page when the control is referenced by a form.

I could just include the .js in the any forms created ... but it would be tidy to have it in the WUC so that it is already available whenever the control is used.

Ooopf .. sorry for the ramble .... 2 days of .NET has left me exhausted. Some things appear delightfully easy, yet other basic actions just seem to have been made ngihtmare !

Hope someone can help.....
Many Thanks
Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top