Click here to Skip to main content
15,919,500 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDropdown list selected index changed event problem Pin
Thanigaimani836-Nov-07 23:05
Thanigaimani836-Nov-07 23:05 
QuestionRe: Dropdown list selected index changed event problem Pin
Imran Khan Pathan7-Nov-07 0:34
Imran Khan Pathan7-Nov-07 0:34 
AnswerRe: Dropdown list selected index changed event problem Pin
Thanigaimani837-Nov-07 2:24
Thanigaimani837-Nov-07 2:24 
QuestionRe: Dropdown list selected index changed event problem [modified] Pin
Thanigaimani837-Nov-07 5:07
Thanigaimani837-Nov-07 5:07 
QuestionVisual Studio .NET cannot open or create Pin
kuwl_mark6-Nov-07 23:02
kuwl_mark6-Nov-07 23:02 
AnswerRe: Visual Studio .NET cannot open or create Pin
Colin Angus Mackay6-Nov-07 23:17
Colin Angus Mackay6-Nov-07 23:17 
AnswerRe: Visual Studio .NET cannot open or create [modified] Pin
Sherin Iranimose6-Nov-07 23:18
Sherin Iranimose6-Nov-07 23:18 
QuestionPlease Help(Very Urgent) Pin
SreejithAchutan6-Nov-07 23:01
SreejithAchutan6-Nov-07 23:01 
private void SetConfigSettings()
{

string path = Server.MapPath("Web.config");

string newConnectionString = @"roles="+DropDownList1.SelectedValue+"";

XmlDocument xDoc = new XmlDocument();

xDoc.Load(path);

XmlNodeList nodeList = xDoc.SelectNodes("/system.web/location/system.web/authorization");


XmlNodeList nodeAppSettings = nodeList[0].ChildNodes;

XmlAttributeCollection xmlAttCollection = nodeAppSettings[0].Attributes;

//xmlAttCollection[0].InnerXml = txtKey.Text; // for key attribute

xmlAttCollection[0].InnerXml = newConnectionString; // for value attribute

xDoc.Save(path); // saves the web.config file



I gave the coode like that .But it willnot work.Plz help me.I want to change the roles in the allow tag that present in the subnode of authorization.How is it possible through the above code .What is the mistake.Thanks


AnswerRe: Please Help(Very Urgent) Pin
John-ph6-Nov-07 23:15
John-ph6-Nov-07 23:15 
AnswerRe: Please Help(Very Urgent) Pin
John-ph6-Nov-07 23:59
John-ph6-Nov-07 23:59 
QuestionHow to filter file's type in Openfile dialog? Pin
sakgumjorn6-Nov-07 23:01
sakgumjorn6-Nov-07 23:01 
AnswerRe: How to filter file's type in Openfile dialog? Pin
Michael Sync7-Nov-07 4:46
Michael Sync7-Nov-07 4:46 
GeneralRe: How to filter file's type in Openfile dialog? Pin
sakgumjorn7-Nov-07 14:44
sakgumjorn7-Nov-07 14:44 
Questionhyperlink control utility [modified] Pin
Sonia Gupta6-Nov-07 22:23
Sonia Gupta6-Nov-07 22:23 
AnswerRe: hyperlink control utility Pin
Christian Graus6-Nov-07 22:33
protectorChristian Graus6-Nov-07 22:33 
GeneralRe: hyperlink control utility Pin
Sonia Gupta6-Nov-07 22:52
Sonia Gupta6-Nov-07 22:52 
AnswerRe: hyperlink control utility [modified] Pin
Nitin19816-Nov-07 22:35
Nitin19816-Nov-07 22:35 
AnswerRe: hyperlink control utility Pin
Imran Khan Pathan6-Nov-07 22:37
Imran Khan Pathan6-Nov-07 22:37 
Questionrepeating template? Pin
dyonsos6-Nov-07 22:21
dyonsos6-Nov-07 22:21 
GeneralExpand and Collapse Detail Editing Pin
Brady Kelly6-Nov-07 22:14
Brady Kelly6-Nov-07 22:14 
GeneralRe: Expand and Collapse Detail Editing [modified] Pin
John-ph6-Nov-07 22:32
John-ph6-Nov-07 22:32 
GeneralRe: Expand and Collapse Detail Editing Pin
Brady Kelly6-Nov-07 22:36
Brady Kelly6-Nov-07 22:36 
GeneralRe: Expand and Collapse Detail Editing Pin
John-ph6-Nov-07 22:56
John-ph6-Nov-07 22:56 
GeneralRe: Expand and Collapse Detail Editing Pin
Brady Kelly6-Nov-07 23:00
Brady Kelly6-Nov-07 23:00 
GeneralRe: Expand and Collapse Detail Editing Pin
N a v a n e e t h6-Nov-07 22:38
N a v a n e e t h6-Nov-07 22:38 

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.