I have a simple table that three fields: StudentNumber, ExamGrade, ExamDate. I want to select a list of StudentNumbers where the student took at least 3 exams within a 5 day period (ExamDate) and had a grade(ExamGrade) of 70 or better on each exam. Make sense? The 5-day period is not predefined...
Perhaps a discussion about proper exception handling is outside the scope of the question? I certainly wasn't trying to write the complete solution; only a nudge in a direction. But, you are correct. You should avoid swallowing an exception and log it.
Maybe I'm missing something, but I would do it like this:
Public Function GetFTPInfoSQL() As SqlDataReader
Dim cmd As New SqlCommand()
Dim cn As New SqlConnection(ConnString)
GetFTPInfoSQL = new SqlDataReader
cmd.CommandType = CommandType.Text...
I have my web.config set to authentication mode=Windows. this works fine. Is there a way that I can have a "Login as Differnet User" button/functionality where my site would prompt for a username and password and my site would act as if I was that user?
My company uses Sharepoint and it uses...
Here is the control:
<asp:Menu ID="Menu1" Orientation="Horizontal" DynamicBottomSeparatorImageUrl="imagesDA/sep.gif" DynamicPopOutImageUrl="imagesDA/expand.gif" StaticEnableDefaultPopOutImage="false" StaticPopOutImageUrl="" runat="server" BackColor="#000000" DynamicHorizontalOffset="2"...
I have a master page with an asp:menu control. The control has both static and dynamic templates. each page I go to on my site, there is a message in the status bar at the bottom of the browser that says '(150 Items Remaining) and it counts down from 150 to 0. This takes several seconds on each...
Function Enc(str)
Dim lLBound
Dim lUBound
Dim lCtr
Dim sAns
dim FindChars(6)
findchars(0)="\"
findchars(1)="{"
findchars(2)="}"
findchars(3)="'"
findchars(4)="("
findchars(5)=")"
lLBound = LBound(FindChars)
lUBound = UBound(FindChars)
sAns = str
For lCtr = lLBound To lUBound...
I have a Sub that I call at the end of my page_load sub:
Public Sub pageLook()
Dim script As New StringBuilder
...
Dim csname1 As String = "startup"
Dim cstype As Type = Me.GetType()
Dim cs As ClientScriptManager = Page.ClientScript
If (Not...
I had this exact same problem two weeks ago. Never got i to work as it should. I did find a work around, though. Instead of this line:
[code]
user.Invoke("ChangePassword", New Object() {oldPassword, newPassword})
[\code]
I used this:
[code]
user.Invoke("SetPassword", New Object() {newPassword})...
IE is a lot more forgiving than mozilla in badly formatted html. View the source of the mozilla page. It may give clues as to where the HTML went wrong. I have had Netscape not show a page because of a simple missing closing tag. Also Mozilla has plugins that will debug the html and javascript...
In VS2005, I've dropped a createUserWizard control, a login control, a Passwg8ordRecovery control, and a changePassword control onto a page. I am using ActiveDirectory as my mebership provider. I have extended the schema to allow for for the Qustion/Answer part of recovery. The password requires...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.