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...
If all you are trying to do is prevent someone from clicking the button again while the process is running, here is a simple way to accomplish it...
http://www.eggheadcafe.com/tutorials/aspnet/87272b03-adec-45e1-b157-b21da3714dfd/aspnet-animated-gifs-and.aspx
Worked well for me.
With .net 2.0, I am using the ADMembershipProvider to connect to Active Directory (not ADAM). Looking through the MSDN sites, it shows an attribute 'enablePasswordRetrieval' that can be true or false. Every example I find on Google shows it set to false. I would like to set it to true, but...
I do not see where your stored procedure is looking for @subID nor do I see where you are passing @subID to the procedure. Can you provide that code? It is good practice to only ask the database for the records you need so I would not have the asp filter.
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.