Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
hi guys,

there is a big problem that i am facing. Actually, i want to add a meta tag in a running website. there is a aspx page in which master page has been called. And problem is this that all code should be compiled so i can't able to add anything in the pages. So, please help me how can i add meta tag. And the developer that develop this portal not able to give me a code.
Posted
Comments
BC @ CV 16-Jan-13 15:46pm    
You can't change the code behind without re-compiling, but you can change the .aspx page, its just text.
Sergey Alexandrovich Kryukov 16-Jan-13 16:19pm    
I cannot see why not, so it's not clear where is the problem.
—SA
Member 8214635 23-Jan-13 9:10am    
Thanks. But i have a deafault page which is include masterpage. So meta tag is only include in masterpage.master.cs But this page is Pre-compiled. So, i am not able to add any code in it. If i decompile it and try to run project it giving me a error app_code/ is not allowed becoz it is precompiled..

I am not to much professional on asp.net.I break all DLL and right now i have all code and class file. But iam not able to run the project. If you help me i always thanks to you...

1 solution

1: Open Site.Master (it will be called 'something.Master') in a text editor.
2: Add your 'text' into the page at the appropriate point.
3: Save file.
4: Run.

Job done.
 
Share this answer
 
Comments
Member 8214635 20-Jan-13 15:37pm    
there is a file called masterpage.master. i also check to add meta tag in it but it was not reflect on server side. the meta tag is calling by c# i was check the dll file code using .net reflector. that all are hard coded. so i was not able to change any thing in it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900