Javascript - Scroll To First Selected Item In ListBox


is there an easy way to scroll an ASP.Net ListBox automatically to the first selected Item? The ListBox has SelectioMode="Multiple". <asp:ListBox ID="LbSymptomCodesEdit" CausesValidation="true" ValidationGroup="VG_SAVE" Height="100%" Width="100%" runat="server" SelectionMode="Multiple"></asp:ListBox> The ListBox is in the EditItemTemplate of a FormView inside of an UpdatePanel. jQuery is possible but it would be great if there would be an asp.net serverside(or Ajax) way to achieve this because i don't want to use more client scripts than really needed(and this is only a nice to have).

View Answers
Very similar questions
Web Forms :: Dropdown List Box - Selecting 5th Item It Going To First forums.asp.net

i have used one drop down list box...in that ....whn i m running web applicaiton i need to stick the value which i m selected for the movement upto i select the next choice. it is always going to the first value always. i have 40 items in my drop down. whn i select the 5TH item after selecting 5th item it going to first item.

Javascript To Set An Selected Index For RADcombobox To 0? stackoverflow.com

need javascript to set an selected index for RAD combobox to 0

AJAX :: Detect Which Tab Is Selected In JavaScript? forums.asp.net

I use in my Webapplication the Tab-Control. How can I detect which tab is selected in JavaScript?

Web Forms :: Dropdownlist Selection Changes To First Item On Postback forums.asp.net

I have been having some trouble with dropdown lists reverting back to selecting the initial item in the list after a postback once a selection has been made from the dropdown list. I have read up on this and found out that a "if not ispostback then" is required.This works fine when I add in all the items in the dropdown list manually like: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load         If Not IsPostBack Then             ddl1.Items.Add("Select...") [code].... However, I have over 250 items and so it is far more efficient for me to load then in by using part of a multidimensional array which is created from a text file - Definitive database.txt. I have been using the following code to do so: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load         If Not IsPostBack Then             'loads the definitive database array[code]... This loads all the items into the dropdown list perfectly, but now every time a selection is made, it reverts back to the inital item on postback even though i have included the "if not ispostback then" part.

VS 2010 Selecting Item From Drop Down List www.vbforums.com

I am trying to set the item that is selected from a drop down list based on what it in the database for that particular record. I am filling the dropdown list with a SQL DataSource I have tried a couple of example that I have found for selecting the item in the list but I am always getting the first item in the list as the selected item. This is what I am currently working with: Code: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If IsPostBack Then Else Dim ID = New Guid(Request.QueryString("ID")) [code].....

Web Forms :: Add A A First Default Item To A Drop Down List forums.asp.net

I fill a the drop down list with a SQL select query, but i want to add a first default item, something like "- Select an option -" or "All"  What im trying to do is make a dynamic SQL query, something like this: SELECT * FROM table1 WHERE (value1 = ? AND value2 = ? AND value3 = ? )........ (or "like" instead of "=") You are gonna have to select those arguments from 3 drop down lists, but i wanna have a default value on the top of the drop down list options and send a "*" as value if this option its selected, so the filter doesn't consider that value

Forms Data Controls :: Scrolling Of Div With Javascript? forums.asp.net

I'm trying to control the scrolling of a div containing a gridview using some js code I found at [URL] Intent is to stop the gridview in the div from scrolling to the top after the select in the gridview is operated. Prior to adding the ajax extentions the detail would display when the select image was operated.  Now the grid appears ok but when the select is operated nothing happens - perhaps the nSelectedIndexChanging="DetailsView1_Show" code behind is no longer firing?  Perhaps I am missusing the ajax extentions? Using VS 2010. My code is as below, <asp:ScriptManager ID="ScriptManager1" runat="server"/> <script type="text/javascript"> var xPos, yPos; var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_beginRequest(BeginRequestHandler); prm.add_endRequest(EndRequestHandler); function BeginRequestHandler(sender, args) { xPos = $get('serviceorders').scrollLeft; yPos = $get('serviceorders').scrollTop; } function EndRequestHandler(sender, args) { $get('serviceorders').scrollLeft = xPos; $get('serviceorders').scrollTop = yPos; } </script> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <input type="hidden" id="hdnScrollTop" runat="server" value="0" /> <div id="serviceorders" style="position: absolute; left:300px; top:180px; height:100px; width:700px; font-family: Arial; font-size: small; color:black; overflow:auto">            <asp:GridView ID="sobydate2GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="SOSONO" DataSourceID="sobydate2gridview1SqlDataSource" AllowPaging="false"  HeaderStyle-Wrap="True" GridLines="None" OnSelectedIndexChanged="DetailsView1_Show" OnSelectedIndexChanging="DetailsView1_Show"> <Columns> <asp:CommandField ShowSelectButton="True" ButtonType="Image" SelectImageUrl="linkimage.gif"  /> <asp:BoundField DataField="SOSONO" HeaderText="Service Order" ReadOnly="True" <asp:BoundField DataField="SORSP" HeaderText="RSP" SortExpression="SORSP" />

Forms Data Controls :: Scroll To GridView Selected Row? forums.asp.net

I have a GridView with fixed header and 10 rows. In the GridView I show only 3 rows and vertical scrollbar. After a user selects any row on the GridView (the postback occurs), I want to scroll it to the selected row.

Forms Data Controls :: Scrolling To Datalist Selected Row? forums.asp.net

After I changed Datalist1.SelectedIndex (and loading datas)page loads and loses curret scroll position in page.how can I autoscroll (focus) to selected Item of Dataliist after I changed Datalist1.SelectedIndex .so each time datalist Item Selection It goes to top of page.How can I revent this ? or keep position or scroll to selected Datalist item ?

