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 SkipVought 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: *

  • Users: cesark
  • Order by date
  1. cesark

    Dealing with image samples (smaller size than real one)

    Is smaller than the actual size (displayed in Netscape). So, before is enlarged displays a very big photo, and when you enlarge it is resized to its real size (which is smaller).
  2. cesark

    Dealing with image samples (smaller size than real one)

    When this code is executed in Netscape: <asp:imagebutton ID="product_image” Width="80" Height="60" OnClick=" view_real_size” runat="server" /> Instead of display a very small photo (like Internet Explorer does) it shows a very big photo (even bigger than the real size of the photo)
  3. cesark

    Dealing with image samples (smaller size than real one)

    Hi, Which is the best ASP.NET control to display an image (product photo) that is only a small sample to be enlarged when the user clicks on it and/or in an hyperlink below? I ask it because now I use this control, and in this way: <asp:imagebutton ID="product_image” Width="80" Height="60"...
  4. cesark

    Trying to add an onclick javascript event to a LinkButton

    Yes! Finally works :-), it was that header.. This is the code I implemented: Sub add_js(Sender As Object, e As RepeaterItemEventArgs) If e.Item.ItemType = ListItemType.AlternatingItem OrElse e.Item.ItemType = ListItemType.Item Then Ctype(e.Item.FindControl("of_detail")...
  5. cesark

    Trying to add an onclick javascript event to a LinkButton

    I tried: Sub add_js(Sender As Object, e As RepeaterItemEventArgs) Dim myLinkButton As New LinkButton myLinkButton = e.Item.FindControl("of_detail") If myLinkButton Is Nothing Then Response.Write(“I am not an object”) Else Response.Write(“I am an object”) End If End Sub...
  6. cesark

    Trying to add an onclick javascript event to a LinkButton

    If you really know how to do what you suggested, please, post a code sample. For example: Sub Page_Load(Sender As Object, E As EventArgs) Dim myLinkButton As New LinkButton myLinkButton = e.Item.FindControl("of_detail") If myLinkButton = Object Then Response.Write(“Hello! I am an object...
  7. cesark

    Trying to add an onclick javascript event to a LinkButton

    I saw an article that explains (among many other things) how to achieve exactly what I want: Complete article: http://msdn.microsoft.com/msdnmag/issues/03/10/Blogging/#S7 But I don’ t understand why my code it doesn’ t work..: Sub add_js(Sender As Object, e As RepeaterItemEventArgs)...
  8. cesark

    Trying to add an onclick javascript event to a LinkButton

    I am not using an IDE, I program all my code in every aspx page (inline)
  9. cesark

    Onscroll and scrollTop properties doesn’ t work in Netscape

    I finally found the alternative I mentioned to 'document.body.onscroll', is 'window.onscroll' ;-). And works fine in Netscape 7.2
  10. cesark

    Trying to add an onclick javascript event to a LinkButton

    I don' t understand what you mean with 'if it returned an object or not'. And how can I check this?
  11. cesark

    Trying to add an onclick javascript event to a LinkButton

    If I try this, the error is the same but pointing to this line: Object reference not set to an instance of an object. Line 323: myLinkButton.Attributes.Add("onclick", "return function2();") So, the problem seems to be when trying to add the attribute...
  12. cesark

    Trying to add an onclick javascript event to a LinkButton

    Hi ca8msm, I added the OnItemDataBound event handler to repeater control as you said, and it does the same: Sub add_js(Sender As Object, e As RepeaterItemEventArgs) CType(e.Item.FindControl("of_detail"), LinkButton).Attributes.Add("onclick","return function2();") End Sub <asp:repeater...
  13. cesark

    Trying to add an onclick javascript event to a LinkButton

    Hi, I am trying to add some javascript functionality (an onclick event) to a LinkButton column generated by a repeater control, but I receive this error: Object reference not set to an instance of an object. Line 76: CType(offers_list.FindControl("of_detail")...
  14. cesark

    Onscroll and scrollTop properties doesn’ t work in Netscape

    Perhaps you are right. I am trying to add the onclick event to a link so that to do so (trigger a script to save the scroll position when clicked), the problem is that link also has an onclick 'server' envent handler, and I don' t know how to add another onclick event to it. When I get it, which...
  15. cesark

    Onscroll and scrollTop properties doesn’ t work in Netscape

    Imagine you are in page ‘A’, and you scroll that page until the bottom, then you save that scroll position in a hidden field and pass that value through querystring to next page ‘B’. Then, when you return to page ‘A’ from page ‘B’, you take (pass) again that value from querystring now to page...
  16. cesark

    Onscroll and scrollTop properties doesn’ t work in Netscape

    Oh yes, as you probably know there are several ways to maintain scroll position after a page postback or after return to a previous page. So, I want to save the screen position in a hidden field (or pass it through querystring) in order to recuperate the same scroll position.
  17. cesark

    Onscroll and scrollTop properties doesn’ t work in Netscape

    Yes, the scrollTop works in Netscape. The problem is the onscroll event which it doesn' t work, but it must be an alternative solution.. What about this?: setInterval('doScroll()',100)=SaveScrollLocation ; instead of: document.body.onscroll=SaveScrollLocation ;
  18. cesark

    Onscroll and scrollTop properties doesn’ t work in Netscape

    Hi, How can I write these two functions so that it works in Netscape browsers? function SaveScrollLocation () { document.index_form.hidden3.value = document.body.scrollTop; } document.body.onscroll=SaveScrollLocation ; function SetScrollLocation () { document.body.scrollTop ; }...
  19. cesark

    Can I store only month and year in a smalldatetime column?

    Thanks, but I tried to format the date once in the web app and works fine. So, I return @filled_day field to app, if it is 0 (day not filled) I format the date to e.g April, 2006, and if it is 1 (day filled) I format the date to e.g. 07/04/2006.
  20. cesark

    Can I store only month and year in a smalldatetime column?

    Sorry, and then, to display that field?: CREATE PROC retrieve_date @order_id bigint, @date smalldatetime output, @filled_day bit,.. As Select @date = Case When filled_day = 1 Then the_date Else ??¿¿ End , ... From orders Where order_id = @order_id In the case filled_day = 0 (not filled) I...

Part and Inventory Search

Back
Top