Using jquery in ascx file

I need to create a web user control in Visual Studio that will be embedded in a .NET page in CMS. The control will be slide shows using jquery and the popular Nivo script slider. I have imported all the relevant scripts into the VS project.

My questions are: is it possible to create a web user control using jquery, and where would I put links to jquery and my slideshow code. Is there anyone who could give me a basic plan of how to achieve this.

thank

R

+3
source share
1 answer

- script , , , CMS, - UserControl .

javascript/jquery.js ClientScript.RegisterStartupScript() page_load if (! ispostback), .

ClientScript.RegisterStartupScript() - script say SlideshowFunction(); :

    protected void Page_Load(object sender, EventArgs e)
    {
      ClientScript.RegisterStartUpScript(this,this.Gettype(),"scriptid","slideshowfunction();",true);
    }
0

All Articles