Click here to Skip to main content
16,004,882 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: loop selected items in listbox Pin
N a v a n e e t h4-Jul-08 1:26
N a v a n e e t h4-Jul-08 1:26 
GeneralRe: loop selected items in listbox Pin
eyeseetee4-Jul-08 1:30
eyeseetee4-Jul-08 1:30 
GeneralRe: loop selected items in listbox Pin
N a v a n e e t h4-Jul-08 1:36
N a v a n e e t h4-Jul-08 1:36 
GeneralRe: loop selected items in listbox Pin
eyeseetee4-Jul-08 1:37
eyeseetee4-Jul-08 1:37 
AnswerRe: loop selected items in listbox Pin
Sherin Iranimose4-Jul-08 1:27
Sherin Iranimose4-Jul-08 1:27 
Questionkeypress event. Pin
niki_nilu4-Jul-08 0:54
niki_nilu4-Jul-08 0:54 
AnswerRe: keypress event. Pin
N a v a n e e t h4-Jul-08 0:59
N a v a n e e t h4-Jul-08 0:59 
Questionproblem in webconfig??? Pin
Dotnetkanna4-Jul-08 0:49
Dotnetkanna4-Jul-08 0:49 
Hi Everyone,
Im writing connection in web config while user logged in.after writing sucessfully its a message showing as 'The file has been modified by the outside of the source editor. do you want to reload it.' do you want to reload. this makes stucks my application flow. is it possible to avoid that reloading the webconfig and the changes should be affect in the web config. is it possible. im using the folling code to write.



Dim AppPath As String = Server.MapPath("~/web.config")
Dim index As Integer = AppPath.LastIndexOf("\")
If index > 0 Then
AppPath = AppPath.Substring(0, index)
End If
Dim WebConfigFile As String = AppPath + "\web.config"
' MessageBox.Show(WebConfigFile);
If File.Exists(WebConfigFile) Then
Dim xmlDoc As New XmlDocument()
xmlDoc.Load(WebConfigFile)
Dim xmlNodelst As XmlNodeList = xmlDoc.GetElementsByTagName("connectionStrings")
Dim xmlNode As XmlNode
If xmlNodelst.Count > 0 Then
For cnt As Integer = 0 To xmlNodelst.Item(0).ChildNodes.Count - 1
xmlNode = xmlNodelst.Item(0).ChildNodes(cnt)
If xmlNode.Attributes.Count = 2 Then
If xmlNode.Attributes.Item(0).Value = "SRPCONNECTIONSTRING" Then
xmlNode.Attributes.Item(1).Value = "database=SRPnew;uid=srp;pwd=12345;server=kag;Connect Timeout=150;"
End If
End If
Next
End If
xmlDoc.Save(WebConfigFile)
End If




rgrds
Kanna
AnswerRe: problem in webconfig??? Pin
N a v a n e e t h4-Jul-08 0:56
N a v a n e e t h4-Jul-08 0:56 
Questionhow to run javascript code in asp.net 2.0 Pin
vijaylumar3-Jul-08 23:50
vijaylumar3-Jul-08 23:50 
AnswerRe: how to run javascript code in asp.net 2.0 Pin
Christian Graus4-Jul-08 0:46
protectorChristian Graus4-Jul-08 0:46 
AnswerRe: how to run javascript code in asp.net 2.0 Pin
N a v a n e e t h4-Jul-08 0:52
N a v a n e e t h4-Jul-08 0:52 
GeneralRe: how to run javascript code in asp.net 2.0 Pin
Christian Graus4-Jul-08 1:03
protectorChristian Graus4-Jul-08 1:03 
GeneralRe: how to run javascript code in asp.net 2.0 Pin
N a v a n e e t h4-Jul-08 1:09
N a v a n e e t h4-Jul-08 1:09 
Questionhow to get version of PDF File Pin
koolprasad20033-Jul-08 23:12
professionalkoolprasad20033-Jul-08 23:12 
AnswerRe: how to get version of PDF File Pin
eyeseetee3-Jul-08 23:44
eyeseetee3-Jul-08 23:44 
QuestionRadioButtonList Pin
trilokharry3-Jul-08 22:06
trilokharry3-Jul-08 22:06 
AnswerRe: RadioButtonList Pin
Sherin Iranimose3-Jul-08 22:28
Sherin Iranimose3-Jul-08 22:28 
Questioncursor color change Pin
lav naphade3-Jul-08 22:03
lav naphade3-Jul-08 22:03 
QuestionHow to Solved Excel formula in vb.net Pin
Piyush Vardhan Singh3-Jul-08 21:56
Piyush Vardhan Singh3-Jul-08 21:56 
AnswerRe: How to Solved Excel formula in vb.net Pin
Sherin Iranimose3-Jul-08 22:40
Sherin Iranimose3-Jul-08 22:40 
AnswerRe: How to Solved Excel formula in vb.net Pin
Christian Graus4-Jul-08 0:47
protectorChristian Graus4-Jul-08 0:47 
GeneralRe: How to Solved Excel formula in vb.net Pin
Piyush Vardhan Singh4-Jul-08 1:13
Piyush Vardhan Singh4-Jul-08 1:13 
GeneralRe: How to Solved Excel formula in vb.net Pin
Christian Graus4-Jul-08 1:35
protectorChristian Graus4-Jul-08 1:35 
QuestionRegarding Animation Pin
dayakar_dn3-Jul-08 21:27
dayakar_dn3-Jul-08 21:27 

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.