User Profile

Collapse

Profile Sidebar

Collapse
janetb
janetb
Last Activity: Feb 28 '11, 04:06 PM
Joined: Aug 18 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • janetb
    started a topic Gridview with two dropdownlists causing error.

    Gridview with two dropdownlists causing error.

    I have a dropdownlist2 in a gridview whose datasource and select control parameter is based on the selected value of dropdownlist1 in the same gridview. Everything works great for insert, but when I edit the row in the gridview and change the selected value in dropdownlist1, I get an error of "'dropdownlist2 ' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value" This kinda makes sense...
    See more | Go to post

  • janetb
    started a topic Asp.net custom errors not working

    Asp.net custom errors not working

    I'm trying to set up custom errors for asp.net in webconfig/global.asax on Server 2003, IIS 6. Got it working find for .aspx pages but not for any htm or html pages. So I found the article describing how to open IIS manager, click configuration, copy path for .aspx extension and add one for .htm Did that.

    Restarted website: Now I get the blank white page explaining there's a problem but not the 404 page not found
    Restarted...
    See more | Go to post

  • janetb
    replied to gridview checkbox not udpating
    Not sure what I did wrong, still, but I deleted the aspx page and started over from scratch. Everything works fine now..... Scratchin' my head hard!
    See more | Go to post

    Leave a comment:


  • janetb
    started a topic gridview checkbox not udpating

    gridview checkbox not udpating

    I have a gridview with an update capabilities - a textbox column (roomName), a dropdownlist(or gID), a dropdownlist(ro omTypeID),a checkbox column (dialOut), a checkbox column (dialIn). When I try to add another checkbox column, the sql database isn't updated properly with a 0/1 or false/true but with null. I've tried everything I can think of. Can anyone help?

    Data command stuff:
    Code:
                    UpdateCommand="update telehealth.dbo.xTblRoom
    ...
    See more | Go to post

  • janetb
    replied to Iterate through a reference of controls
    in .NET
    It appears that

    doCalc() will allow me to iterate through the datagrid rows and change cells but not access the footer? I tried to change the text in a text box at the "ElseIf i.ItemType = ListItemType.Fo oter Then" point and it didn't work. The doCalc() doesn't explicitly call the datagrideventar gs cause I want to call it from multiple sources (textbox textchanged, dropdownlist selected indexes, etc.) Can I explictly...
    See more | Go to post

    Leave a comment:


  • janetb
    replied to Iterate through a reference of controls
    in .NET
    I can reference a textbox outside of the datagrid and change THAT at the time the calculation is done. But I can't get the text in a footer cell or a label text located in a footer cell to change. That help?
    See more | Go to post

    Leave a comment:


  • janetb
    replied to Iterate through a reference of controls
    in .NET
    Yep, anytime the dropdownlist outside the datagrid changes, or one of the textboxes within the datagrid changes, or the dropdownlist in one of the datagrid cells changes, I fire the doCalc and the cells in the fourth column of the datagrid change on the fly. But, I can't get the footer to show any changes....
    See more | Go to post

    Leave a comment:


  • janetb
    replied to Iterate through a reference of controls
    in .NET
    Okay balablaster, you've been great and I'm sorry to ask, but I'm confused. The doCalc is fired at will after the page has rendered when the client does something on the screen. So, the datagrid, column cells are changed, but the footer cells are not changing.

    Sub doCalc()
    Dim varTotal As Integer = 0
    For Each i As DataGridItem In dgList.Items
    If (i.ItemType = ListItemType.Al ternatingItem...
    See more | Go to post

    Leave a comment:


  • janetb
    replied to Iterate through a reference of controls
    in .NET
    Got the delegate datagrid dropdownlist to fire. Now, last piece is getting the footer to update. Anybody got any pointers?

    Thanks so much.
    See more | Go to post

    Leave a comment:


  • janetb
    replied to Iterate through a reference of controls
    in .NET
    Never could get it right, so I'm coming at it a different way.

    Created a datagrid, and want to change the text in a column and a footer cell based on changes in two dropdownlists. The first dropdownlist changes the text in the fourth column fine, but I can't get it to change the footer text. Each columm in the datagrid has a <footertemplate > The second dropdownlist is in the datagrid, but doesn't seem to fire the doCalc sub....
    See more | Go to post

    Leave a comment:


  • janetb
    replied to Iterate through a reference of controls
    in .NET
    Yeah, I do get it now. Thanks for the explanation. That really helps. But, why doesn't this work? And/or how would you get it to work to reference and/or set the value of the text box? Thanks so much.

    Dim myUID As String = "txtUID" & i.ToString
    Response.Write( DirectCast(Page .FindControl(my UID), TextBox).Text)
    See more | Go to post

    Leave a comment:


  • janetb
    replied to Iterate through a reference of controls
    in .NET
    Plater,
    Thanks for the reply. Still a bit confused about the exact syntax.

    Dim myUID As String
    myUID = "txtUID" & i.ToString
    Page.FindContro l(CType(myUID, TextBox))

    above tells me string cannot be converted to textbox

    Dim myUID As TextBox
    myUID.ID = "txtUID" & i.ToString

    above stops me before I can...
    See more | Go to post

    Leave a comment:


  • janetb
    started a topic Iterate through a reference of controls
    in .NET

    Iterate through a reference of controls

    If I have 3 text boxes with ids of txtBox1, txtBox2, txtBox3, how does one reference them for the text values?

    Dim varStart as integer=1
    Dim varEnd as integer=3
    Dim myUID As TextBox

    for i = varStart to varEnd
    myUID.ID = ("txtUID" & i.ToString)
    If (Trim(CType(myU ID, TextBox).Text) <> "") then
    do something
    End if
    next
    See more | Go to post

  • janetb
    replied to Back Button Revisited asp.net 2.0
    in .NET
    So sorry, does this help?

    I know, I know, I've read the posts, but I can't get it to work. Scenario is:
    Page 1 = registration page
    Page 2 = cc company page (I can't touch)
    Page 3 = return page for cc company
    Page 4 = my second page of receipt

    Pages 1, 3, 4, all use my master page, wherein I have:
    Code:
    Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles
    ...
    See more | Go to post

    Leave a comment:


  • janetb
    started a topic Back Button Revisited asp.net 2.0
    in .NET

    Back Button Revisited asp.net 2.0

    I know, I know, I've read the posts, but I can't get it to work. Scenario is:
    Page 1 = registration page
    Page 2 = cc company page (I can't touch)
    Page 3 = return page for cc company
    Page 4 = my second page of receipt

    Pages 1, 3, 4, all use my master page, wherein I have:
    Protected Sub Page_PreRender( ByVal sender As Object, ByVal e As System.EventArg s) Handles Me.PreRender
    Response.Cache. SetCacheability (HttpCacheabili ty.NoCache)...
    See more | Go to post

  • janetb
    replied to beginner with session.end question
    in .NET
    The message seems to imply the end event is causing a problem. Could it be that it's looking for a response.cookie object that isn't there because it's been abandoned through the button onClick event (or timed out because the client just left the machine there and walked away past the set time out)? Would something like this prevent the error?

    If IsDBNull(Respon se.Cookies) = False Then
    Response.Cookie s.Clear()
    End...
    See more | Go to post

    Leave a comment:


  • janetb
    replied to beginner with session.end question
    in .NET
    See above repeated here - No error to the client during the process, but lots of errors in the event view:

    asp.nt 2.0.50727.0
    web event id: 1309
    event code 3005 An unhandled exception has occurred
    Thread ID: 8
    Thread account name: NT AUTHORITY\SYSTE M
    Is impersonating: False
    Stack trace: at System.Web.Http Application.get _Response()
    at ASP.global_asax .Session_End(Ob ject sender, EventArgs...
    See more | Go to post

    Leave a comment:


  • janetb
    started a topic beginner with session.end question
    in .NET

    beginner with session.end question

    Environment is Server2003,IIS6 ,Asp.net 2,VisualStudio2 005,SQl2005.

    1. Event viewer showing lots of session abandon errors.
    asp.nt 2.0.50727.0
    web event id: 1309
    event code 3005 An unhandled exception has occurred
    Thread ID: 8
    Thread account name: NT AUTHORITY\SYSTE M
    Is impersonating: False
    Stack trace: at System.Web.Http Application.get _Response()
    at ASP.global_asax .Session_End(Ob ject...
    See more | Go to post

  • janetb
    started a topic newbie to xml rss
    in XML

    newbie to xml rss

    Brand new to xml and I'm trying to get Scott Mitchell's rss aggregator example working locally. Basically, involves a frameset with the channels(feeds) in the left frame, a list of items in the channel in the lower right, and the single item in the top right based on a selection in the lower right. When the channel within the left frame is clicked, bottom right frame changes with the items for the channel (feed). Taking it step-by-step. Have...
    See more | Go to post
No activity results to display
Show More
Working...