how to use rename method
i have 2 stylesheet say stylesheet.css and stylesheettheme1.css
both are in the same folder.all the files in the project are
calling stylesheet.css.
what i have to do is,when i click on a button, i want to
replace the sylesheet.css with sylesheettheme1.css.
i can do this by rename method. firstly, i need to rename
stylesheet.css to say like stylesheet1.css and
secondly, i need to rename stylesheettheme1.css to stylesheet.css
since stylesheet.css is called everywhere.
i wrote below code in say footer.aspx.so when i click on the
button, it should call the colorTheme1().
<input type="button" runat="server" onClick="colorTheme1()" class="cmdbutton70" value="Theme1">
i have to use system.io namespace and i want to write the code
on the server side.
|