I am trying to write ASP.NET website that will have many features added to it as time passes, I want to add those features without changing the code, so I plan to use describtion variables in web.config for each added feature, for example:
1. Does loading variables from web.config file take much more time than embedding variables in the code? if so, does this time consuming task happen only when loading the variable for the 1st time and then it is cached in memory, or does it take much time everytime the variable is loaded? and what's the best way to implement such variables that are likely to change, but not in the near future?
2. How does the efficiency compare to storing these variables in a database instead of web.config.
P.S.: Those variables will be used heavily in the program.
And ever has it been that love knows not its own depth until the hour of separation
I have downloaded the ajax toolkit, and followed all the steps shown in the video present on asp.net ...
but, still i m not able to use the Ajax controls,
when, i m running the Sample website, and try to test any control, i m getting following error
Could not load type 'System.Web.UI.ScriptReferenceBase'fromassembly'System.Web.Extensions, Version=184.108.40.206, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
plz help me out of this ...
A man is but the product of his thoughts. What he thinks, he becomes.
Be the change you want to see in the world.
I have an aspx page which is having an arraylist of audio file paths. A child window is opened in which the audio is played one by one. I have a timer control to identify when an audio file completes in the child window. Once the audio file completes, I have to close the child window and return to the parent. In the timer tick event, I have to close the child window. Please tell me how I can do this.
can any one please guide me that i want to count totall number of users online i have written this code in global.asa in case of user increament it works fine but when user clicks signout or close the browser it does nothing ...
Fact is, if the user closes the browser, it will always do nothing. So, you need to implement some sort of timeout that checks if a session has been active without any page refreshers for a period of time, then remove them from your active users.
Private Function GetGroups(ByVal _path As String, ByVal _
username As String, ByVal password As String) As String
Dim GroupString As String
Dim myDE As New System.DirectoryServices.DirectoryEntry(_path, _
Dim mySearcher As New DirectorySearcher(myDE)
mySearcher.Filter = "sAMAccountName=" & username
Dim propertyCount As Integer
Dim myresult As SearchResult = mySearcher.FindOne()
propertyCount = myresult.Properties("memberOf").Count
Dim dn As String
Dim equalsIndex, commaIndex As String
For i As Integer = 0 To propertyCount - 1
dn = myresult.Properties("memberOf")(i)
equalsIndex = dn.IndexOf("=", 1)
commaIndex = dn.IndexOf(",", 1)
If equalsIndex = -1 Then