Click here to Skip to main content
15,881,876 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSession? Pin
Karthick_gc24-Apr-09 1:53
Karthick_gc24-Apr-09 1:53 
AnswerRe: Session? Pin
Abhijit Jana24-Apr-09 2:01
professionalAbhijit Jana24-Apr-09 2:01 
GeneralRe: Session? Pin
Karthick_gc24-Apr-09 2:06
Karthick_gc24-Apr-09 2:06 
GeneralRe: Session? Pin
Sandeep Akhare24-Apr-09 7:52
Sandeep Akhare24-Apr-09 7:52 
GeneralRe: Session? Pin
Abhijit Jana24-Apr-09 18:56
professionalAbhijit Jana24-Apr-09 18:56 
GeneralRe: Session? Pin
Sandeep Akhare27-Apr-09 8:02
Sandeep Akhare27-Apr-09 8:02 
GeneralRe: Session? Pin
Abhijit Jana24-Apr-09 19:06
professionalAbhijit Jana24-Apr-09 19:06 
QuestionNeed to get attibute name Pin
Satish - Developer24-Apr-09 1:33
Satish - Developer24-Apr-09 1:33 
How to retrive attribute Name
<br />
<names><br />
		<firstname fn="*"></firstname><br />
		<zipcode zc="*"></zipcode><br />
		<rule rl="%LEIN"></rule><br />
	</names><br />


Here the thing is in some Names tag the attribute of Rule is RL or RLL.
<br />
<br />
<rule rl="%LEIN"></rule><br />
		<rule rll="%LEIN"></rule><br />
<br />






I am getting error at bold line below. Bcz, i mentioned direcly RLL. If RL exists as attirbute then getting error. how to get attribute name?



XmlNodeList NameList = doc.GetElementsByTagName("Names");

foreach (XmlNode node in NameList)
{
XmlElement nameElement = (XmlElement)node;

foreach (XmlNode xnode in nameElement)
{
XmlElement childElement = (XmlElement)xnode;
if (childElement.Name.ToLower() == "rule")
{
if (childElement.HasAttributes)
strrule = childElement.Attributes["RLL"].InnerText.ToLower();
}
}
}

G. Satish

AnswerRe: Need to get attibute name Pin
Paddy Boyd24-Apr-09 1:46
Paddy Boyd24-Apr-09 1:46 
QuestionReport Pin
sulimanpasha24-Apr-09 1:19
sulimanpasha24-Apr-09 1:19 
AnswerRe: Report Pin
scottgp24-Apr-09 1:40
professionalscottgp24-Apr-09 1:40 
GeneralRe: Report [modified] Pin
sulimanpasha24-Apr-09 2:17
sulimanpasha24-Apr-09 2:17 
GeneralRe: Report Pin
DoctorMick24-Apr-09 4:31
DoctorMick24-Apr-09 4:31 
GeneralRe: Report Pin
sulimanpasha26-Apr-09 18:01
sulimanpasha26-Apr-09 18:01 
QuestionConvert HTML to DOC in C#.Net Pin
vivek_r24-Apr-09 1:15
vivek_r24-Apr-09 1:15 
QuestionValidate XML with DTD Pin
Rohit16db24-Apr-09 0:26
Rohit16db24-Apr-09 0:26 
Questiona problem with UpdatePanel Pin
wertyk23-Apr-09 23:59
wertyk23-Apr-09 23:59 
AnswerRe: a problem with UpdatePanel Pin
Sundeep Ganiga24-Apr-09 0:50
Sundeep Ganiga24-Apr-09 0:50 
QuestionHtml Editor dll Pin
Hemalatha.A.M.23-Apr-09 23:47
Hemalatha.A.M.23-Apr-09 23:47 
Questionhow to display a message box after execution of save button code Pin
anuj sweet23-Apr-09 23:14
anuj sweet23-Apr-09 23:14 
AnswerRe: how to display a message box after execution of save button code Pin
SayreCC23-Apr-09 23:27
SayreCC23-Apr-09 23:27 
GeneralRe: how to display a message box after execution of save button code Pin
anuj sweet24-Apr-09 0:50
anuj sweet24-Apr-09 0:50 
GeneralRe: how to display a message box after execution of save button code Pin
antony beula24-Apr-09 3:57
antony beula24-Apr-09 3:57 
QuestionProblem in executing web site Pin
daddanakuna23-Apr-09 23:08
daddanakuna23-Apr-09 23:08 
AnswerRe: Problem in executing web site Pin
SayreCC23-Apr-09 23:30
SayreCC23-Apr-09 23:30 

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.