User Profile
Collapse
-
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. -
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(); -
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.... -
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... -
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'; } functionLeave a comment:
-
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;Leave a comment:
-
I thought that's what (this) passes in.it tells it which textbox it is. how would I know they dynamically given id?Leave a comment:
-
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.Leave a comment:
-
What would the server side code look like? This doesn't work just like thisLeave a comment:
-
-
each <td> has the divs surrounding them but they stay display:none. the first divs change to display blockLeave a comment:
-
...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\',\'\')',Leave a comment:
-
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\',\'\')',Leave a comment:
-
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 cellLeave a comment:
-
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 answerLeave a comment:
-
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"Leave a comment:
-
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?Leave a comment:
-
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)"); }Leave a comment:
-
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';Leave a comment:
-
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.Leave a comment:
No activity results to display
Show More
Leave a comment: