Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JanetM

    Losing Focus upon Postback to URL window

    Here's a SetFocus method that uses JavaScript that I use to set the focus to any control. It puts the control at the top of the window also. //This method will set the focus to the desired control with the //control at the top of the window. public void SetFocus(Control ctrl) {...
  2. JanetM

    Cannot set SelectedValue of dropdownlist in insert mode of formview

    I resolved the problem by creating a DataBound event for the formview as follows: protected void PEFormView0_DataBound(object sender, EventArgs e) { if (PEFormView0.CurrentMode == FormViewMode.Insert) {...
  3. JanetM

    Cannot set SelectedValue of dropdownlist in insert mode of formview

    This particular page is a complex multi-tab page which consists of a multiview inside of a formview with multiple views. It would be too much at this point to rewrite it and I would also have to rewrite the stuff that is common between this page and my other pages. There has got to be a way to...
  4. JanetM

    Cannot set SelectedValue of dropdownlist in insert mode of formview

    I really can't do that at this point. I have too much code and too many tabbed pages that contain multiviews inside of formviews and almost everything is working. I don't have time to redo it all, but maybe for a future release.
  5. JanetM

    Cannot set SelectedValue of dropdownlist in insert mode of formview

    Yes, some things have been a PITA because I'm using DataSource controls, but I have multiple pages now and everything is working in my application and I'm just putting in the final small details, so at this point, it would be much more work to redo that. If I'm seeing a SelectedValue in the...
  6. JanetM

    Cannot set SelectedValue of dropdownlist in insert mode of formview

    I tried setting the SelectedIndex as follows: DropDownList pbDropDown = ((DropDownList)((View)PEFormView0.FindControl("PEMainView")).FindControl("PreparedByDropDownList")); string test1 = pbDropDown.SelectedValue; pbDropDown.SelectedIndex =...
  7. JanetM

    Cannot set SelectedValue of dropdownlist in insert mode of formview

    Didn't work for me, but it didn't even fire the ModeChanged event. I modified my aspx with the following: <asp:FormView ID="PEFormView0" runat="server" DataSourceID="PEDataSource" DefaultMode="Edit" DataKeyNames="PEID" OnItemInserting="PEFormView0_ItemInserting" Width="1025px"...
  8. JanetM

    Cannot set SelectedValue of dropdownlist in insert mode of formview

    I'm using Visual Studio 2005 and asp.net 2.0. I have a page that contains a formview with an EditItemTemplate and an InsertItemTemplate. I want to set the default value when the form is called in insert mode. I'm doing it in the Page_Load method as follows: protected void Page_Load(object...
  9. JanetM

    Displaying HTML Text

    I'm using Crystal Reports XI. My database contains text in html format and I'm trying to display data in my Crystal Report using html Text, but it's not working. I've tried putting in bold, italics, underlines, and bullets, but the only thing that shows up is the underline. Can someone tell me...

Part and Inventory Search

Back
Top