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

ASP.NET

 
GeneralRe: Developing Crystal Reports using IIlist Pin
dandamudi padma7-Nov-07 22:02
dandamudi padma7-Nov-07 22:02 
GeneralRe: Developing Crystal Reports using IIlist Pin
N a v a n e e t h7-Nov-07 22:14
N a v a n e e t h7-Nov-07 22:14 
QuestionCompare Validator Problem Pin
Jintal Patel7-Nov-07 19:44
Jintal Patel7-Nov-07 19:44 
AnswerRe: Compare Validator Problem Pin
aswini7-Nov-07 20:28
aswini7-Nov-07 20:28 
AnswerRe: Compare Validator Problem Pin
Krushna Sahu7-Nov-07 20:31
Krushna Sahu7-Nov-07 20:31 
QuestionDifference betwen single tier and N tier application. Pin
rahul.net117-Nov-07 19:30
rahul.net117-Nov-07 19:30 
AnswerRe: Difference betwen single tier and N tier application. Pin
asithangae7-Nov-07 21:34
asithangae7-Nov-07 21:34 
QuestionChanging The location tags attribute Pin
SreejithAchutan7-Nov-07 19:22
SreejithAchutan7-Nov-07 19:22 
string path = Server.MapPath("web.config");

string newConnectionString = CheckBoxList1.SelectedItem.ToString();
string pageset = LocPath.SelectedItem.ToString();
XmlDocument xDoc = new XmlDocument();

xDoc.Load(path);


XmlNodeList nodeList = xDoc.GetElementsByTagName("location");

xDoc.Save(path);
XmlNodeList nodeAppSettings = nodeList[0].ChildNodes;//Getting All The Location Tags

XmlNode nodeAuthorization = nodeAppSettings[0].ChildNodes[0];
XmlNode nodeAllow = nodeAuthorization.ChildNodes[0];
XmlAttribute XmlAttRoles = nodeAllow.Attributes[0];
XmlAttribute pageattr = nodeList[0].Attributes[0];

XmlAttRoles.InnerXml = newConnectionString; // for value attribute
pageattr.InnerXml = pageset;
xDoc.Save(path); // saves the web.



If we have 2 location tag thn the location tags attribute path will be displayed in a dropdownlist.That code i know.But if i change the location path using the above code thn the changes will be occur in the first location tag only.How i change the location tag of second one using the above or any other code is avialable.Please help me .Its Urgent..Thanks
QuestionDropDown Problem Pin
sabby20067-Nov-07 19:07
sabby20067-Nov-07 19:07 
QuestionDrop Down List Selected Value Problem Pin
Kurian_Kurian7-Nov-07 18:45
Kurian_Kurian7-Nov-07 18:45 
AnswerRe: Drop Down List Selected Value Problem Pin
Unknown Ajanabi7-Nov-07 19:21
Unknown Ajanabi7-Nov-07 19:21 
GeneralRe: Drop Down List Selected Value Problem Pin
Kurian_Kurian7-Nov-07 19:54
Kurian_Kurian7-Nov-07 19:54 
GeneralRe: Drop Down List Selected Value Problem Pin
Nitin19817-Nov-07 20:12
Nitin19817-Nov-07 20:12 
AnswerRe: Drop Down List Selected Value Problem Pin
Unknown Ajanabi7-Nov-07 20:12
Unknown Ajanabi7-Nov-07 20:12 
AnswerRe: Drop Down List Selected Value Problem Pin
N a v a n e e t h7-Nov-07 21:52
N a v a n e e t h7-Nov-07 21:52 
QuestionFile System Browsing in ASP.NET - Need Code Help Pin
cadracing7-Nov-07 17:56
cadracing7-Nov-07 17:56 
AnswerRe: File System Browsing in ASP.NET - Need Code Help Pin
Christian Graus7-Nov-07 19:21
protectorChristian Graus7-Nov-07 19:21 
QuestionData Blues Pin
BezerkRogue7-Nov-07 15:56
BezerkRogue7-Nov-07 15:56 
AnswerRe: Data Blues Pin
Christian Graus7-Nov-07 17:42
protectorChristian Graus7-Nov-07 17:42 
Questionoracle conncetion error Pin
uowzd017-Nov-07 15:03
uowzd017-Nov-07 15:03 
QuestionRepeater within update panel - slow Pin
debbie_cruz7-Nov-07 13:37
debbie_cruz7-Nov-07 13:37 
QuestionASP .NET 2.0 Login Control Pin
kenexcelon7-Nov-07 10:39
kenexcelon7-Nov-07 10:39 
AnswerRe: ASP .NET 2.0 Login Control Pin
Pete O'Hanlon7-Nov-07 11:39
mvePete O'Hanlon7-Nov-07 11:39 
GeneralRe: ASP .NET 2.0 Login Control Pin
kenexcelon8-Nov-07 9:04
kenexcelon8-Nov-07 9:04 
GeneralRe: ASP .NET 2.0 Login Control Pin
Pete O'Hanlon8-Nov-07 9:28
mvePete O'Hanlon8-Nov-07 9: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.