Click here to Skip to main content
16,005,467 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionA recommender system for my website Pin
anu8124-Aug-07 0:54
anu8124-Aug-07 0:54 
AnswerRe: A recommender system for my website Pin
N a v a n e e t h24-Aug-07 3:21
N a v a n e e t h24-Aug-07 3:21 
QuestionCreating a simple forum-Please help! Pin
DarynRoberts24-Aug-07 0:28
DarynRoberts24-Aug-07 0:28 
AnswerRe: Creating a simple forum-Please help! Pin
Luka Grabarevic24-Aug-07 1:03
Luka Grabarevic24-Aug-07 1:03 
GeneralRe: Creating a simple forum-Please help! Pin
DarynRoberts24-Aug-07 1:26
DarynRoberts24-Aug-07 1:26 
AnswerRe: Creating a simple forum-Please help! Pin
N a v a n e e t h24-Aug-07 3:31
N a v a n e e t h24-Aug-07 3:31 
GeneralRe: Creating a simple forum-Please help! Pin
DarynRoberts24-Aug-07 22:43
DarynRoberts24-Aug-07 22:43 
Question'Dynamic' Javascript Pin
moon_stick23-Aug-07 23:46
moon_stick23-Aug-07 23:46 
Hi,
I'm currently developing a web app which has a number of different roles and forms. I've got a javascript dropdown menu that I'm displaying on each page and depending on role and current form want to show different items. As it stands I'm using a StringBuilder in the Page_Load function to build the script and then add it to a Label:

<br />
            if (Page.User.IsInRole("Admin"))<br />
            {<br />
                menuBuilder.Append("tmenu1.addItem(\"Add New User\", \"Admin/AddUser.aspx\"); ");<br />
                menuBuilder.Append("tmenu1.addItem(\"View Admin Tasks\", \"Admin/AdminMaintenance.aspx\");");<br />
                ...<br />
            }<br />
            lblMenu.Text = menuBuilder.ToString();<br />


but when I come to view the page the page doesn't appear to load the script. I've checked the page source and the script is definitely in the page and is syntactically the same as I've got it on working pages...

Can anyone shed any light on why this hasn't worked - I'm only assuming it's possible to render script through the Label control into the page??

Cheers

Dave
AnswerRe: 'Dynamic' Javascript Pin
Vasudevan Deepak Kumar24-Aug-07 0:24
Vasudevan Deepak Kumar24-Aug-07 0:24 
GeneralRe: 'Dynamic' Javascript Pin
moon_stick24-Aug-07 0:28
moon_stick24-Aug-07 0:28 
GeneralRe: 'Dynamic' Javascript Pin
J4amieC24-Aug-07 0:45
J4amieC24-Aug-07 0:45 
QuestionASP.Net & NHibernate Pin
Malayil alex23-Aug-07 23:43
Malayil alex23-Aug-07 23:43 
Questionhow to export gridview data to new pdf file without using third party tool / library in ASP.net 2.0 Pin
here2learn23-Aug-07 23:37
here2learn23-Aug-07 23:37 
AnswerRe: how to export gridview data to new pdf file without using third party tool / library in ASP.net 2.0 Pin
codelinks24-Aug-07 1:02
codelinks24-Aug-07 1:02 
GeneralRe: how to export gridview data to new pdf file without using third party tool / library in ASP.net 2.0 Pin
here2learn24-Aug-07 3:06
here2learn24-Aug-07 3:06 
GeneralRe: how to export gridview data to new pdf file without using third party tool / library in ASP.net 2.0 Pin
Dhyanga31-Aug-10 6:35
Dhyanga31-Aug-10 6:35 
Questionisdate() Pin
mohant$.net23-Aug-07 23:25
mohant$.net23-Aug-07 23:25 
JokeRe: isdate() Pin
codelinks24-Aug-07 0:09
codelinks24-Aug-07 0:09 
GeneralRe: isdate() Pin
mohant$.net24-Aug-07 0:13
mohant$.net24-Aug-07 0:13 
GeneralRe: isdate() Pin
codelinks24-Aug-07 0:19
codelinks24-Aug-07 0:19 
GeneralRe: isdate() Pin
mohant$.net24-Aug-07 0:21
mohant$.net24-Aug-07 0:21 
AnswerRe: isdate() Pin
Vasudevan Deepak Kumar24-Aug-07 0:23
Vasudevan Deepak Kumar24-Aug-07 0:23 
GeneralRe: isdate() Pin
mohant$.net24-Aug-07 0:26
mohant$.net24-Aug-07 0:26 
QuestionGMDatePicker Pin
kiran.puchakayala23-Aug-07 22:46
kiran.puchakayala23-Aug-07 22:46 
AnswerRe: GMDatePicker Pin
Vasudevan Deepak Kumar23-Aug-07 23:04
Vasudevan Deepak Kumar23-Aug-07 23:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.