Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
649,222 | 649,223 | String was not recognized as a valid DateTime | <p>Please help me with the issue . I have tried lot many solution and they are not working .</p>
<pre><code>rd["DOB"].ToString() = "9/19/1946";
DateTime dt1 = DateTime.ParseExact(rd["DOB"].ToString(), "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture);
</code></pre>
| c# asp.net | [0, 9] |
2,055,703 | 2,055,704 | Jquery function to find out max height of <li> | <p>I want to find out that out of the given <code><li></code> which <code>li</code> has the maximum height?
how do i write such function?</p>
<p>If there are n <code><li></code> elements of different size, content and height. I want to figure out the maximum height of the biggest <code><li></code> el... | javascript jquery | [3, 5] |
2,858,862 | 2,858,863 | Dynamic Text Box value comparison? | <p>I am generating dynamic text boxes in my application. I need to compare the values in each dynamic text boxes when I click the submit button.</p>
<p>Can any one please help me by providing some ideas or sample codes to solve this task?</p>
<p>The solution might either be in jQuery, Javascript or C# asp.net</p>
| javascript asp.net jquery | [3, 9, 5] |
3,712,424 | 3,712,425 | Is there an equivalent of ucwords in java | <p>In php, the method <code>ucwords</code> converts any string in a string where each words first character is in uppercase, and all other characters are lower case. </p>
<p>I always end up making my own implementation, and I'm wondering if a standard method exists. </p>
| java php android | [1, 2, 4] |
5,294,348 | 5,294,349 | Understanding what appears to be an instantiation of a method | <p>I am currently trying to understand how well regarded lightbox, ColorBox, works so that I can attempt to make a development to it. However I am struggling with a couple of concepts within the code. The following is where I am stuck:</p>
<p>I have the following function being declared:</p>
<pre><code>publicMethod =... | javascript jquery | [3, 5] |
5,394,001 | 5,394,002 | ASP.NET: How to handle all page redirection? | <p>In an ASP.NET page, are there any practical ways to handle all of these following:</p>
<ol>
<li>PostBack</li>
<li>Redirection when user click a link in the page</li>
<li>Redirection when user change url field in the browser</li>
</ol>
<p>with just a single web control (or method)?</p>
<p>TQ</p>
| c# asp.net | [0, 9] |
2,917,661 | 2,917,662 | Programatically created events in RowDataBound not firing | <p>I have a GridView which is populated from a database, and includes a textbox. Through the code behind, I want to subscribe the textbox on each row to a certain event, but only if a field of the row matches some if statement.</p>
<p>So I have the following:</p>
<pre><code>protected void grdRates_RowDataBound(object... | c# asp.net | [0, 9] |
2,308,755 | 2,308,756 | jquery tree traversal issue | <pre><code>$('.field').blur(function()
$('*').not('.adress').click(function(e) {
foo = $(this).data('events').click;
if(foo.length <= 1) {
// $(this').next('.spacer').children().removeClass("visible");
}
$(this).unbind(e);
... | javascript jquery | [3, 5] |
5,644,070 | 5,644,071 | Using jQuery to clone form elements with dynamically added values | <p>I have a form that is similar to this:</p>
<pre><code><fieldset id="user">
<input type="text" id="firstName">
<input type="text" id="lastName">
</fieldset>
</code></pre>
<p>Then I do an Ajax call to fill the values of those two fields. At this point I want to save the current state of t... | javascript jquery | [3, 5] |
15,782 | 15,783 | Is it possible to copy javascript with javascript? | <p>Is it possible to copy javascript with javascript? For example:</p>
<pre><code><div class="copyThis">
<script language="javascript">
$(function()
{
$("#click").click(function(e){
$('.copyThis').clone().appendTo('#copyArea');
e.preventDefaul... | javascript jquery | [3, 5] |
5,008,342 | 5,008,343 | Andriond send event from first activity and receive on the second | <p>I have two activities. The first activity display list of the users with short info. And after select some user I go to the second activity for display full info about this user. For send event I used <code>startActivityForResult();</code> for receive event in socond activity and added <code>public void onAct... | java android | [1, 4] |
5,552,248 | 5,552,249 | jQuery: Why can't I access the event object in my scroll event? | <p>I want to access the original event object but the object returns undefined..</p>
<pre><code>$(window).scroll(function(event) {
alert(event.pageX);
});
</code></pre>
<p>I'm just trying this out if it will work. The example is as basic as possible so I can work out other events too.</p>
| javascript jquery | [3, 5] |
5,552,477 | 5,552,478 | Alert Box with specific functionality | <p>I am getting a JS Alert-box When I am leaving my tabs 1st time.
But would like to get it as windows alert - any idea on basis of my code.
Also that should have a OK and Cancel Button - Ok > Next Tab
Cancel> Same tab </p>
<pre><code>$(document).ready(function () {
B... | javascript jquery | [3, 5] |
5,110,403 | 5,110,404 | Javascript event not bubbling | <p>I have the markup below:<img src="http://i.stack.imgur.com/WQ8dU.png" alt="enter image description here"></p>
<p>And I have some jQuery I just added to toggle the row color:
<img src="http://i.stack.imgur.com/I9oEU.png" alt="enter image description here"></p>
<p>Clicking anywhere in the row switches the view, as b... | javascript jquery | [3, 5] |
1,458,694 | 1,458,695 | How to change Width of Android's Switch track? | <p>I'm going crazy with this tiny problem. I have a 'switch' Form widget, but no matter how much I try, I cannot make it narrower. Even if I have one character instead of 'ON' or 'OFF', the size of switch remains the same. The 'thumb' becomes small, but it has to be dragged over the same distance as before. Changing th... | java android | [1, 4] |
5,757,596 | 5,757,597 | Java analogous to Python os.path.expanduser / os.path.expandvars | <p>Is there such a thing as Python's <code>os.path.expanduser</code> and <code>os.path.expandvars</code> (<a href="http://docs.python.org/library/os.path.html" rel="nofollow">documentation</a>) in Java?</p>
<p>If not, is there a library somewhere that does this?</p>
| java python | [1, 7] |
1,845,770 | 1,845,771 | jquery increment id and name of children within appended rows | <p>Hey all. I am adding a "More Rows" button to a table within a long, complex form, and to add the rows, I am cloning an existing row in the table, modifying it, then appending it to the end of the table. </p>
<p>The row contains inputs that have id and name attributes that are numbered sequentially (e.g. id="Item_Na... | javascript jquery | [3, 5] |
5,725,125 | 5,725,126 | content appended with jquery is not part of the DOM | <p>I have an empty div <code><div id="content"></div></code> to which I add content via jquery append.</p>
<pre><code>$('#content').append('<div class="sub">sub1</div>');
$('#content').append('<div class="sub">sub2</div>');
$('#content').append('<div class="sub">sub3</div&g... | javascript jquery | [3, 5] |
1,742,113 | 1,742,114 | What is an in-depth ASP.NET book? | <p>I'm wondering what a good book to read describing how ASP.NET works. I'm thinking something similar to CLR via C# but focused on ASP.NET.</p>
<p><strong>Clarification:</strong> I'm interested in ASP.NET as a platform including things like httphandlers, httpmodules, state management (SessionStateModule), and cachin... | c# asp.net | [0, 9] |
1,831,687 | 1,831,688 | What jquery experssion would give me ['a','b'] for the doc <tag att1='a' /><tag att1='b'/> | <p>What jquery experssion would give me <code>['a','b']</code> for the doc <code><tag att1='a' /><tag att1='b' /></code>.</p>
<p>Even though the question seems straight forward enough, I've added more info here to pass the automated quality standards on the question submission form.</p>
<p>The actual case... | javascript jquery | [3, 5] |
2,288,121 | 2,288,122 | If I start a thread in the application startup process, will it keep running? | <p>If I start a thread in the Application_Startup event of my web application in ASP .NET and it contains an infinite loop doing some background work using sleep methods too, will it continue running forever, assuming no exceptions occur?</p>
| c# asp.net | [0, 9] |
2,025,025 | 2,025,026 | Open a pdf after the viewer agrees to a disclaimer using jquery | <p>Before the viewer could see the pdf from a link, he/she has to agree to a disclaimer, that I have created as a pop-up. The pop-up works but the pdf does-not open after that. I think the syntax is wrong, So someone please correct it. Thanks.</p>
<pre><code><script type="text/javascript" src="../../Scripts/jquer... | javascript jquery | [3, 5] |
5,643,310 | 5,643,311 | Get simple name for the running application | <p>How can i make my code to show only the name of running application which i can kill, because in my code it show the package name and that is very confusing for the user. And also, i want it to have an icon beside the application so that the user will identify it easily. i got this code from the internet and i used ... | java android | [1, 4] |
1,227,384 | 1,227,385 | Back navigation with pushstate and load in jQuery | <p>I'm currently using jQuery to dynamically load content into a holder div and then updating the url with pushstate.</p>
<p>I have the following code so far (some excluded for example simplicity):</p>
<pre><code>$("body").on("click", "a:not(.noclick)", function(){
history.pushState({path: $(this).attr("href")},... | javascript jquery | [3, 5] |
1,096,387 | 1,096,388 | Distance of Lat & Long in android | <p>I have an doubt in java..hope i need a code for my application.
Consider a taxi application, i want to get distance between two travelled places by taxi using latitude and longitutude..</p>
<p>I saw some examples in stack overflow,it is not sufficient to do my application...</p>
<p>Assume there are two buttons,
s... | java android | [1, 4] |
2,563,079 | 2,563,080 | how to execute a web server app on a client machine | <p>I have some code that should do a system check to see if a machine is compatible with software. its uploaded to a web server. how can I get it to be run on a client machine if some one tries to do the system check on our website? </p>
<p>the code works as it should but I am not sure how to get it running on the web... | c# asp.net | [0, 9] |
1,487,921 | 1,487,922 | Is there an error in this jquery file? | <pre><code>$(document).ready(function(){
/* fetch elements and stop form event */
var submitData = $("form.follow-form").submit(function (e) {
/* stop event */
e.preventDefault();
/* "on request" */
$(this).find('i').addClass('active');
/* send ajax request */
... | javascript jquery | [3, 5] |
5,346,745 | 5,346,746 | Open a new window using Hyperlink NavigateUrl property inside gridview | <p>I have a grid.<br>
Inside the grid I have a column name as <code>Document name</code>, this document contains all documents with file name <code>indra.pdf</code>.<br>
My requirement is when I click on document name I want to open the document in a new window.<br>
While I am saving my documents in Tables I am also sa... | javascript asp.net | [3, 9] |
829,984 | 829,985 | Trigger Pusher event from javascript | <p>I am using <a href="http://pusher.com/docs/quickstart" rel="nofollow">Pusher</a> for real-time page update for my static JavaScript app. when i tried to invoke trigger event its not responding anythin. here is my code</p>
<pre><code>var pusher = new Pusher('5f5ebdf0612fbafff349');
var myChannel = pusher.subscribe... | javascript jquery | [3, 5] |
3,515,763 | 3,515,764 | How to validate a textbox to check if the value entered is in multiples of 100 only | <p>I want to validate that the value entered by a user in a textbox is a multiple of 100 using jQuery. How can I do that?</p>
| javascript jquery | [3, 5] |
2,048,379 | 2,048,380 | Get item from entity framework by ID | <p>Simple question. I have entity Customer in my edmx model. I need to get the customer with Id = 20 in c#. How do I do that?</p>
| c# asp.net | [0, 9] |
1,238,441 | 1,238,442 | storing a dynamic array of values inside an object looped within a for statement | <p>I am looking to create a set of dynamically created arrays stored inside an object. the outcome would be something similar to this... </p>
<pre><code>object.array0.length = 5, object.array1.length = 4, etc
</code></pre>
<p>the name of the array would be generated from within a for loop based on a numerical value d... | javascript jquery | [3, 5] |
1,455,637 | 1,455,638 | Change picture on mouse hover | <p>How to set in <code>ASP.NET</code> for <code>ImageButton</code> to change picture on mouse hover?</p>
| c# javascript asp.net | [0, 3, 9] |
2,550,436 | 2,550,437 | Check if first time someone goes to asp.net website? | <p>Hello I am creating a basic counter that adds +1 everytime someone accesses the website. The problem is it adds 1 everytime someone goes to another page on the site, not when the person goes to the site for the first time, making the data very inaccurate (ex. One user that accesses the site may go to 8 different pag... | c# asp.net | [0, 9] |
3,786,895 | 3,786,896 | How to remove PROTOCOL from URI | <p>how can I remove the protocol from URI? i.e. remove HTTP</p>
<p>thanks</p>
| c# asp.net | [0, 9] |
1,347,079 | 1,347,080 | Java webpage from a java class or method | <p>Say I have a java class with a method in that class which returns an integer. Now I want to have a webpage (Eg. HTML page) which would access this class and then method and display the result. </p>
<p>how do I do this? What do i learn to do it? first of all what's this called? servlet? applet? what?</p>
<p>Sorry. ... | java javascript | [1, 3] |
4,993,447 | 4,993,448 | jQuery $.ajax function stops mid execution | <p>I'm making an attempt at a RESTful application but my $.ajax function stops in the middle of its execution.</p>
<pre><code>function addEntry()
{
$.ajax({
type: 'POST',
contentType: 'application/json',
url: passAPI,
dataType: "json",
data: dataToJSON(),
success: hideform
})
}
function hidefo... | javascript jquery | [3, 5] |
1,029,844 | 1,029,845 | Tutorial for porting php app to Android? | <p>Does anyone know a tutorial or book that gives a good step-by-step for porting a web browser based PHP application to an Android app? I've seen some stuff for the various steps that are required but nothing that ties it all together. Basically, I have a PHP app that works fine in my browser on my PC, but I want to c... | php android | [2, 4] |
2,162,262 | 2,162,263 | Making a Javascript game, Having a little problem with scrolling | <p>I have a <code>#wrapper</code> div and a <code>#grid</code> div nested inside. currently I can scroll around with this function below.</p>
<pre><code>getCursorPos : function(){
// set the empty cursor object
var cursor = {};
//get the offset from the left of the grid container
var grid
//offse... | javascript jquery | [3, 5] |
5,709,964 | 5,709,965 | How to disable initial mouseover | <p>With jQuery (or pure javascript), if you set a <code>mouseover</code> handler, it will be triggered even if the mouse is initially on the element. How to disable that?</p>
<p>For example, look at facebook - place your mouse over the name of a friend in the feed. A hovercard appears. Now refresh the page (without mo... | javascript jquery | [3, 5] |
2,887,043 | 2,887,044 | Using jquery, how to I animate adding a new list item to a list? | <p>I have a simple javascript function that allows me to add an item to a list. Note that I use JQuery...</p>
<pre><code>function prependListItem(listName, listItemHTML)
{
//Shift down list items...
$("#" + listName + " li:first").slideDown("slow");
//Add new item to list...
$(listItemHTML).prependTo(... | javascript jquery | [3, 5] |
2,818,284 | 2,818,285 | android to create a with device name as filename in php server and updating it every one hour | <p>I need an android code to create a file in php server with file name as device imei no and update it every one hour with out creating any local file in device..Please help me in this . . i need the php code also . . dont ve exp in writing php scripts.</p>
| php android | [2, 4] |
5,299,408 | 5,299,409 | How to compare two dates in JQuery? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/492994/compare-2-dates-with-javascript">Compare 2 dates with JavaScript</a><br>
<a href="http://stackoverflow.com/questions/1657733/compare-two-dates-in-javascript">Compare two dates in JavaScript</a> </p>
</bloc... | javascript jquery | [3, 5] |
5,939,746 | 5,939,747 | jQuery infinite loop w/ tablesorter | <p>Got myself in a funny situation: page has three tables. Using sortEnd, any time you sort one table, it sorts the other three. However, since I bound sortEnd to the function that does the sorting, you get a infinite loop of sorting/resorting. It looks like:</p>
<pre><code>$("table.tablesorter").tablesorter({widgets:... | javascript jquery | [3, 5] |
2,505,193 | 2,505,194 | how do i wrap the input with a div with jquery | <p>I have this format</p>
<pre><code><td class="value">
<input type="text" size="30" name="application[name]" id="application_name" data-validate="true" class="name">
</td>
</code></pre>
<p>and with jquery i need the final result to be this</p>
<pre><code><td class="value">
<div class="fie... | javascript jquery | [3, 5] |
4,491,460 | 4,491,461 | Why doesn't this JavaScript evaluation work? | <p>I only want to execure a ceratin code IF three input fields do not have empty values. So why doesn't this code work:</p>
<pre><code>if($("#field1").val() != "" && $("#field2").val() != "" && $("#field3").val() != "")
</code></pre>
| javascript jquery | [3, 5] |
1,698,961 | 1,698,962 | javascript jquery .each() problem | <p>I have some form input elements with class <em>.commission_plan</em> and different IDs. I need to sum up this element's values. I use this code:</p>
<pre><code>jQuery(document).ready(function() {
var total = 0;
$('.commission_plan').each(function() {
total = total + parseFloat($(this).val());
})... | javascript jquery | [3, 5] |
1,549,131 | 1,549,132 | How can I create Editable GridView like Spreadsheet? | <p>How can I create Editable GridView like Spreadsheet? (On asp.net 2005)</p>
| c# asp.net | [0, 9] |
39,882 | 39,883 | How to change/ get new Session value in a click? | <p>I have a session value and stored it in a text box.
and i want to change/get new value on that by a click on a link of any button.
{
</p>
<p> </p>
<pre><code> <td valign="top">
<input type="button" id="msg" name="msg"style="background:url(images/bg7.jpg) no-repeat; border: none; color:#FF... | php javascript | [2, 3] |
1,258,345 | 1,258,346 | "state information is invalid for this page" error | <p>I have an error comes up in aspx page:</p>
<p>The state information is invalid for this page and might be corrupted.</p>
<p>What would be the problem?</p>
| c# asp.net | [0, 9] |
5,423,463 | 5,423,464 | How do I make the website execute links? | <p>I'm making a small webpage that is going to execute links, en specifics magnet links. But the webserveruserrole does not carry enough mojo (rights, <code>Process.Start()</code>) to make that happen.</p>
<p>I've tried to look for this user role but could not find it.</p>
<p>How do I make the webserver execute/start... | c# asp.net | [0, 9] |
5,219,156 | 5,219,157 | Filtering by date and time C# | <p>I'm creating reports in C# ASP.Net, whereby in the reports I can filter data created between two different dates (e.g Start date: 15th July and End date: 17th July) but when it comes to filtering data created on a particular day (e.g StartDate: 15th July and End Date: 15th July) the query doesn't retrieve anything..... | c# asp.net | [0, 9] |
2,507,619 | 2,507,620 | how to get respective image in url for asp.net website | <p>I need to get our company image before the url in asp.net website
for example in google <a href="http://www.google.co.in/" rel="nofollow">before</a> google image appeears</p>
| javascript asp.net | [3, 9] |
4,857,913 | 4,857,914 | canvas.drawText question | <p>i am drawing text in my custom view in android using canvas.drawtext. i need to change back color, and want text right aligned. for example i want to print the text in a 10, 10, 100, 20 rectangle of color yellow and text color red and right aligned. how can i do that ?</p>
| java android | [1, 4] |
5,745,077 | 5,745,078 | Automatically call common method whenever request made for any method of that class | <p>I am working in maintenance for one ASP.net + c# [.net version 3.5] application. Requirement is, through out the application whatever string variable passed to the DAL layer must be checked for some specified words and symbols. </p>
<p>In this case I have to go on each method and then each string parameter to check... | c# asp.net | [0, 9] |
5,529,114 | 5,529,115 | Jquery to a asp.net control | <p>I am trying to use jquery on an Asp.net control. In asp.net id get generated from server.
so I am trying to write a selector to use jquery.</p>
<pre><code> $(document).ready(function() {
$("#ctl00$cphBody$fv$txtDescription").val('blah');
});
</code></pre>
<p>I need if the id <strong>contains</stro... | jquery asp.net | [5, 9] |
4,442,055 | 4,442,056 | i'm getting CultureInfo.InvariantCulture format for MM/dd/yyyy. but i want to get dd/MM/yyyy format what i do that | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/12986114/get-the-system-date-and-split-day-month-and-year">get the system date and split day,month and year</a> </p>
</blockquote>
<p>getting CultureInfo.InvariantCulture format for MM/dd/yyyy. but i want to get... | c# asp.net | [0, 9] |
457,135 | 457,136 | ASP.NET : What exactly is affected when Javascript is off? | <p>I've heard different stories about ASP.NET and JavaScript: that it works fine with Javascript turned off, that only some parts don't work, and that nothing works at all.</p>
<p>How exactly are ASP.NET applications affected if JavaScript is turned off in a client's browser? What parts don't work (if any)?</p>
<p>Fo... | asp.net javascript | [9, 3] |
1,871,711 | 1,871,712 | String.fromCharCode & CharacterSets | <p>I recently tried to mirror some input within input(text) fields.
Using</p>
<pre><code> String.fromCharCode(event.which)
</code></pre>
<p>for instance, translates all 'standard' characters correctly. Well it translates them all
to uppercase, but that you can easily catch by looking up the shift key aswell.</p>
<p>... | javascript jquery | [3, 5] |
4,970,215 | 4,970,216 | What is equivalent to a php page setup in asp.net | <p>I program php, but I am trying to get into c# asp.net. In php I can make forms, custom html, etc into a seperate php file and just <code>include</code> it on the page that I desire. I understand asp.net has a master page which allows you to set the template for the whole website, but what If I want just a row of b... | c# php asp.net | [0, 2, 9] |
3,048,575 | 3,048,576 | Moving Beyond Factories in Python | <p>Coming to Python from Java, I've been told that factories are not Pythonic. Thus, I'm looking for <strike>a</strike> the Python way to do something like the following. (I'm oversimplifying my goal so that I don't have to describe my entire program, which is very complicated).</p>
<p>My script will read in names of ... | java python | [1, 7] |
4,227,910 | 4,227,911 | Is it necessary to understand C# before going into ASP.NET? | <p>Do I have to get some C# class before taking ASP.Net programming lessons?</p>
| c# asp.net | [0, 9] |
1,918,196 | 1,918,197 | Sort two Lists<T> together as one? | <p>I have two List which I am accessing by index (e.g. <code>Name[10]</code>, <code>Date[10]</code>). They're closely tied, so <code>Name[10]</code> is related to <code>Date[10]</code> and vice versa. </p>
<p>This design has worked well but now I need to sort them. I can sort them both individually but obviously tha... | c# asp.net | [0, 9] |
4,076,473 | 4,076,474 | What are the pros and cons of calling jQuery functionality via these 2 different methods? | <p>I'm trying to understand what the differences are (if any) between these 2 ways of calling JavaScript/jQuery functions.</p>
<p>Method 1, in <code>document.ready()</code>:</p>
<pre><code>$('body').on('click', 'a.popup', popup);
</code></pre>
<p>then</p>
<pre><code>function popup() {
$(this) // do something ... | javascript jquery | [3, 5] |
4,895,022 | 4,895,023 | Strange behavior when converting a double to String in Java | <p>I have a crash in my Android application coming from a strange behavior in a SQL query string construction. Here is the error:</p>
<pre><code>Caused by: android.database.sqlite.SQLiteException: near ")": syntax error: , while
compiling: SELECT [...], (0.6773931613745379*coslat*(coslng*0.9999276712889913
+sinlng*0.0... | java android | [1, 4] |
3,844,057 | 3,844,058 | ASP.NET .aspx page: how to send extra data back via Javascript? | <p>I have an old-fashioned ASP.NET plain .aspx page.
It has some server-side controls, some buttons to postback, etc.</p>
<p>I'm going to add some Javascript on the client side to create a list of extra data that the user builds.
I don't know beforehand how much of this extra data will be sent. So I can't, for example... | javascript asp.net | [3, 9] |
4,017,153 | 4,017,154 | Game Programming as Hobby, should I use Java or C++ | <p>Presently, i am learning Java from the book The Art and Science of Java and following Standford's Programming Methodology Course.</p>
<p>I would like to do game programming, but only as a hobby. </p>
<p>I was thinking, would Java be a good choice or is C++ the defacto in game programming. </p>
| java c++ | [1, 6] |
3,852,477 | 3,852,478 | Get number of pictures using URL and Directory.GetFiles | <p>I want to get the number of pictures that is in a folder on a website. But I can't find a way to do it.</p>
<p>I have tried to use </p>
<pre><code>string a = Request.QueryString["nr"];
string[] filePaths = Directory.GetFiles(@"URL" + a, a + "_profil*");
</code></pre>
<p>But it doesn't work. I get the error:</p>
... | c# asp.net | [0, 9] |
1,095,767 | 1,095,768 | state of activity saving in android when home button pressed | <p>I am having an issue related to home key . when i press home key all current activity gets hidden . but when i press the executable it again starts from the fisrt screen . I have overidden all methods onsaveInstaceState opPause onStop onResume
but there are still issues what is the right way to handle thos... | java android | [1, 4] |
3,920,777 | 3,920,778 | Publishing website project, database date format will be the same or converted to the default host date format? | <p>I'm developing a web application and I'm using a gridview and sqldatasource.</p>
<pre><code>I have some columns with type : Date.
</code></pre>
<p>In my control panel I set the format of the date for my country wich is : <code>dd.mm.yyyy</code> </p>
<ul>
<li>In this case , the Table Data of the database in c# wi... | c# asp.net | [0, 9] |
3,313,158 | 3,313,159 | javascript: Avoid browser scrolling back to top on content insertion | <p>I thought this would be very easy to solve, but I can`t seem to find a solution anywhere.
It's a very annoying javascript 'feature?'. Every time I add content to a div the document gets scrolled back to top. How can I avoid this annoying behaviour?</p>
<pre><code>n = 0;
function addContent() {
div = document.ge... | javascript jquery | [3, 5] |
1,614,530 | 1,614,531 | BlockUI Prevent any rendering until unblock? | <p>I am using JQuery BlockUI plugin.
<a href="http://www.malsup.com/jquery/block/" rel="nofollow">http://www.malsup.com/jquery/block/</a></p>
<pre><code>eventDrop: function (event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui, view) {
$.blockUI();
$.ajax({
type: "POST",
url: "Calenda... | javascript jquery | [3, 5] |
2,783,895 | 2,783,896 | How to assign and work with DOM elements as variables | <p>I would like to be able to assign an html element to a variable and then to work with it just like I'm working with the actual DOM element. </p>
<p>In this example, I want it so when showAlert() function gets called, it'll take the ID that is being passed, show the div, since it's default is hidden and set a text v... | javascript jquery | [3, 5] |
5,764,615 | 5,764,616 | Android Subclass Listview problem | <p>I have a subclass of ListView. My only problem is I can't get it to work (not the listview code, but the code to <em>use</em> the listview. Android won't inflate it (app crashes). I'm sure there is a simple way to get this to work, but I don't know how.</p>
<pre><code>PullToRefreshListView list;
/** Called when... | java android | [1, 4] |
5,010,444 | 5,010,445 | Advice, resources for developing first Android app | <p>So I have decided to develop my first app, it will essentially be an app for tracking your jogging times. You will create a "journy",name it,give the distance etc.You can create multiple journys. And in the journeys you will run a stopwatch and it will store your time when finished. You will be able to look at your ... | java android | [1, 4] |
3,383,332 | 3,383,333 | Add Session Value to HiddenField placed in web control | <pre><code><asp:HiddenField ID="mypostID" runat="server" Value=""/>
</code></pre>
<p>I wanted to ask if I could do something like:</p>
<pre><code><asp:HiddenField ID="mypostID" runat="server" Value="<% Response.Write(Session["ïd"])%>"/>
</code></pre>
<p>I cannot access the session from the user con... | c# asp.net | [0, 9] |
3,623,911 | 3,623,912 | WordPress Jquery Fade in, Fade out effect | <p>I'm following <a href="http://hv-designs.co.uk/2010/01/13/learn-how-to-add-a-jquery-fade-in-and-out-effect/" rel="nofollow">a tutorial</a>.</p>
<p>I've included the hover.js with the following code:</p>
<pre><code>$(function() {
// OPACITY OF BUTTON SET TO 50%
$(".imgopacity").css("opacity","0.5");
//... | jquery javascript | [5, 3] |
5,830,711 | 5,830,712 | jQuery / PHP mix up | <p>I have the following jQuery function in my PHP:</p>
<pre><code>echo '
function myFunction() {
return $.ajax({
type: "POST",
url: "mypage.php",
data: "name=John&location=Boston"
});
}
$.when(myFunction()).then(function(data) {
// handle data return
someOtherFunction(da... | php jquery | [2, 5] |
1,627,035 | 1,627,036 | Why parent element is undefined in Firefox only when onerror event of IMG tag is called? | <p>I am trying to unhide a DIV element if my extension in Firefox is not installed. </p>
<p>For this purpose i am using the following technique.</p>
<p>This doesn't work in Firefox. it says</p>
<p><strong>ExtensionNeeded is undefined.</strong> </p>
<p>I get the alert though. Please have a look at my code.</p>
<pre... | javascript asp.net | [3, 9] |
2,547,977 | 2,547,978 | How is the "jQuery" var a function and an object? | <p>For example, when you use <code>jQuery('someDiv');</code>, it's a function, but you can also use <code>jQuery.ajax(...);</code>.</p>
<p>How is it possible?</p>
| javascript jquery | [3, 5] |
5,000,040 | 5,000,041 | Asp.net webparts or portlet like functionality | <p>What is the best way to let other parties use your website as their own content using their own style ?</p>
<p>We have build a small website for a customer, asp.net, .net framework 3.0. Now the customer wants other parties to be aple to use our website in their own websites while maintaining the styling of the cost... | c# asp.net | [0, 9] |
3,295,213 | 3,295,214 | jQuery focus not working with the plugin chosen | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8281627/jquery-chosen-focus-on-page-load-onload">Jquery Chosen focus on page load (onLoad?)</a> </p>
</blockquote>
<p>i am using a jQuery plugin chosen (http://harvesthq.github.com/chosen/) to create more useful... | javascript jquery | [3, 5] |
5,233,820 | 5,233,821 | Find exact value with jquery or javascript? | <p>I have a table that has a hidden column that contains ids. I use the value in this column and send it to the server so I can grab the correct record.</p>
<p>I am not using datatables.net and I allow the user to update the row. So they click on an edit button and a dialog pops up and they edit it. Once they hit upda... | javascript jquery | [3, 5] |
4,294,522 | 4,294,523 | How does browser read the JavaScripts, which should come first (set on the top):event? function? or sub function | <p>A simple question.</p>
<p>I have a web project includes multi JavaScripts.</p>
<p>JS:</p>
<pre><code>// (1) Event
$('.input').keyup(function()
{
keyUpFunction();
});
// (2) Function
function keyUpFunction(){ ... }
</code></pre>
<p>(1),(2) which should come first in one javascript file? If the browser... | javascript jquery | [3, 5] |
595,538 | 595,539 | Can someone point me towards a practice C# / ASP.net website | <p>I'm looking for a C# / ASP.net website that I can download the source code and practice on, ideally it will come with documentation and hopefully some "bugs" or feature requests to try fixing. </p>
<p>Dose anyone know where to find such a website?</p>
| c# asp.net | [0, 9] |
5,270,185 | 5,270,186 | How to display an alert if none of the case statements match? | <p>I have a case statement below where it checks for a file type in a file input which works correctly:</p>
<pre><code>function imageValidation(imageuploadform) {
var val = $(imageuploadform).find(".fileImage").val();
switch(val.substring(val.lastIndexOf('.') + 1).toLowerCase()){
case 'gif':
ca... | javascript jquery | [3, 5] |
3,236,357 | 3,236,358 | c# for loop error in code | <p>I have the following code in c# and I am getting compilation error. Can anyone please help me?</p>
<p><strong>Update</strong></p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDir... | c# asp.net | [0, 9] |
5,295,756 | 5,295,757 | urlConnection.getInputStream() throwing EOFException | <p>I am executing the following code and always get an EOFException in urlConnection.getInputStream(). I know that the webserver is not returning proper headers, but if I use the same url in a web browser I get the expected content back.</p>
<pre><code>URL url1;
try
{
url1 = new URL("http://63.255.173.242/get_pub... | java android | [1, 4] |
1,326,388 | 1,326,389 | extend 2 classes problem android | <p>i'm a junior programmer. I have a base class that extends activity, i use this class to set up the menu in my app. All my activity classes extends this base class. Now, i have a new class which extend ExpandableListActivity this class's purpose is to show an expandable list and of course when the user is viewing thi... | java android | [1, 4] |
5,891,613 | 5,891,614 | Multi-line list view populated with arrays? | <p>I have three arrays and I want to populate list view with them, till now I managed to populate list view with one array and array adapter, but now I need to put all three arrays in every item of list view.
Simple code would help lots.
Thank you in advance.</p>
| java android | [1, 4] |
1,948,871 | 1,948,872 | how to remove a method with a callback or otherwise | <p>I have the following code that animates an object with a delay of 800 ms:</p>
<pre><code>$('#navMenu').mousemove(function (e) {
thisX = e.pageX
if (thisX >= 1625) {
$('#prbBtnHolder').animate({ left: '-=150' }, 300).delay(800);
}
});
</code></pre>
<p>If the <code>#prbBtnHold... | javascript jquery | [3, 5] |
4,231,956 | 4,231,957 | how to bring drag and drop operations for controls in runtime? | <p>For example i've developed a website which contains some controls like button,treeview,etc....Then how can i drag and drop those controls....while running that application....</p>
| c# asp.net | [0, 9] |
2,076,110 | 2,076,111 | Set checkbox value from database in C# asp.net | <p>I have 8 <code>checkboxes</code>.<br/>
On the <code>page load</code> event I want to write the code such that<br/>
if the <code>value</code> in the <code>database</code> is <code>"Submitted"</code> the <code>checkbox</code> will appear <code>checked</code>.<br/>
If the <code>value</code> is <code>"Not Submitted"</c... | c# asp.net | [0, 9] |
236,946 | 236,947 | Toggle in javascript - Div toggle possibility | <p>What i want is that making an div toggle. Visible it or not.</p>
<p>this is my div</p>
<pre><code><div id="kullanici_ara" style="display:none;">
<form action="kullanicilar.php" method="get">
<label>Aramak istediğiniz kullanıcının adını giriniz</label><br />
<input type="text" name=... | javascript jquery | [3, 5] |
4,912,051 | 4,912,052 | Dynamic select array in PHP | <p>I have a standard form array in PHP like this. I need to account for up to 10 hours of labor in 15 minute increments with 10 as a value for every 15 min or 40 per hour. Is it possible to automate this into some sort of array with PHP instead of hardcoding each of these values? It just seems like there should be a... | php javascript | [2, 3] |
1,623,220 | 1,623,221 | whats wrong with this jquery | <p>I'm getting syntax error in firebug here is the code :</p>
<pre><code>$('#moderator-attention').live('toogle', function(){
function () {
$(".moderator-tex").show();
},
function () {
$(".moderator-tex").hide();
}... | javascript jquery | [3, 5] |
5,074,686 | 5,074,687 | prepend a div and hide it with this object | <pre><code><div id="newsSubmit"><b>Add random snippet</b></div>
<script>
$("#newsSubmit").click(function(){
$("body").append("<div class='lol'>Ok, DELETE this snippet (click here)</div>");
});
$(".lol").click(function(){
$(this).fadeOut();
});
</script>
</... | javascript jquery | [3, 5] |
2,017,049 | 2,017,050 | search words highlight code not working correct | <p>i have used a piece of jQuery to highlight the search results, it works nice but i want to match all single words not the whole phrase that i have entered, if i search for "lorem ipsum dolor" it looks for this matching phrase, but i want that the script highlightes all of the single words and not the whole phrase</p... | javascript jquery | [3, 5] |
1,327,305 | 1,327,306 | How to escape single quote in url query string with asp net | <p>I am building the url in my web application and I am trying to pass a name as a query string, Bob O'Neal, which to my surprise does not seemed to be escaped properly with UrlEncode and there seems to be nothing on the net which talks about how to handle this?</p>
<p>Is there an elegant solution to properly handle e... | c# asp.net | [0, 9] |
6,002,384 | 6,002,385 | Prevent ddl from triggering unsaved changes warning while still executing OnSelectedIndexChanged event | <p>I'm using this jquery code to detect unsaved changes and warn users before they navigate away.</p>
<pre><code> var _changesMade = false;
$(document).ready(function () {
$('form').bind($.browser.msie ? 'propertychange' : 'change', function () {
_changesMade = true;
});
$(... | javascript jquery asp.net | [3, 5, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.