How Do I Refer To The Current Selected String Of A Listbox ?? www.vbforums.com

ON button click, label1 should change its caption to the currently selected value of the listbox

JQuery :: Select First Word Of Element And Alter Css stackoverflow.com

I've seen a lot of examples of how to take the first word of an element and add a span around it, giving that element a new class you can alter in CSS, but I have not been able to figure out how to just alter the CSS directly in jQuery. I'm using this code to do the span thing right now: $("h1").html(function(i, text){ return text.replace(/w+s/, function(match){ return '<span class="first_word"> + match + '</span>; }); }); I'm trying to make the first word of titles a new color and font-family. It works for my h1, but i also have a widget title h3 that displays the added span in plain text when I add it to the selection. So I want to just change the css of the first word instead of adding a span. (I also have no idea what "/w+s/" is doing so explaining that would be an added bonus :) )

Select Tag Default Selection Blank Item? stackoverflow.com

I declare several select items (about 4-5 dozen) by adding the following string to the page "<select id='myidxxx'><option>" + default + "</option></select>" And then add other elements later. The problem is, whether I add other elements or not, there is always a blank element selected at start. I can't get it to not have one, or to select the default value. I've tried <option selected='selected'> but with no success. How do I get this to list only the explicity added options (no blank line) and select the default entry? EDIT: I am using IE8

JQuery :: Select First Blank Input Not Checkbox Or Button stackoverflow.com

How in Jquery do I select the first blank input which is not a check box or a button. I have the following: $(':input[value="",type!="button",type!="checkbox"]:visible:first').focus();

Set A MaxLengh For The Items In A ListBox [SOLVED] www.vbforums.com

Is it possible to set a maximum lengh for the items in a listbox?? I want to have the same effect as using a Textbox with a maximum lengh. Just to explain why: This listbox is fille by a file which I'm creating with an other app, but I need only the first three letters of every line.Thanks in advance, Mattd-Deutschland Problem Solved! I used: left(X, 3)

Feeding A Listbox So Most Recent Items Appear At The Top *SOLVED* www.vbforums.com

Hi,Would anyone know how to feed items so the most recent one appears at the top and previous ones would fall down the list as opposed to having the list populate itself the other way round as it does when just using .addItem.Thanks!

Making Some Items In A Listbox Bold www.vbforums.com

I suppose it isnt possible but i still give it a try here:a simple listbox. How can i make certain entries appear as bold?

Select Node,then Select Link,then Make The Line To Link www.codeguru.com

dear all: when i implement it the coding which i switch to comment one..and all can;t run oledi. actuall i want to choose the node, then choose the link, after that when i fill the text box(txtsrc) from 1 , then to (txtdes) 2then the line will connect from node(com pic) to node2.that's all,..thankxxxx

Select Node,then Select Link,then Make The Line To Link www.codeguru.com

dear all: when i implement the source , then having problem, pls help meto solve it.....mail me:ahhow@yahoo.com

Remove Item From Menu And Add Code To Dynamic Menu Items www.vbforums.com

Hi.I build my menu dynamically from a recordset.Code:While Not listTypes.EOF Load mnufiles(mnufiles.UBound + 1) With mnufiles(mnufiles.UBound) .Caption = listTypes.Fields(1) .Enabled = True .Visible = True .Checked = True End With listTypes.MoveNextWendWhat happens is that i've got this menu, by default with one item (the first).I wan't to remove it because it doesn't matter anymore after loading fields from DB. How can I do this?Another question:How do I associate code to the dynamically generated menu items?Thanks.

Sprint HTC Hero :: Contacts Are Displayed With The First Name First And Then The Last Name androidforums.com

I have my hero for about 3 days now... and I have one question that i can't find the solution on my own... All my contacts are displayed with the first name first and then the last name? from where can i change this?

Jquery :: Select Box With 50+ Word Select stackoverflow.com

I have a number of subtopics I would like to select using a select / dropdown box. The problem I have is that each subtopic is 30-50 words long. Does anyone know of any way that I can have multi-line selects within a select box? Right now I can show the select but because of my page size I have some data trucated.

Modify The Default Option In A Select Changing Another Select bytes.com

I wish to know if is possible to change the selected option in a SELECT selecting a determined option into another SELECT in the same form. E.g: When I select the option "Istruction" in the SELECT named "A" I wish the SELECT "B" change the default state from "empty" to "other"

Prevent Window For Scrolling After Div Box Scrolling? stackoverflow.com

I have a small div box that has a vertical scroll bar and sits within an html page that also has a vertical scroll bar. My problem is when the user reaches the end of the small DIV box scrolling, the ENTIRE html page that contains the div box then begins to scroll (assuming the user is scrolling via the mouse scroll and NOT by actually clicking the DIV box scroll buttons themselves) is there a way to prevent the entire html page from scrolling once a user reaches in end of my small DIV box scroll? I have tried this (but it cancels scrolling for even the div box): if (window.addEventListener) /** DOMMouseScroll is for mozilla. */ window.addEventListener('DOMMouseScroll', handleWheelEvent, false); /** IE/Opera. */ window.onmousewheel = document.onmousewheel = handleWheelEvent; function handleWheelEvent(e){ e.preventDefault(); }

Add Style For Item In Datalist? stackoverflow.com

I had Datalist and I want to give item style when I click on it to show user the he select this item I did my code but when I selected item It didnot have any style protected void DataList3_ItemDataBound(object sender, DataListItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) e.Item.Attributes["onmouseover"] = "this.style.cursor='hand';this.style.textDecoration='underline';"; e.Item.Attributes["onmouseout"] = "this.style.textDecoration='none';"; e.Item.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.DataList3, "Select$" + e.Item.ItemIndex); }

Go To Next On Listbox After 3 Seconds And After All Items Go To First? (Solved) www.vbforums.com

Well this one is giving me a headache, lets say I have a list box and i want to move to the next item from the item is currently selected every 3 seconds and also after all the items to go to the first item ?Help

MVC :: Html Helpers With Javascript... Include Javascript In Helper But Avoid Adding Javascript Twice? forums.asp.net

So I love MVC and I love Html Extensions and now I want to push it a little further... If I wanted to create something like an Html Helper that creates a javascripty style Calendar (for the sake of example as I don't want a calendar :-) how could I wrapper the javascript into the helper so that the consumer of the helper does not have to include the javascript on the page. MOST IMPORTANTLY though I want to have many instances of my calendar on the same page, if I put the Javascript in the Html Helper it will get written out 3 times to the page which is no good, so I am wondering how to get around this. Essentially I want to know whether I can access the page's DOM whilst the Html Helper is being run so that:1) I can add javascript script/src tags (did I mention I don't want to have inline javascript :-)2) I can query the DOM to check whether the required script has already been included by a previous call the same Html Helper.This may be a no-brainer for some mvc/asp guru out there, it may also be the case that you can't access the DOM at runtime via c#

Multidimensional Array Only Returning One Item? stackoverflow.com

I have a multidimensional array, that is a few levels deep. I am trying to loop through some of the lower levels of array items, but when I do, it seems to only return one of the array items. foreach ($items as $item) { foreach ($item as $id) { echo $id; } } For some reason, echoing $id only returns the first item in the $item array, how would I look through all items in the $item array, and echo those as well?

Javascript :: Flash Twitter API With JSON? stackoverflow.com

I have read a lot about parsing JSON with Actionscript. Originally it was said to use this library. [URL] but it seems Flash Player 11 has native support for it now. My problem is that I cannot find examples or help that takes you from beginning to end of the process. Everything I have read seems to start in the middle. I have no real experience with JSON so this is a problem. I don't even know how to point ActionScript to the JSON file it needs to read. I have a project with a tight deadline that requires me to read twitter through JSON. I need to get the three most recent tweets, along with the user who posted it, their twitter name and the time those tweets were posted. The back end to this is already set up I believe by the development team here, therefor my JSON files or XML just needs to be pointed to and then I need to display the values in the interface text boxes I have already designed and created.

Link Button And JavaScript / Change A Standard HTML Input Button To A Link Button forums.asp.net

I need to change a standard HTML Input button to a Link button but am running into problems because the existing code calls a javascript function.  The function basically does the same as the browser back button.  When I add the code and set the property runat="server" I get a "CS1026: ) expected".  Quite new to ASP,net  (VS2010) so could be going about this the wrong way.  [Code].... [Code]....

MVC :: Add An Image Instead Of Delete Link In Html Helpers? forums.asp.net

<%: Html.ActionLink("Delete", "Delete", new { id=item.Emp_ID })%> how to add an image instead of  first "Delete"

Edit Values On Listbox www.excelforum.com

I've been searching on the internet for a solution to this (if it exists). I have a Userform and I want to include a listbox(or list view or anything like it) which allows the user to select a specific row by clicking a checkbox, and then the next columns will be activated to select numbers in several comboboxes. My goal is simply to add checkboxes and comboboxes to the list view. I just want to know if this is possible in any way and how would I proceed in order to achieve it.

BB Torch 9800 Smartphone :: Accidentally Selected Enterprise Activation supportforums.blackberry.com

When setting up my email I accidentally selected enterprise activation rather than the personal email setup. Now that I am on the enterprise activation screen I am unable to go back and start over.

Read Value From File Method With JavaScript www.webmasterworld.com

I'm trying to display contents read from a file by php with a JavaScript function. I'm not sure what I'm doing wrong. function showMsg() { <?php $lines = file("text.txt"); ?> alert("<?php echo $lines[0];?>"); }

Read First 10 Lines From A File bytes.com

I have an ASCII file with each data record on a separateline. Each field is delimited with a TAB (ASCII 9) character. Now i want to read the first 10 lines and show them on my site. This is what i already have reading the first line: $fname = "http://www.somedomain.com/file.txt"; $fd = fopen($fname, "r"); if ($fd) { if (!feof ($fd)) { $buffer = fgets($fd, 4096); $field = split(chr(9), trim($buffer)); $field0 = "$field[0]"; $field1 = "$field[1]"; } fclose($fd); } echo ("$field0 - $field1"); How can i do this voor the first 10 lines?

Cannot View My Command Button In My First Web Application www.vbcity.com

Really need help on this matter.. I am really new with VB.net.. I've installed VS.Net.. Try to create my first web application. In my web form form, I've added a label, text box and command button for testing.. In my Label property, I've set the Label's text and text box's text to "Testing" (for example").. When I build and browse my web form, I could only see my label text and my text box text (Testing). However, I've couldn't see my text box border and command button... Anybody.. pls help me...

Use A External Javascript File Like External CSS? www.daniweb.com

i have been using php for past one month only and now im using javascripts with php too...but my javascript functions have grown out of proportion ...I want to make a SEPARATE file for JAVASCRIPT just like we do it for EXTERNAL CSS...how can i do that and is it possible to make a seperate javascript file and call the functions from my php code...?

Display Information In A Textbox When Selecting A Command Button www.vbforums.com

Hello.. I'm basically new to vb 6.0.. my question is the followingi have to command buttons and when selecting either one of the buttons the information from a database is retrieve and display in a textbox... so far i display the same result when selecting the buttons... mi code is the followingVB Code:While Not rdResultado.EOF         rdResultado.MoveFirst           If nameForm.cmd_pq1.Value = True Then                         nameForm.txt_precio.Text = rdResultado![Price]               ElseIf nameForm.cmd_pq2.Value = True Then                 nameForm.txt_precio.Text = rdResultado![Price]                  End If           rdResultado.MoveNext thanx

How To Link Listbox And Label www.xtremevbtalk.com

I have a list box working to make a picture appear but now i want to add a title to the picture loading to a label caption. This is the code that i have tried but it doesnt like it can u help??? Set Label1.Caption = ("DARKNESS FALLS")

Write To Javascript Array Within Loop? stackoverflow.com

I have a php loop that is echoing out geolocation values. How can I get it to write those values to a javascript array, so I can then use them to plot points on an HTML5 canvas? The php loop is as follows <ul id = "geo-list"> <?php foreach($data as $phrase) { ?> <li><?php[code]....

HTC Desire :: Can One Select Which Facebook Photo To Appear In Contact androidforums.com

I just bought this phone. I was playing with the contacts and was wondering: can one select the facebook photo you want for each contact? I have linked the facebook profile to my contact. I can choose "facebook" for the contact's photo, but I have no control over which photo is displayed. Can I: a) select a specific facebook foto? b) save a specific facebook foto from the contact's facebook pictures and set the saved photo as the contact's picture?

Sony Ericsson Xperia X10 :: Selecting Multiple Recipients - When Sending A Text talk.sonyericsson.com

Is there anyway of doing this easily? Iprevious phones that i have had you could 'mark' several recipients when going through your phone book. 

Javascript - .Net Json Serialization Format? stackoverflow.com

I was hoping someone may be able to point me in the right direction in regards to the format of a Json.I've never really worked with Json's and Serialization before so it's all a little new.I need to return a Json from .Net in the following format.[[Date.UTC(2011,12,14,8), 8], [Date.UTC(2011,12,14,9), 1]] I'm almost there but am struggling with the format of my string, as by default the string is quoted. This is what I have: [Code]...

Javascript - Accessing Elements Of JSON Object Without Knowing The Key Names stackoverflow.com

Here's my json: {"d":{"key1":"value1", "key2":"value2"}} Is there any way of accessing the keys and values (in javascript) in this array without knowing what the keys are? The reason my json is structured like this is that the webmethod that I'm calling via jquery is returning a dictionary. If it's impossible to work with the above, what do I need to change about the way I'm returning the data? Here's an outline of my webmethod: <WebMethod()> _ Public Function Foo(ByVal Input As String) As Dictionary(Of String, String) Dim Results As New Dictionary(Of String, String) [Code]....

JavaScript Serialize Array To JSON? stackoverflow.com

I have "Form Designer" web application, in which I need to post the controls of the new form to an ASP.Net page to insert to DB, each time I create form control. I push it into two dimensional array, when user click save, this array will be serialized and sent to Server Page using Ajax. Array string After Serialization Looks Like : [ [ [code].....

Javascript - Return JSON From ASP.NET .asmx? stackoverflow.com

I have the following test method:Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols <WebService(Namespace:="http://tempuri.org/")> _ <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ <System.Web.Script.Services.ScriptService()> _ [Code]... Even with the ResponseFormat attribute added the response is still being returned as XML rather than JSON.

VS 2010 Deserialize XML String? www.vbforums.com

My XML String: <?xml version="1.0" encoding="utf-16"?> <Category> <Item> <ItemID>0</ItemID> <ItemName> Item Name : 0</ItemName> [Code]...

Python :: Json Communication Between Flash And Javascript? stackoverflow.com

note: using django/python/javascript/flash So its been two days since I'm stuck at the error. I did the things you told me to and found a couple of ways around it but nothing worked. These are the results.Javascript does not receive the normal string it has to be a json object so. in views.py somestring = json.dumps("HELLO WORLD") which renders this in HTML "HELLO WORLD" and in javascript it is rendered like this a240527176321_quote_hello Now, since it is a json object I need to convert it back in flash. But when it gets in flash where I receive it like this function something(hellovar){ ..... ...... } it does not even come inside the function.

Flash :: JavaScript - Parse Some Configuration Files In The Flash Default Directory stackoverflow.com

I use javascript to play a flash file, and it plays correctly. But it also needs to parse some configuration files in the flash default directory. So the problem is: the flash file I am going to play can't access its config file for the wrong working directory. For example, I specify the swf path value as 'falsh/list/test.swf', so my javascript will give this swf value by swfobject.embedSWF to play this flash. But the flash file flash/list/test.swf needs to parse a config file in the same directory with flash file like flash/list/config.xml. The problem is flash attempts to parse this config file under the current javascript working directory. [Code]...

Web Forms :: How To Open Javascript Url Link In New Full Size Window forums.asp.net

How can I change the follwoing code to open the link in a new full size window, I don't want to navigate there because they want to just view the next page and not leave existing page. lblProcessNum2.Text = "" & myDataTable.Rows(0)(4) & ""

Web Forms :: Open New Browser Window From Gridview Selected Item Link? forums.asp.net

I know this is probably a pretty normal pattern, but, I've never had to code it up.  I'm using a GridView to display various items from a SQL query.  I can do this without any problems. Upon selecting a specific item, I want to open a new page based on the selected row item link that passes some parameters to a SQLDataSource in the newly spawned window.  I know I can use the javascript window.open function() to create a new window, but, I don't know how to pass the desired code to this new window.

Javascript - How To Open The Link In New Tab stackoverflow.com

Possible Duplicate: Programmatically open new pages on Tabs I have a link in my page and i want it to be opened in a new tab when the user clicks it?

How To Select A Row In A Gridview By Clicking Link Button bytes.com

How to select a row in a grid view by clicking link button in asp.net with VB.

Web Forms :: Why Simple HTML Select Element Has A Misplaced Focus forums.asp.net

This was generated from my asp.net page. (ListBox was rendered as select element) I was able to isolate the focus problem from the ListBox to the following HTML. Just copy-paste the HTML bellow and open it in a browser window. The browser renders the Focus in a strange way. I have to solve it for one of our clients. If the Height is set to 185px the focus  doesn't work properly. I tried to play around with different heights. Btw, if the Height is set to 81px there's no problem with the Focus. But I have to have the height at least 170px. [code]...

MVC :: Reuse JavaScript Snippets - Displays A Modal Window After Clicking A Link forums.asp.net

I have now a fancy JavaScript which displays a modal Window after clicking a link. I'd like to reuse that code with small changes. eg. different IDs, different labels... I know the possibility to create a Helper. But I don't want a [Code].... thing. I'm sure there is an elegant solution for that. RenderUserControl is maybe a solution. But then it must provide the possibility to assign parameters to it, directly in the View.

Send Mail Through JavaScript In HTML Page Secretly? stackoverflow.com

I am using a mailTo command. On posting it displays Outlook Express on my computer. But I want to send secretly, data to my email form client end.

FastCGI :: Aborted: (first Read) Idle Timeout (30 Sec) www.webhostingtalk.com

I've got a server with FastCGI that at random produces 500 internal server errors. In the specific account the errors are as follows in the error_log: [Wed May 21 12:01:29 2008] [error] [client] FastCGI: comm with (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" aborted: (first read) idle timeout (30 sec) [Wed May 21 12:01:29 2008] [error] [client] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/apache2/htdocs/user/php-wrapper" As you can see this unfortunately does not tell me anything. Now viewing the apache error_log I see this Code: [Wed May 21 12:51:11 2008] [warn] FastCGI: scheduled the restart of the last (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" process: reached dynamicMaxClassProcs (10) [Wed May 21 12:51:11 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (uid 514, gid 515) restarted (pid 20510) [Wed May 21 12:52:00 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (pid 20510) termination signaled [Wed May 21 12:52:00 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (pid 20510) terminated by calling exit with status '0' [Wed May 21 12:57:02 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (pid 20501) termination signaled [Wed May 21 12:57:02 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (pid 20501) terminated by calling exit with status '0' [Wed May 21 13:02:03 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (pid 20491) termination signaled [Wed May 21 13:02:03 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (pid 20491) terminated by calling exit with status '0' All warnings so I'm assuming these don't mean anything. Here's the php-wrapper: Code: #!/bin/sh PHPRC=/usr/local/lib export PHPRC PHP_FCGI_CHILDREN=8 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=500 export PHP_FCGI_MAX_REQUESTS exec /usr/local/bin/php-cgi Not a particularly well setup system for users and such but it worked for the user. The software versions are as follows: Apache 2.2.8 with Suexec on the FCGI FastCGI (Latest stable and also tried a CVS version) PHP 5.2.6 64 bit system how to go about debugging this?

How To Get Full Path Which User Selected In File Upload Control stackoverflow.com

I want to get full path which user selected in file upload control. how can we do it.

Web Forms :: How To Get Full Path Of File Or Image Selected From Desktop forums.asp.net

I am trying to select one image file from desktop with file upload control. but i am not able to get the full path of the image if it is selected from desktop. i am getting full path if  the file is selected from any other place but its showing error for the desktop.

Selecting A Hosting Company For Videos www.webhostingtalk.com

I own a small company specializing in the production of science education videos we sell to public schools. We would like to begin to deliver our videos to schools over the Internet. Our collection includes about two thousand video clips with accompanying metadata. We hope to gradually build a customer base of several hundred schools by June 2009. I need advice on how to find a good company that offers the colocation server option, and I need to know what kinds of questions to ask when shopping for a company.

MVC :: How To Use AntiforgeryToken With Delete Action Link forums.asp.net

i am currently working on an asp.net mvc 2 web app and would like to add  some ajax functionality on my delete item actions.Show, on the list items displayed view page, i wrapped the list items inside a partial view and added an ajax delete action link for each item (inside a foreach loop): [Code].... On the AjaxDeleteItem ajax controller action, i delete the selected item and redisplay the updated items list (via UpdateTargetId = "divList", where the list items partial view resides).My question is how i could insert Antiforgery token in such a scenario in order to secure delete operations from CSRF and XSRF attacks.

How To Call Code Behind Button Click Event Or A Code Behind Method From Javascript www.vbforums.com

how do you call code behind button click event or a code behind method from javascript.

Call Javascript Function From Code Behind After Server Side Code Executes stackoverflow.com

I have an asp.net button, that when clicked calls a code behind function. The function does some evaluation, and then I want to call javascript from within this asp.net function.

Visual Studio :: Automatically Create The Asp Control Event Code In Code Behind.. forums.asp.net

<script language="javascript" type="text/javascript"> // <!CDATA[ function cmdSignOut_onclick() { / ]]> </script> instead, how do I get it to create the code behind?

Javascript - Callback Function With Parameters stackoverflow.com

I'm using AJAX Page Methods, but I can't seem to be able to pass the needed parameters: function getFavStatus() { //favs is a list of DOM <imgs> that I want to modify their img.src attribute for (i = 0; i < favs.length; i++) { PageMethods.isFavorite(favs[i].alt,setFavImg(favs[i])); } } function setFavImg(fav, response) { fav.src = response; } The problem that I can't figure out is how to use the "response" from PageMethods, AND pass the DOM object to the callback function. I've also tried doing something like this: function getFavStatus() { for (i = 0; i < favs.length; i++) { PageMethods.isFavorite(favs[i].alt, function (response) { favs[i].src = response;}); ); } } In this case, the response works properly, but i is always > favs.length, because it has already iterated through the loop... Edit: My PageMethods.isFavorite signature is: [System.Web.Services.WebMethod] public static string isFavorite ( string p_id )

AJAX :: How To Mark The Selected Region With Color / Image forums.asp.net

Is there a way to give the selected range of a SliderControl a differrent color/image? heres an example from Telerik. [URL] As fare as I have worked with the Slider and MultiHandleSlider i dident find a way to create a slider looking like the one above (again: i need the selected range in a different color then the rest) I tryed creating a MultiHandleSlider with only one slider, but as an effect the style for the part between the sliders is not used. The normal Slider control has no option to create the wanted look So how to create a slider with marked selected rang using the ASP Toolkit?

Forms Data Controls :: Best Way To Select Data Using A Query Built By Controls forums.asp.net

er trying to develop in asp.net and I think  this is the best site that I visited ever.I'm  trying to develop webapplications with some controls like calendars, textbox, check box etc. in order to allows to the user to built a query made by himself (and complementing with strings), and of course only to display data according to the gathered information by  the controls.

Javascript - Display A Truncated String Using Eval stackoverflow.com

I have a ASP gridview control. I have a ASP label control in the item template column. I bind data to the grid using - <ItemTemplate> <asp:Label ID="lblDesc" runat="server" Text='<%# Eval("Description") %>'></asp:Label> </ItemTemplate> But, the value of this string can be upto 80 characters. But, I cannot afford to have the column length to be so high. And, there are limitations so I cannot use Wrap="true" and limit the column width. So, I figured the solution could be to display only about 50 characters in the grid and display the entire string as a tool tip. I managed to do this by using this - <ItemTemplate> <asp:Label ID="lblDesc" runat="server" Text='<%# Eval("Description").ToString().Substring(0,50) %>' ToolTip='<%# Eval("Description") %>'></asp:Label> </ItemTemplate> This displays the first 50 characters of the string in the grid column. And, the complete string is displayed as a tool tip when the mouse pointer hovers over the text. But, the problem arises when the string length is less than 50 characters. In this case, an exception is thrown. I tried modifying this piece of code to allow conditional display by checking for the string length. But, I could not get this to work. Is there a way to fix this problem? Can we call a javascript function within Eval() ?

MVC :: Submitting Form With Multiple Selects forums.asp.net

I have created a search page/form for finding employees and adding them to a list. The search works great, but what I am unable to figure out is how to select each employee and have them added to a simple ListBox or other control. After the user has run multiple searches and added multiple employees, at that point, they will submit the form. The information from the form will be used to create a security wall which will be passed to a third party web service. Here is one boundary: I cannot create an ActionLink that passes one user at a time to the web service as they are "selected." The web service requires that the security wall be submitted in whole. Once the wall is submitted, I am unable to access that wall and make any modifications to it through their web service. Simply put, it is a one way ticket. Does anyone have any ideas on how to implement such a page or can point me to a tutorial or example?

DataSource Controls :: Looping Records Using SELECT Vs Cursor? forums.asp.net

I am curious, if it's better to iterate through a set of records using cursor or using a WHILE (SELECT ..) ? I have read that cursors can be expensive, so may be WHILE (SELECT..) is a better approach.But I am not sure ? EXAMPLE OF WHILE (SELECT..) is as below DECLARE @warehouseId INT DECLARE @warehouseIds TABLE ( WarehouseId INT ) [code]...

Forms Data Controls :: How To Select Master Record For Display Based Upon Detail Records forums.asp.net

I have two tables.  One table containing 1 master record and the other table containing multiple records per 1 master record.  I want to only display in a gridview (or whatever is best) the master record AND its assocated detail records IF certain fields in the detail records are there.  I have been trying to figure out how to do this but I am still a bit of a newbie and I don't how I can do this.

Pass Selected Radiobutton To Insert Parameter SQL Server? www.vbforums.com

I can do that writing to insert into code. But my manager wants me to use sqldatasource control and it's insert delete update function to work with. My old code was this Code: [code]... after than i pass fieldevent but i don't know how to do it on sqldatasource control.

AJAX :: Get Accordion Selected Index? forums.asp.net

I have used an accordian extender in my page as <cc1:Accordion ID="Accordion1" runat="server" AutoSize="None" FadeTransitions="true" FramesPerSecond="40" SelectedIndex="1" TransitionDuration="250"  CssClass="accord"> <Panes> [Code].... In normal case both header texts (More search options and less search options) are visible.I want only one header text is visible at a time.ie;either more search options or less search options. can we write code in accordian selected index changed?

Forms Data Controls :: Handling A Gridview With Multiple Checkboxes And Radiobuttons Using Javascript forums.asp.net

I'm fairly new working with Javascript. I'm working on an issue where I have a GridView with multiple Checkboxes and Radiobuttons. A user can check multiple checkboxes and if a radiobutton is selected, a checkbox has to be selected. This scenario is working fine, presently with existing asp.net code. But, I want to automate it using Javascript, so that I could avoid a postback. 

SQL Server :: Select Query Based On Two Fileds With Different Column forums.asp.net

This is my Table structure:-Table1 Field1        Field2     Age Dean         Chen      20          Janel         Wast       25 ann            Miller      20 I used this select statement  select Field1+' - '+Filed2 from Table1 and i binded this in dropdownlist now on selecting dropdownlist i need to show age in label. so how would be my select statement... to show age base on Filed1 and Filed2

Forms Data Controls :: 2008 - How To Retrieve Data From GRIDVIEW1 Using Column SELECT Button forums.asp.net

I am using ASPNET2008 with VB Scripting and not C# Scripting I am encountering new problem. On the WebFrm1, I just don't know how to write the coding to retrieve the CUSTOMERID data in order to retrieve the details from SQL SERVER table  to fill the textbox controls.Here is the decription of the GRIDVIEW column In the GRIDVIEW1 on the left edge one of the column is SELECT button which let the userclick on it to select the specific CUSTOMERID on the column next to it on the right. Here are the coding from SOURCE <asp:ButtonField ButtonType="Button" Text="Select" CommandName="SelectClick"     DataTextField="CustomerID" > </asp:ButtonField>

Forms Data Controls ::want To Get Selected Items On Grid View? forums.asp.net

how can i get selected checkbox item from grid view if the user click on the buttion , i tryied this but i dont know how to get the values from columns. my columns are Id,FirstName.the function called from the buttion not from the gridview. my code is: [Code].... the secound one, when i am trying to insert a new values to db and the new values get id automaticly by sqlserves 2005,how can i get this id because  i want to save in other table to.

Changing Second Drop Down Box Value According To Selection In First Drop Down Box forums.asp.net

i have two drop down boxes where i would like to link first with second. i am new to website development. how to do it. i tried to pass first drop down box value in to parameter but i am unable to do it. i dont know where i am doing the mistake.

Web Forms :: Drop Down List With First Item Non-selectable? forums.asp.net

How can I make the first item in a drop down list non selectable. I want this first list-item to show up when the page is opened and want to populate the rest of the DDL from a backend DB. I don't want this default first item in the list to be selected (just want to show it as a default value) I want it to look something like this. Choose a State: (Appearing on the top of DDL, but cant be selected) TX IL NY FL

Web Forms :: Double Click In A Listbox? forums.asp.net

I have listbox in panel. Listbox load with items at the pageload. when i single-click on the item of list box it directly gets loaded into a text box.  I want item to load into the text box at double-click.

Listbox Keypress & Double Click Event? bytes.com

i have a asp.net list box populated with databae data , autopostback = true wht i need is 1) when double clicked(double click event) i want it to be visible=false 2)i want to move between the data in the listbox using up, down arrow keys & make the selection by pressing eneter(keypress event) 3) everytime i move betwen the data(autopostback = true) postback is caused,is it possible to avoid the flickering without ajax.as if i have to use ajax i will need to redo the whole coding

Web Forms :: Show Multiple Line Listitem In Asp:ListBox forums.asp.net

its possible to show multiple line text in listbox. For eg. I have two records as follows #1 Pizaa 1 : BBQ Chicken Add: Extra Sauce Add: Extra Cheese #2 Wings 1 : Hot Spicy Add : Extra Red Pepper Remove : Cheese I have to provide "Remove functionality" , listbox is the easiest  to provide remove functionality. I cannot modify above record format. If its not possible, then what is the alternate to overcome this issue.

Web Forms :: Passing Query From A Selected Item In A Dropdown List To A Different Page? forums.asp.net

I need to get a query after the  user has  select an item from a list I have a list of cities and I need that after the user has select a city to get the result from my db in a different page I have tried first to pass it to a lable but this is also not working ... [Code].... [Code]....

Pass Parameters From A ListBox To A DataGrid? forums.asp.net

I am trying a programming example, which I saw in a book, in an attempt to learn ASP.NET and figure out how to pass parameters to a simple query.  Here is my HTML: [Code].... The page loads but the ListBox does not fill.  As a consequence, or maybe as an aside, the button click_event does absolutely nothing.  Here is my VB: [Code]....

How To Disable NumericUpDownExtender After First Click forums.asp.net

I'm using NumericUpDownExtender inside updatepanel which is inside repeater displays comments on article. I use NumericUpDownExtender as thumbs up/down and I need to disable it after first click so that no one can rate the comment more than once. How can I do that?

Asp.net - Disable NumericUpDownExtender After First Click? stackoverflow.com

I'm using NumericUpDownExtender inside updatepanel which is inside repeater displays comments on article. I use NumericUpDownExtender as thumbs up/down and I need to disable it after first click so that no one can rate the comment more than once.

Forms Data Controls :: GridView + SqlDataSource Selected Items Disappear On Edit? forums.asp.net

[Code].... I am trying to put the select command in code behind: sdsAdd.SelectCommand = String.Format("SELECT Classes.ClassId, Committed, CallNumber, SubjectArea, CourseNumber, SectionNumber, GradingBasis, NumberOfUnits, NetId FROM Classes INNER JOIN EnrollmentAdjustmentClasses ON EnrollmentAdjustmentClasses.ClassId=Classes.ClassId WHERE AllFormsId='4' AND SectionId='1' AND NetId=@NetId AND Committed='True' AND EnrollmentAdjustmentClasses.FormId={0}", Request.QueryString["FormId"].ToInteger32()); gvAdd.DataBind(); When I do that, then click edit to edit the selected item, the item disappears from my gvadd. What am I doing wrong?

Get First Sentence Till First "." (dot)? forums.asp.net

I've a text data from db and I want to get first sentence to display, and "." (dot) is a reference to realize that is the sentence, so how can I get this sentence till first "." in c#? i.e: "This is an  example sentence. And this is second sentence" As you can see the ex above "This is an example sentence." sentence is what I want to get.

Web Forms :: Alternate Ways Of Selecting Item From Large Record Set? forums.asp.net

I'm trying to figure out some alternate ways of dealing with a smaller subsets of records from a larger set of records.  This would be to increase performance and make it easier for the user to navigate, as opposed to trying to navigate a really large unwieldy record set. I know of a few ways a user can select a record from a record set.  Selecting from a Grid View, drop down list, list box are some the first ones that come to mind.  Another way I've seen, I think it was done with a repeater or User Control, is to list all of the letters in the alphabet as links and then only return the records that correspond to the letter that was selected.   It could also be done to allow the user to search by last name, first letter of the last name or some other similar method. I'm curious if there are any other ways of doing this.  Does anyone know any other techniques that would create a better user experience when selecting a record or subset of records from a large record set?

Web Forms :: How To Display Column Field In A ListBox Control forums.asp.net

i need to display perticular couln field values in a ListBox control. but database is not in local meachine. i know how to configure a ListBox to display values from localdatabase but how to configure to a remote database ?

Web Forms :: Display The Physical Harddrives Of System? forums.asp.net

i need to display the physical harddrives of system in a dropdown & depending on the drive select the folders  subfolder in listbox or some other control in asp.net webapplication 

Foreach Loop Stops After First Pass www.phpfreaks.com

I'm trying to make a script upload several images at once. I have a form which creates an array of files, with title and description for each file. The following script is supposed to handle the files properly, one by one, but it stops after the first image. I've tried with different images, different filetypes and so on, and I am basically stuck. What am I missing? Code:

JQuery :: Asp.net - Using To Move Items Between .NET Listboxes? stackoverflow.com

I have two listboxes, two html input tags and one .NET submit button on an webpage. // The two listboxes <asp:ListBox ID="lbViewOptions_Hidden" runat="server" Rows="7" Width="110px"></asp:ListBox> <asp:ListBox ID="lbViewOptions_Show" runat="server" Rows="7" Width="110px"></asp:ListBox> // The two html input tag <input id="ibtnRight" type="image" src="images/move_right.png" style="height:16px;width:16px;border-width:0px;" /> [Code]... The listboxes are loaded during the page_load event with various items that are dynamic, thus my reason for using ASP.NET listbox controls instead of just hardcoding an HTML select tag with the various items. My problem is this: due to the fact that the listboxes are .NET controls and I'm using jQuery to move items back and forth between the them, any changes made to them does not persist through a postback. For example, assume that listbox lbViewOptions_Hidden has two items in it: "Foo #1" and "Foo #2". If I select item "Foo #2" and click the input button to move it to listbox lbViewOptions_Show, then it moves over as it should, and I now have item "Foo #1" in the first listbox and item "Foo #2" in the second listbox. However, if I click on the .NET button btnApplyViewOptions to submit back to the server, the second listbox has no items and all of the items are still in the first listbox. How do I go about fixing this problem? I assume that it has something to do with the ViewState, but I'm not positive about it.

List All Images Filenames From Directory Into Listbox ? forums.devshed.com

I need to list all images filenames from specified directory into listbox with php (e.g. limiting to .jpg, .png, and .gif)? How do I do that?

Get All Of The Non Excluded Items In This List Using An XPATH? stackoverflow.com

I have the following xml file: <items> <item> <name>Suede Shoe</name> [code]...

Checking To See If A Selected List Of Items Are In Another Table? stackoverflow.com

Im trying to come up with some code to check whether or not a user owns a list of items. The list of items can be any length but will probably be no more than 5. There are 2 tables involved here: qrequirements and inventory. I've got as far as running a loop to check a user has each item, but I'm stuck on how to record the result of the ownership of each item and how this can be communicated to the user afterwards. I might be going about all this the wrong way and maybe there's a simpler way, I don't know. Here's my code so far: <?php // Get the list of required items $result = mysql_query("select * from qrequirements where qid='2'"); // This might return E.G: // item1 = '32' // item2 = '24' // item3 = '15' [Code]...

Keep First 6 Items In An Array And Drop The Rest? stackoverflow.com

how I can drop any array items that come after a certain number like 6. Is there something in PHP that enables you do do it? Or is it a custom function that needs to be written

Consuming My First Web Service Using Soapclient()? www.phpfreaks.com

I'm trying to learn how to consume a web service using soapclient() I found this WSDL: http:[url].... And I tried this code: $params = array('AAPL'); $client = new SoapClient('http://www.webservicex.net/stockquote.asmx?wsdl');[code]... But I get this: stdClass Object ( [GetQuoteResult] => exception ) I haven't made a single successful call to their api. Also, do you guys know if there's a way to use syntax like this: $client >getQuote(); Shouldn't php know from the WSDL what functions are possible?

Jquery :: Select First Letter Of Each Word With Either Script / This? stackoverflow.com

Is there a way to select the first letter of each word with either javascript or jQuery? Im trying to make tags on my page have the first letter of each word be a bigger font size. Im assuming it involves regular expressions but all i keep finding are things for form validation. I also see a bunch of stuff for capitalizing the first word. I'm trying to change the font size. Does anyone know if this can be done and how?

Remove First Set Of Values In An Array? forums.devshed.com

I was wondering if it was possible to remove the first set of keys and values from an array and would it cause issues? Code: Array ( [0] => Array ( [0] => Todd [name] => Todd [Code]....

Drag And Drop Breaks After First Drop? www.codingforums.com

So, what it does: You can successfully drag something anywhere, but when you click it again, it resets to its original position (I don't know why), and when you try to drag it again, as soon as your cursor touches the object it disappears (I don't know why). why it is happening and how to fix it! // JavaScript Document var posX; var posY; var element; [Code].... the html is a simple (position is set to relative): <p id="square" onmousedown="drag(event)">meep</p> EDIT: This is the first time I've written javascript code and would like to learn the basics, which is why I am not using a library.