我知道我可以access the head section of a page which uses a masterpage programmatically這種方式(代碼後面): 這是隻是一個例子(我想插入腳本和樣式等): this.Header.Title = "I just set the page's title";
是否有簡單的方法是在聲明式方式中的aspx文件本身? 有時會很方便
我有這個遍佈顯示在我的控制器: if not session[:admin]
flash[:notice] = "You don't have the rights to do #{:action}."
redirect_to :action=>:index
return
end
而它的兄弟: if not session[:user] and not sess