Search

You searched for the word(s): userid:787226

Matching Posts

  • LoginStatus

    I'm using the LoginStatus control with an ID of "LgnStatus" and a textbox with an ID of "tbStatus" to show the TEXT of the LoginStatus. To do that, I'm using VBScript with a statement of: tbStatus.text = LgnStatus.LoginText However, I'm finding that it doesn't matter whether I'm logged in or logged out, the LgnStatus.LoginText consistently shows up as "Login" even if the Control "LgnStatus" shows "Login" or "Logout".
    Posted to Security (Forum) by qwsoftdraw on 12/28/2009
  • Re: LoginStatus

    Since I mentioned in my first post that I was using VBScript, the following is what actually ended up working: If (Request.IsAuthenticated = False) Then ' Actions here End If If (Request.IsAuthenticated = True) Then ' Actions here End If I found this on msdn.microsoft.com just before I checked this post, but it matches what you're telling me. Thank you for the confirmation.
    Posted to Security (Forum) by qwsoftdraw on 12/28/2009
  • Re: Repeater Control Data Evaluation

    I placed <%@ Import Namespace="System.Data" %> into Visual Web Developer 2008 Express Edition to get DataRowView to not be highlighted, but when I run the code I get the following error: Unable to cast object of type 'System.Data.Common.DataRecordInternal' to type 'System.Data.DataRowView' From what I can tell, the only line of code that isn't working is: Dim drv As DataRowView = DirectCast(e.Item.DataItem, DataRowView) I do understand that there seems to be several
    Posted to Data Presentation Controls (Forum) by qwsoftdraw on 12/5/2009
  • Re: Repeater Control Data Evaluation

    You get the "You-da-man!" award today. That was it. Just for the record, the final code that works is as follows: If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType = ListItemType.AlternatingItem Then Dim drv As System.Data.Common.DbDataRecord = DirectCast(e.Item.DataItem, System.Data.Common.DbDataRecord) If drv("Status").ToString() = "SOLD" Then Dim lbl As Label = TryCast(e.Item.FindControl("lblPrice"), Label) If lbl IsNot Nothing Then lbl.Style
    Posted to Data Presentation Controls (Forum) by qwsoftdraw on 12/5/2009
  • Repeater Control Data Evaluation

    I'm using a Repeater Control (with VB as my Script language). I have 2 fields in a Database. One field is "Price"; the other field is "Status". The Status field shows values of either "FOR SALE" or "SOLD". I know I'm somehow supposed to use the ItemDataBound event, but I don't know how to use it. I want the routine to look at the Status. If the Status is SOLD, then I want the Label from the Price field to be marked out (HTML: <Strike>). Thanks
    Posted to Data Presentation Controls (Forum) by qwsoftdraw on 12/4/2009
  • Re: VBScript Can't Find Control in <ItemTemplate>

    That makes sense that it making multiple copies with multiple IDs. I'm using Visual Web Developer 2008 Express Edition. Normally, when I am building code in the <script></script> area in VBScript and I type in the name of the control, it will find the name and and the properties with it. It just doesn't find the control for anything inside of the <ItemTemplate> doing it this way. Occasionally, I stumble across something like this that there is just no good solution for it
    Posted to Web Forms (Forum) by qwsoftdraw on 9/28/2009
  • VBScript Can't Find Control in <ItemTemplate>

    I have controls with ID's and the Runat="server" for each control inside of a <ItemTemplate> for a Repeater Control, but the Controls cannot be found when I'm using VBScript. I have no problem finding Controls in VBScript when the Controls are NOT inside of a Repeater section like the <ItemTemplate>. Is there any reason the controls do not show up, and is there a work around? Thanks in advance for any useful help.
    Posted to Web Forms (Forum) by qwsoftdraw on 9/26/2009
  • Re: HTML Listbox Inside Repeater ItemTemplate

    The reason I did not use an ASP.NET listbox is because it runs an error saying it needs a Form tag that runs at the Server <form runat="server">, but in a Repeater control when this is added, it gives an error saying you can only have 1 <form runat="server">. A Repeater Control obviously tries to make multiple copies of the <form runat="server"> command inside of <ItemTemplate>, so I used a Standard HTML Listbox which needs no <form> tag
    Posted to Data Presentation Controls (Forum) by qwsoftdraw on 9/24/2009
  • HTML Listbox Inside Repeater ItemTemplate

    I am using a standard HTML Listbox inside of a Repeater Control <ItemTemplate> tag which is attached to a database. All works correctly. However, if the Fieldname is blank in the database, it prints a blank in the final listbox. So if Param01 through Param08 has text, that text will show up correctly, but Param09 through Param20 will still put blanks into the Listbox. The following at the bottom of this post shows what I've done. Is there a way, using this same method to keep Blank items
    Posted to Data Presentation Controls (Forum) by qwsoftdraw on 9/23/2009
  • Re: How to send an email with attachment in asp.net 2.0

    Thank you for responding. For some reason now on my website when I use the same code I had been using, it sends just the name of the attached file. I have to wonder if my website company caught the error and corrected it themselves. Anyways...what I want done is working now. Trying the code you gave me just gave me Security Errors, but again, thank you for responding.
    Posted to Tips & Tricks (Forum) by qwsoftdraw on 9/21/2009
Page 1 of 4 (37 items) 1 2 3 4 Next >