Search

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

Matching Posts

  • Re: Triggering a Databind() on a parent page from a child page.

    [quote user="EndangeredMassa"] Is the dropdown contained in the page or the master page? If you want to call a function on the master page, I believe that just create it as "Protected" and then call it from the child page like this: Master.MyProtectedFunction() [/quote] I wonder if that would even work because the child pop up page is created by a javascript call to window.showModalDialog(); ??? When the save button, which is an asp.net control, is clicked, will it recognize the
    Posted to Web Forms (Forum) by bassplayer69 on 10/16/2007
  • Triggering a Databind() on a parent page from a child page.

    I have one web page that contains a user data entry form. On the form are several dropdownlist controls that are data bound to database tables. There is a link button next to the dropdownlist control's description label control with the text "add new". So, part of the page will look like this: add new People [dropdownlist of people] Places [dropdownlist of places] When the user clicks on the "add new" link button a pop up page is create and displayed to the user. This pop
    Posted to Web Forms (Forum) by bassplayer69 on 10/16/2007
  • Re: Solution to the FindControl problem

    [quote user="dhassen"] I don't understand how you use the code you posted - where do you type that? Also, can someone translate to VB please? [/quote] Here You go: Private Shared Function FindControlIterative( ByVal root As Control, _ ByVal id As String ) As Control Dim ctl As Control = root Dim ctls As LinkedList(Of Control) = New LinkedList(Of Control) Do While (ctl IsNot Nothing ) If ctl.ID = id Then Return ctl End If For Each child As Control In ctl.Controls If child.ID = id Then
  • Re: GridView - changing the delete text

    Well, once again you have to do this through Javascript. By doing the above code in the PreRender event instead avoids the StackOverflowException, but as soon as the control renders ALL deleted link buttons display "Activate" instead of just the one. Its like they are all tied to each other. So, off to code it on the client side... The best option? Don't use a grid control and write it out like classic ASP.
    Posted to Data Presentation Controls (Forum) by bassplayer69 on 10/15/2007
  • Re: GridView - changing the delete text

    I now have the following code: 1 Protected Sub GridView1_RowDataBound( ByVal sender As System. Object , _ 2 ByVal e As GridViewRowEventArgs) _ 3 Handles GridView1.RowDataBound 4 5 Dim dcfc As DataControlFieldCell 6 Dim cf As CommandField 7 8 Try 9 If e.Row.RowType = DataControlRowType.DataRow Then 10 dcfc = CType (e.Row.Cells(5), DataControlFieldCell) 11 cf = CType (dcfc.ContainingField, CommandField) 12 If e.Row.Cells(4).Text = "Owner" Then 13 cf.DeleteText = "Activate" 14 Else
    Posted to Data Presentation Controls (Forum) by bassplayer69 on 10/13/2007
  • Re: GridView - changing the delete text

    [quote user="WishStar99"] i quite do not understand you. is Delete and Active a value in your database? try looking into GridView.RowDataBound that will get you going. [/quote] No, the Delete is the CommandField in the detailsview control. And yes, this code would be in RowDatabound event handler.
    Posted to Data Presentation Controls (Forum) by bassplayer69 on 10/12/2007
  • Re: Use a Value from DetailsView

    [quote user="ddicecca"] And this is not working: protected void Button1_Click( object sender, EventArgs e) { TextBox cID; cID = (TextBox)DetailsView1.FindControl( "CampusID" ); if (cID.Text == "2" ) errorLabel.Visible = true ; } [/quote] Try this: protected void Button1_Click( object sender, EventArgs e) { if (DetailsView1.DefaultMode != DetailsViewMode.ReadOnly) { TextBox cID; cID = (TextBox)DetailsView1.FindControl( "CampusID" ); if (cID.Text == "2"
    Posted to Data Presentation Controls (Forum) by bassplayer69 on 10/12/2007
  • GridView - changing the delete text

    I'm using the ASP.NET 2.0 GridView control to display a grid like: Firs Name Last Name Place of Birth Edit Joe Beer Detroit, MI Delete Edit Steve Cheer Tampa, FL Delete If I have an entry that is inactive I would like the like to display a row like this: Edit Tom Jones Roanoke, VA Active Edit Brad Johnson Seattle, WA Delete So the whole GridView will look like this when displayed on the web page: Firs Name Last Name Place of Birth Edit Joe Beer Detroit, MI Delete Edit Steve Cheer Tampa, FL Delete
    Posted to Data Presentation Controls (Forum) by bassplayer69 on 10/12/2007
  • Re: Form View - Copying Databound Data from Edit to Insert Mode

    http://forums.asp.net/t/1167571.aspx Answer from: agriffard solved the issue.
    Posted to Data Presentation Controls (Forum) by bassplayer69 on 10/8/2007
  • Form View - Copying Databound Data from Edit to Insert Mode

    I'm using the FormView control to edit a database record. I have added a "copy" link button at the bottom so now it displays "update cancel copy". When the user clicks on the "copy" link button, I want to change the FormView mode to Edit mode and have the form be pre-filled with the data that was in the Edit mode Form. So far, I am able to change the mode to Insert using FormView.ChangeMode(FormViewMode.Insert), but the data is not being transfered over to the Insert
    Posted to Data Presentation Controls (Forum) by bassplayer69 on 10/8/2007
Page 1 of 2 (13 items) 1 2 Next >