User Profile

Collapse

Profile Sidebar

Collapse
omlac
omlac
Last Activity: Mar 19 '09, 01:38 PM
Joined: Aug 19 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • omlac
    replied to access dynamic controls in codebehind
    access dynamic controls in codebehind

    im creating controls using javascript, and i would like to retrieve the values of the controls in code behind(vb.net/c#) . My vb.net below is not returning them,
    Odata is a div but i added the runat = "server" property. Would anyone know what im doing wrong.
    Code:
    Dim ctr As System.Web.UI.Control '  Web.System.Web.UI.Control
            For Each ctr In oData.Controls
    ...
    See more | Go to post
    Last edited by acoder; Mar 19 '09, 10:28 AM. Reason: Added [code] tags

    Leave a comment:


  • omlac
    started a topic access dynamic controls in codebehind

    access dynamic controls in codebehind

    im creating controls using javascript, and i would like to retrieve the values of the controls in code behind(vb.net/c#) . My vb.net below is not returning them,
    Odata is a div but i added the runat = "server" property. Would anyone know what im doing wrong.
    Code:
    Dim ctr As System.Web.UI.Control '  Web.System.Web.UI.Control
            For Each ctr In oData.Controls
                Windows.Forms.MessageBox.Show(ctr.ID)
    ...
    See more | Go to post
    Last edited by acoder; Mar 19 '09, 10:26 AM. Reason: Added [code] tags

  • omlac
    replied to javascript controls disappear
    thanks, it worked, that fixed it
    See more | Go to post

    Leave a comment:


  • omlac
    replied to javascript controls disappear
    thanks,
    my function loadcontrols has a parameter strParams which is generated in code behind(either onload or on init). do u thinki will be able to pass this parameter if i useevent listners.

    Thanks
    See more | Go to post

    Leave a comment:


  • omlac
    replied to javascript controls disappear
    i added this line on init but it just runs trough the line and doesnt call the java function when its a postback, it only run once(the first time)

    ClientScript.Re gisterStartupSc ript(Me.GetType (), "ctrScript" , "<script language = 'javascript'>Lo adControls('" & strParams & "')</script>")

    Thanks
    See more | Go to post

    Leave a comment:


  • omlac
    started a topic javascript controls disappear

    javascript controls disappear

    im creating controls using javascript, but whenever there is a postback on the page all the controls created in javascript disappear.
    How do i fix this problem.
    the code below shows how im creating them.

    Code:
    var txt5   = document.createElement("input");
                  txt5.setAttribute ('type', 'text');
                  txt5.setAttribute ('id', j[0]);
                  txt5.setAttribute ('name', j[0]);
    ...
    See more | Go to post
    Last edited by acoder; Mar 18 '09, 10:33 AM. Reason: Added [code] tags

  • omlac
    replied to Text Changed event
    Thank you very much it worked.

    Regards
    See more | Go to post

    Leave a comment:


  • omlac
    started a topic Text Changed event

    Text Changed event

    Good day
    Im using java script to handle the textchanged event of a textbox, im registering the javascript at form load as tboContent.Attr ibutes.Add("OnC hange", "return TextChange();") ;
    but the event fires only after i click on another control which postback. i want the event to fire everytime i type in something.
    I have set the autopostback to true on the textbox.

    Does anyone know how to solve...
    See more | Go to post

  • omlac
    replied to Remove/Delete Request.QueryString C#
    in .NET
    Thank you very much, it seems as if i cant modify the querystring variables...
    See more | Go to post

    Leave a comment:


  • omlac
    started a topic Remove/Delete Request.QueryString C#
    in .NET

    Remove/Delete Request.QueryString C#

    Hi all
    How do i delete/remove a Querystring variable.
    say Request.QuerySt ring["ID"]);
    i have tried this Request.QuerySt ring["ID"].Remove(0) but it didnt remove it nor did it give an error message.
    I also tried Request.QuerySt ring.Clear(); and the error was the variable is readonly.
    See more | Go to post
No activity results to display
Show More
Working...