Click here to Skip to main content
15,917,808 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to create session in asp.net web application Pin
Piyush Vardhan Singh6-Nov-07 22:09
Piyush Vardhan Singh6-Nov-07 22:09 
GeneralRe: how to create session in asp.net web application Pin
manish.singhal11-Nov-07 20:05
manish.singhal11-Nov-07 20:05 
Questionxml tranformation using asp.net Pin
gottimukkala6-Nov-07 21:16
gottimukkala6-Nov-07 21:16 
AnswerRe: Urgent.................. Pin
John-ph6-Nov-07 21:15
John-ph6-Nov-07 21:15 
GeneralUrgent.................. Pin
SreejithAchutan6-Nov-07 21:32
SreejithAchutan6-Nov-07 21:32 
GeneralRe: Urgent.................. Pin
Piyush Vardhan Singh6-Nov-07 21:43
Piyush Vardhan Singh6-Nov-07 21:43 
GeneralRe: Urgent.................. Pin
John-ph6-Nov-07 22:09
John-ph6-Nov-07 22:09 
GeneralUrgent.................. Pin
SreejithAchutan6-Nov-07 22:24
SreejithAchutan6-Nov-07 22:24 
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

Questiondata sending problem. Pin
Sonia Gupta6-Nov-07 20:04
Sonia Gupta6-Nov-07 20:04 
AnswerRe: data sending problem. Pin
Riza Azmi6-Nov-07 20:09
Riza Azmi6-Nov-07 20:09 
GeneralRe: data sending problem. Pin
Sonia Gupta6-Nov-07 20:19
Sonia Gupta6-Nov-07 20:19 
GeneralRe: data sending problem. Pin
Riza Azmi6-Nov-07 20:29
Riza Azmi6-Nov-07 20:29 
AnswerRe: data sending problem. Pin
N a v a n e e t h6-Nov-07 20:16
N a v a n e e t h6-Nov-07 20:16 
GeneralRe: data sending problem. Pin
Sonia Gupta6-Nov-07 20:20
Sonia Gupta6-Nov-07 20:20 
GeneralRe: data sending problem. Pin
N a v a n e e t h6-Nov-07 20:23
N a v a n e e t h6-Nov-07 20:23 
GeneralRe: data sending problem. Pin
Sonia Gupta6-Nov-07 20:39
Sonia Gupta6-Nov-07 20:39 
GeneralRe: data sending problem. Pin
N a v a n e e t h6-Nov-07 20:44
N a v a n e e t h6-Nov-07 20:44 
GeneralRe: data sending problem. Pin
Sonia Gupta6-Nov-07 22:08
Sonia Gupta6-Nov-07 22:08 
Questionhow to use the value of textBox placed on one page on to another page Pin
mavii6-Nov-07 19:34
mavii6-Nov-07 19:34 
AnswerRe: how to use the value of textBox placed on one page on to another page Pin
Riza Azmi6-Nov-07 19:45
Riza Azmi6-Nov-07 19:45 
GeneralRe: how to use the value of textBox placed on one page on to another page Pin
mavii6-Nov-07 20:26
mavii6-Nov-07 20:26 
AnswerRe: how to use the value of textBox placed on one page on to another page Pin
Christian Graus6-Nov-07 19:52
protectorChristian Graus6-Nov-07 19:52 
GeneralRe: how to use the value of textBox placed on one page on to another page Pin
mavii6-Nov-07 20:18
mavii6-Nov-07 20:18 
GeneralRe: how to use the value of textBox placed on one page on to another page Pin
Christian Graus6-Nov-07 20:25
protectorChristian Graus6-Nov-07 20:25 
GeneralRe: how to use the value of textBox placed on one page on to another page Pin
N a v a n e e t h6-Nov-07 20:28
N a v a n e e t h6-Nov-07 20:28 

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.