User Profile

Collapse

Profile Sidebar

Collapse
readbanana
readbanana
Last Activity: Mar 16 '11, 05:41 PM
Joined: Jul 15 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I realized that I wasn't filtering by if it was null. so when there was nothing to fill the dataset it was returning a null row. When I filtered by null it works perfectly. Thanks so much for help.
    See more | Go to post

    Leave a comment:


  • readbanana
    started a topic dataset showing count as 1 when should be 0

    dataset showing count as 1 when should be 0

    I am filling a dataset from a database. When there are no rows to return it still tells me that the count is 1. I can't figure out what is going wrong. if I look at a visual of the dataset, the row is blank, but the count is 1.
    Code:
     public static DataSet FillCat2(string current, string previous, string choice)
            {
                DataSet dt = new DataSet();
                string conString = ConfigurationManager.ConnectionStrings[""].ToString();
    ...
    See more | Go to post
    Last edited by Stewart Ross; Jan 5 '11, 03:30 PM. Reason: Fixed code tags

  • readbanana
    started a topic Uploading folder to ftp

    Uploading folder to ftp

    I am trying to upload images to the ftp. I need to have it in a compressed folder called by a specific name and then upload that folder to a specific directory. Each time I try, I get an error The remote server returned an error: (550) File unavailable
    This code works fine when I am trying to upload one image at a time. Here I am trying to upload a whole folder. I checked the uri (I copied it from the debugging) and it went there just fine....
    See more | Go to post

  • readbanana
    started a topic collapsible panel

    collapsible panel

    I have a collapsible panel that opens and closes with javascript. I also have a link button on the page. I want that when someone clicks on that link, it should open the collapsible panel and focus on a specific button. The problem that I have is that until the panel is open I can't have the panel open I can't have javascript scroll me down and by then it's too late. My collapsible panel is really just a bunch of divs. They are in a user control...
    See more | Go to post

  • readbanana
    replied to How to add onfocus to my textbox
    I figured it out.I have div, textbox, div. so the div is a sibling of the textbox. Instead of saying leftdiv visible, I made the previous and next siblings of the textbox invisible. Thanx for all your help.

    Code:
    function Visible(textbox)
    {
    var rightdiv =textbox.nextElementSibling;
    rightdiv.style.display='block';
    var leftdiv = textbox.previousElementSibling;
    leftdiv.style.display= 'block';
    }
    function
    ...
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to enlarge image on mouseover
    I figured it out in case anyone else needs it, here's my code.
    Code:
    function Large(image)
    	{
    	var bigpic =image.nextElementSibling;
        bigpic.style.visibility = 'visible';
    function Out(image)
    	{
    	var bigpic =image.nextElementSibling;
        bigpic.style.visibility = 'hidden';
    function Move(image,e)
    	{
    	 var mouseY=e.clientY;
    	 var mouseX=e.clientX;
    	 var scrollTop=document.documentElement.scrollTop;
    ...
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    I thought that's what (this) passes in.it tells it which textbox it is. how would I know they dynamically given id?
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    I'm not exactly sure what you are saying I should do. The code that you gave me doesn't do anything - my divs don't show up at all.
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    What would the server side code look like? This doesn't work just like this
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to enlarge image on mouseover
    this is for the web
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    each <td> has the divs surrounding them but they stay display:none. the first divs change to display block
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    Code:
    <div style="display: none;" class="leftdiv" id="leftDiv"></div><input type="text" onblur="Invisible(this)" onfocus="Visible(this)" class="grid-input" id="ctl00_ContentPlaceHolder1_gridUC_summaryGV_ctl03_costTB" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder1$gridUC$summaryGV$ctl03$costTB\',\'\')',
    ...
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    this is from firebug. you can't view source while your focused - it takes the focus off
    Code:
    <input type="text" onblur="Invisible(this)" onfocus="Visible(this)" class="grid-input" id="ctl00_ContentPlaceHolder1_gridUC_summaryGV_ctl03_costTB" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder1$gridUC$summaryGV$ctl03$costTB\',\'\')',
    ...
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    I really understand what the problem is I just need to know how to get around it. really I need to say e.row.cellp[2].attributes.add ("onfocus") - you just can't add onfocus to a cell
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    the two divs show a yellow little line on each side the background of the textbox becomes yellow. when you click the second row, the background becomes yellow (because thats the css :hover) but the two divs stay visible in the firsts cell. if you click a different column then the divs go away since you are no longer on focus. I'm not sure if I understood your question and gave the proper answer
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    I don't have separate nodes. it's a databound column. I've tried setting the display - but it's exactly the same. Tell me what information you need and I'll give it to you. I need this done quickly! I'm getting pretty desperate!

    Code:
     <ItemTemplate>
    
                 <div id="leftDiv" class="leftdiv" style="display:none"></div>
                   <asp:TextBox ID="costTB"
    ...
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    I have the same thing for a hover over an image and that works - the right image shows. do you have a better way that I can go about doing this?
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    obj should be the textbox you click. On focus of a textbox in a gridview, I want the divs surrounding that textbox to become visible.

    Code:
       TextBox tb = (TextBox)e.Row.FindControl("costTB");
            if (tb != null)
            {
                tb.Attributes.Add("onfocus", "Visible(this)");
                tb.Attributes.Add("onblur", "Invisible(this)");
            }
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    I just realized I posted what was on my .cs page, not the javascript function - that's just calling the function.
    Code:
    function Visible(obj)
    {
    document.getElementById("leftDiv").style.visibility='visible';
    document.getElementById("rightDiv").style.visibility='visible';
    
    }
    function Invisible(obj)
    {
    document.getElementById("leftDiv").style.visibility='hidden';
    document.getElementById("rightDiv").style.visibility='hidden';
    ...
    See more | Go to post

    Leave a comment:


  • readbanana
    replied to How to add onfocus to my textbox
    I'm working in asp.net - C#. Like I said, I don't know any javascript. All those functions do is document.getele mntbyid('leftDi v').style.visib ility='visible'
    If you have something else that would work right, I'd love to hear.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...