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 |
|---|---|---|---|---|---|
3,489,142 | 3,489,143 | Parse JSON object one item at a time | <p>I am playing around for the first time with android development. I am trying to make a simple currency converter app. The particular piece I am working on is populating a spinner box with all of the available currencies without having to code it all in manually. I have a json file that looks like:<br>
<code>{<br>
... | java android | [1, 4] |
5,035,270 | 5,035,271 | Getting HTML textbox input | <p>I need some help with ASP.NET.</p>
<p>I have an html page that has a form tag with a couple of input tags and I want to do a Post.</p>
<p>Now on the server, I'm implementing IHTTPHandler. I get the response, but i don't see my input data.</p>
<p>How can i get what the user types in into the input tags in the http... | c# asp.net | [0, 9] |
3,443,435 | 3,443,436 | Arrange dates in a sequential order | <p>I am storing the dates that are entered by the user using a <code>DatePicker</code> in a file & reading the contents from the file and showing it into my history page. Please find the image attached </p>
<p>I need to arrange those dates in a proper sequence depending on the entry on the left hand side. Please ... | java android | [1, 4] |
1,124,538 | 1,124,539 | search and replace text in all java files in a package | <p>I am using a few functions in my application which i want to replace with other functions (to make it backward compatible)
My question : is it possible to find & replace some specific text in all java files in a package with some tool, or do i have to do it manually on every java file? I have a LOT of java files... | java android | [1, 4] |
3,076,453 | 3,076,454 | HtmlDivElement has no method 'indexOf' | <p>I am attempting to derive some identifying property from this element:</p>
<pre><code><div class="rtsLevel rtsLevel1">
<ul class="rtsUL">
<li class="rtsLI rtsFirst rtsLast">
<a class="rtsLink rtsSelected" href="#">
<span class="rtsOut">
<span class="rts... | javascript jquery | [3, 5] |
173,743 | 173,744 | Jquery - need help on usage | <p>Is this the right way of using the php script in the jquery function?
The pathToTabImage variable</p>
<pre><code><script type="text/javascript">
$(function(){
$('.slide-out-div').tabSlideOut({
tabHandle: '.handle', //class of the element that will become your tab
... | php jquery | [2, 5] |
756,599 | 756,600 | Not able to download image using HttpURLConnection | <p>I am trying download file <a href="http://images.anandtech.com/doci/5434/X79%20Extreme9Box_575px.jpg" rel="nofollow">http://images.anandtech.com/doci/5434/X79%20Extreme9Box_575px.jpg</a></p>
<p>but not able to download it using HttpUrlConnection, ImageIO.read and even in php using file_get_contents.</p>
<p>I am no... | java php | [1, 2] |
3,768,321 | 3,768,322 | How to create a javascript class or module, I need 2 instances on a page | <p>I am wrapping common javascript functions that will work on elements on a page.</p>
<p>My page has 2 of these elements (textareas), so I will need to create 2 instances and then I want to do this:</p>
<pre><code>var textArea1 = new SomeClass();
var textArea2 = new SomeClass();
textArea1.init("ta1");
textArea2.ini... | javascript jquery | [3, 5] |
4,057,730 | 4,057,731 | Generate repeaters according to user inputs | <p>I have a DataList control on my webpage, the rows of which are populated by ItemTemplate. Each row has a check box, and on button click, I am generating as a string which is actually a <code>sql</code> query text.</p>
<p>Each result returned by the query from the DB has 10 rows which are to be shown in another Data... | c# asp.net | [0, 9] |
4,868,549 | 4,868,550 | A Function to Check if the Mouse is Still Hovering an Element Every 10 Milliseconds (and run a function if it is) | <p>I was wondering if there is a function to be run after an element (e.g. div class="myiv") is hovered and check every X milliseconds if it's still hovered, and if it is, run another function.</p>
<p>EDIT: This did the trick for me:
<a href="http://jsfiddle.net/z8yaB/" rel="nofollow">http://jsfiddle.net/z8yaB/</a></p... | javascript jquery | [3, 5] |
326,226 | 326,227 | How to get "public static final int" value by name? | <p>I created a class to extend KeyEvent:</p>
<pre><code>public class myKeyEvent extends KeyEvent {
public static final int MY_KEYCODE_01 = KeyEvent.KEYCODE_A;
//...
public static final int MY_KEYCODE_30 = KeyEvent.KEYCODE_Z;
}
</code></pre>
<p>Now, i want to get the Integer value by the variable name (eg.... | java android | [1, 4] |
4,914,766 | 4,914,767 | display the images in publishing of website in server? | <p>I am using the following code for saving the images.</p>
<pre><code> if (RadUploadPageImage.UploadedFiles.Count != 0)
{
foreach (UploadedFile file in RadUploadPageImage.UploadedFiles)
{
targetFolder = "/ADDS/";
targetFileName = Path.Combine(targetFolder, file.GetNameWithoutExtension() +... | c# asp.net | [0, 9] |
3,861,077 | 3,861,078 | Adding information into the database | <pre><code> private void AddGroupTasks(){
title1 = tTitle.getText().toString();
detail1 = tDetail.getText().toString();
ArrayList<NameValuePair> b = new ArrayList<NameValuePair>();
Tasks = new ArrayList<String>();
try{
HttpClient httpclient = new DefaultHttpClient();
... | php android | [2, 4] |
4,288,365 | 4,288,366 | How can I detect with JavaScript/jQuery if the user is currently active on the page? | <p>I am needing to detect when a user is inactive (not clicking or typing) on the current page for more than 30 minutes.</p>
<p>I thinking it might be best to use event blubbling attached to the body tag and then just keep resetting a timer for 30 minutes, but I'm not exactly sure how to create this.</p>
<p>I have jQ... | javascript jquery | [3, 5] |
4,105,245 | 4,105,246 | Save WebResponse as txt | <p>I'm looking for a method equivalent to Request.SaveAs in WebResponse. But I can't find it.</p>
<p>I want to store in txt file the headers and the body of a webresponse.</p>
<p>Do you know any technique to achieve it?</p>
| c# asp.net | [0, 9] |
2,728,775 | 2,728,776 | Counting controls on the page | <p>My problem is that, i want to count the controls on a page and then get their types, if there are textboxes, checkboxes or comboboxes, then make them enable or disable? Is there any example on the net? </p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
3,877,964 | 3,877,965 | how can i create a dynamic map that shows our company locations? | <p>I'm searching for a jquery plugin that allows me to create a dynamic world map and mark the countries that we have a branch there in a different color or put a logo of our company on that country.
I need to have access to that map so when a user clicks on a country i can fire a jquery event.</p>
<p>i think Google h... | javascript jquery | [3, 5] |
789,894 | 789,895 | c# update current time,days,date | <pre><code>protected void Page_Load(object sender, EventArgs e)
{
todayDate.Text=DateTime.Now.toString();
}
</code></pre>
<p>Output</p>
<blockquote>
<p>10:28AM 9/28/2011</p>
</blockquote>
<p>the current time is never update, the result is static, how do i set a interval in c# in order to update current time?</... | c# asp.net | [0, 9] |
989,622 | 989,623 | Jquery / Javascript find first visible element after scroll | <p>I have code like below:</p>
<pre><code><div id="container">
<div class="item" id="1">blah blah</div>
<div class="item" id="2">blah blah 2</div>
</div>
</code></pre>
<p>But actually there are lots and lots of with class='item'. </p>
<p>Basically as the user scrolls this great ... | javascript jquery | [3, 5] |
86,164 | 86,165 | add confirm message to the links | <p>I am trying to write a javascipt that will search for all the tags in the page and add to them an onclick event to show a confirm message before processing when clicking on the link.</p>
<p>Can someone help me please, it is ok if it works with jquery.</p>
<p>Thank you.</p>
| javascript jquery | [3, 5] |
3,561,461 | 3,561,462 | how to read twice a file using fileupload | <p>I am trying to read the same file twice.</p>
<p>I have been using a <code>FileUpload</code> to look up the file. I was successful in the first read where I find out how many lines the file have, using the next code in C# ans asp.net:</p>
<pre><code>Stream data_file;
data_file=FileUpload1.PostedFile.InputStream;
st... | c# asp.net | [0, 9] |
732,317 | 732,318 | Execute an external EXE with C#.NET | <p>I am executing a process in C# but I want to be able to do it without specifying the path. Where can I place the executable within the project so that the code finds it wuthout specifying a path?</p>
<p>At the moment I have:</p>
<pre><code> ProcessStartInfo psi = new ProcessStartInfo();
psi.FileNam... | c# asp.net | [0, 9] |
8,422 | 8,423 | Password TextBox in Registration form has some value on Page Load | <p>I am creating a Registration form and following is the design code of Password and Confirm password field </p>
<pre><code><tr>
<td class="style14">
<asp:Label ID="lblPass" runat="server" Text="Password"></asp:Label>
<asp:TextBox ID="txtPass" runat="server" Width="150p... | c# asp.net | [0, 9] |
1,977,391 | 1,977,392 | jquery uniform select and deselect all checkbox | <p>I have problem with select all / deselect checkbox </p>
<p><strong>Code Here</strong></p>
<pre><code><input type="checkbox" value="" onclick="checkedAll();" name="checkall" id="checkall"/>
function checkedAll() {
$('.all span').click(function () {
if(document.getElementById("checkall").checke... | javascript jquery | [3, 5] |
4,673,742 | 4,673,743 | Web site project login against seperate database | <p>Howdy,
I use the Visual Studio 2010 - and I'd like to create a ASP.NET Website - however I would like to check the login against a seperate database and not the .mdf file because I need a bit more flexibility and the access to the remaining items in my database.</p>
<p>Does anyone of you have a good solution how I ... | c# asp.net | [0, 9] |
4,936,035 | 4,936,036 | How do I process only checked rows in table? | <p>Assuming I have the following table:</p>
<pre><code><table>
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>A1</td>
<td>&... | javascript jquery | [3, 5] |
1,351,921 | 1,351,922 | random GridView with Images | <p>I want to create a DayDream for my App and i want a Wall of images but i dont know how to randomize the images.</p>
<p>I want that some images are (2 times) bigger than other images and the other images are around them, all random. Is there a simple way to do this?
The Images are saved dynamically in a ArrayList of... | java android | [1, 4] |
5,608,273 | 5,608,274 | reading external server file in jquery and php | <p>i need to load an external html page in my codes </p>
<pre><code>$(document).ready(function(){$("#check").load("http://www.mysite.com/names.html")});
</code></pre>
<p>and i need my script reads this external html page </p>
<p>is it possible to do such a thing in <strong>jquery or even in php ?!</strong></p>
<p... | php jquery | [2, 5] |
402,580 | 402,581 | Showing toast before an intesive work of processor | <p>I need to show a Toast message before a method using an intense processor work. The problem is that the Toast only shows after this method, even calling this method in another Thread.</p>
<p>How can i show the Toast before ?</p>
<p>EDIT: The code is too long for showing here ... but i will resume it ... </p>
<p>.... | java android | [1, 4] |
1,345,073 | 1,345,074 | validation of input data in php - javascript | <p>I want to validate the data that the user enters in a form. I have only a username and two fields for the password. My first question is that I check the data with javascript and it works fine, but i want to check the data with php too incase javascript is not working. In case the javascript is not working the data ... | php javascript | [2, 3] |
726,925 | 726,926 | javascript/jquery convert utc to local time in short format | <p>So I'm trying to convert a UTC time to the clients local time in short format. I am using the following code:</p>
<pre><code>var date = new Date(call.Timestamp);
date.toLocaleString()
</code></pre>
<p>And I get the output like this on the screen:</p>
<blockquote>
<p>Thu Sep 13 2012 14:33:15 GMT+1000 (AUS Easter... | javascript jquery | [3, 5] |
3,628,501 | 3,628,502 | creating android apps | <p>Im a C# developer (sarted a few months ago) and I always been an android fanatic. Now, I know that android apps are developed in java. Since java and c# are quite similar, Im wondering if I can develop android apps using c#, or do I have to learn java?</p>
| c# android | [0, 4] |
3,901,075 | 3,901,076 | How to round decimal numbers in Android | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4796746/double-value-to-round-up-in-java">Double value to round up in Java</a> </p>
</blockquote>
<p>I am getting float number as input and I want it to round to 2 digits after decimal point.
i.e. for example if... | java android | [1, 4] |
5,073,460 | 5,073,461 | Get image from external server | <p>We are storing our images at Amazon S3. Let's say the location is <a href="http://media.sitename.com/folder1/image1.jpg" rel="nofollow">http://media.sitename.com/folder1/image1.jpg</a>.</p>
<p>I want to copy this file and store it in our server. Is it possible to do this using C#. I am using asp.net 4.0.</p>
<p>Pl... | c# asp.net | [0, 9] |
4,454,804 | 4,454,805 | jQuery addClass() to element generated after append() | <p>I am trying to add a class to a newly appended DIV without using something like:</p>
<pre><code>t.y.append('<div class="lol'+i+'"></div>');
</code></pre>
<p>Here's a better example of what I'm trying to do:</p>
<pre><code>var t = this;
$(this.x).each(function(i, obj) {
//append new div and add cl... | javascript jquery | [3, 5] |
5,210,273 | 5,210,274 | Track when a download file dialog appears | <p>I have some links that when the user clicks one, it links to a php script which runs some stored procedures to generate data and then calls another script to download the data as an excel spreadsheet. This all works fine.</p>
<p>What I'd like to do is have a loader gif appear beside the link that was clicked click... | php javascript jquery | [2, 3, 5] |
2,733,149 | 2,733,150 | jQuery swap div on hover with delay | <p>I'm trying to create two "buttons" that using the hover event, hide some divs and then display some others in their place. I'm then trying to delay the swapping back to the default div. </p>
<p>All works, fine, unless you go from one button to the other at which point you get many divs displaying at the same time u... | javascript jquery | [3, 5] |
2,367,767 | 2,367,768 | How to assign a dynamic textbox value to a label control | <p>dropdown event code..... </p>
<pre><code> foreach (var res in result)
{
count = +1;
Table tbl = new Table();
TableRow row = new TableRow();
TableCell cell = new TableCell();
TableCell cells = new TableCell();
TextBox tx = new Tex... | c# asp.net | [0, 9] |
2,960,579 | 2,960,580 | How can I add files to java app in android so I can get it path? | <p>I want to add files to java app in android so I'll know their path and can access them.
How can I do it? (It doesn't matter where they will be the most important is that I can access them and I'll know the relative path of the them)</p>
| java android | [1, 4] |
4,913,574 | 4,913,575 | ASP:Imagebutton fail to post back in gridview | <pre><code> <asp:GridView ID="gv1" runat="server" Width="100%" DataSourceID="ods1" AutoGenerateColumns="false"
DataKeyNames="FileID" HeaderStyle-Height="20px">
<Columns>
<asp:TemplateField ItemStyle-Width="25px" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
... | c# asp.net | [0, 9] |
3,237,844 | 3,237,845 | Get inputs value and separated by "|" | <p>I have inputs and I need to get values and separated by <code>"|"</code> symbol.</p>
<p>My input:</p>
<p><img src="http://i.stack.imgur.com/BVsDV.png" alt="enter image description here"></p>
<p>Output what I need:</p>
<p><strong>00:00|00:00|00:00</strong></p>
<p>My code is :</p>
<p>(and it's not working)</p>
... | javascript jquery | [3, 5] |
5,945,876 | 5,945,877 | In jQuery how can I get the next selector in a nested loop? | <p>I have the following structure:</p>
<pre><code><div class="foo">
<div class="moo">
<div class="too"> <input type="hidden" val="56"/></div>
</div>
</div>
<div class="foo">
<div class="moo">
<div class="too"> &l... | javascript jquery | [3, 5] |
3,638,152 | 3,638,153 | export gridview data to pdf | <p>its throwing error like document has no pages.</p>
<p>i have written code like this.</p>
<pre><code>protected void Button4_Click(object sender, EventArgs e)
{
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition","attachment;filename=GridViewExport.pdf");
Response.Cache.Set... | c# asp.net | [0, 9] |
3,193,107 | 3,193,108 | Array exists in an array of arrays | <p>How can I check if an array exists in an array of arrays ? I have tried either plain javascript and jquery methods but none seems to help.</p>
<p>IE this doesn't work:</p>
<pre><code>$.inArray( [1,2], [[0], [], [1,2]] )
</code></pre>
<p>Even a more simple one:</p>
<pre><code>[1,2] == [1,2] //gives false.
[1,2] =... | javascript jquery | [3, 5] |
1,697,830 | 1,697,831 | how to monitor clicks of child site (added by using iframe) from parent | <p>I have a website called A i want to display another website called myFrame through A using iframe i want to count all the clicks in myFrame and want to display in my website A.myFrame site is in different domain.I did the following code but its not working </p>
<pre><code><html>
<body>
Count: <span ... | javascript jquery | [3, 5] |
4,834,438 | 4,834,439 | Common property with all jQuery objects | <p>I want create a property inside my object with all jQuery objects wich it will use. I novice at JavaScript and that's why I want an advice. Can I do this in such manner?</p>
<pre><code>var myVar = {
init: function() {
//...
this.obj = {
id1: $('#id1'),
id2: $('#id2'),
... | javascript jquery | [3, 5] |
4,583,975 | 4,583,976 | Jquery using css function | <p>So im just playing around with my jquery and got stuck with quite odd problem. so i'm getting width of div like this</p>
<pre><code>block_width = $(".grid_block").css("width");
</code></pre>
<p>Now i would like to do something with that width let's say</p>
<pre><code>container_width = block_width * 21;
</code></p... | javascript jquery | [3, 5] |
2,598,176 | 2,598,177 | How to set the priority of events in a buttonclick? | <p>Here I need to call a javascript function first and after some time I need to call a c# function on the same button click event. Is it possible?</p>
<pre><code> <asp:ImageButton ID="imgBTNExportPPT" runat="server" Width="15" Height="15" border="0"
OnClientClick="JavaScript:exportCharts('JPG');" OnClick="imgBTN... | c# javascript asp.net | [0, 3, 9] |
4,285,632 | 4,285,633 | how to attach a show method? | <p>Sorry if the title is a little vague, Im currently learning jQuery and would like to fade a content div in and out on hover whilst displaying a read more link when hovered and hiding it when unhovered. I can get the div to fade and the read more link to display although at the moment the read more link is inheriting... | javascript jquery | [3, 5] |
1,370,678 | 1,370,679 | Converting simple Javascript to jQuery | <p>I have this:</p>
<pre><code><script type="text/javascript">
window.onresize = fontResize;
function fontResize() {
document.body.style.fontSize = parseInt(document.documentElement.clientWidth/100) + 'px';
}
</script>
</code></pre>
<p>Could someone have a crack at converting this to j... | javascript jquery | [3, 5] |
3,798,149 | 3,798,150 | Getting text before element | <p>How could I get the text of the body that is before a specific element using Javascript/jQuery?
What I want to achieve is finding out the position of an element respect of the body, for instance, if the body text is 100 characters long and the text before the node is 50, that node would be at 50%.
Getting body's len... | javascript jquery | [3, 5] |
5,592,661 | 5,592,662 | How to maintain JavaScript function variable states (values) between calls? | <p>I am looking for getters and setters functionality but cannot rely on <code>__defineGetter__</code> and <code>__defineSetter__</code> yet. So how does one maintain a function variable's value between function calls?</p>
<p>I tried the obvious, but myvar is always undefined at the start of the function:</p>
<pre><... | javascript jquery | [3, 5] |
5,061,414 | 5,061,415 | function(¶m) - like in PHP | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3877675/javascript-pass-variables-through-reference">JavaScript Pass Variables Through Reference</a> </p>
</blockquote>
<p>How can you do something like this in javascript?</p>
<p>In PHP you can put a <code>&am... | javascript jquery | [3, 5] |
1,346,461 | 1,346,462 | Jquery post, response in new window | <p>I have a script that on.DocumentReady posts data to another page. That page responds with some HTML encapsulated in one div tag.</p>
<p>My goal is to have this post response/data open in a new window.</p>
<p>Any hints or clues? </p>
<p>Here is the snippet I created from Dr. Mille's advice.</p>
<pre><code> <sc... | javascript jquery | [3, 5] |
2,139,698 | 2,139,699 | How to load the loading image using jquery when particular controls gets loaded by web service? | <p>I have check box list which is loaded through web service when one radio button list checked is change in client side.</p>
<p>I'm using asp.net and C# code behind.</p>
<p>my code is </p>
<pre><code>function BindCheckbox(strFlagName) {
debugger;
var tripTime = fc("rbtnTripTime_0").checked == true ? fc("rbtnTripTim... | javascript jquery | [3, 5] |
3,756,920 | 3,756,921 | How much of a transition is programming Java to iPhone apps? | <p>I'm a highly skilled Java dev contemplating learning iPhone development. Mac only dev aspects aside, how much of a leap would learning the mobile application stack be? Sure I understand that its closer to C in how one should approach it, and with that comes memory management and so on. </p>
<p>My queries would also... | java iphone | [1, 8] |
5,200,362 | 5,200,363 | javascript for radio button list | <p>i have an Radiobutton with (6 items under it). and i have an search button. if user clicks Search button it gets all the result. i am binding the items for Radiobuttonlist using database in .cs file</p>
<p>condition 1: now if user as selected Radiobutton1 [item1] it gets selected. and now if user again clicks on Ra... | javascript jquery | [3, 5] |
1,849,466 | 1,849,467 | Data in string - how to get Hours with functions for datatime? | <p>I have:</p>
<pre><code>var datatime = '2012-01-25 07:44:00';
</code></pre>
<p>How can i make object Datatime with this, and get only Hours? In php is option ->format("H"). And here?</p>
| javascript jquery | [3, 5] |
1,886,910 | 1,886,911 | If element is X left then animate another element | <p>Im trying to anuimate an element on my site, but only when that element comes in to view. </p>
<p>To do this im checking to see when my wrapper div is X left, then fire the function. My only problem is nothing is happening, nor showing up on my console. </p>
<p>Ive tried adding an alert to my function to see if it... | javascript jquery | [3, 5] |
4,398,408 | 4,398,409 | How to check if any of the li's are selected or not? | <pre><code><div id='id'>
<ul id='ul'>
<li id='1' class="">a</li>
<li id='2' class="">a</li>
<li id='3' class="">a</li>
<li id='4' class="select">a</li>
<li id='5' class="">a</li>
</ul>
</div>
</code></pre>
<p>How do I know ... | javascript jquery | [3, 5] |
2,870,506 | 2,870,507 | JavaScript infinite up and down element scrolling? | <p>I'm wondering if there is a simple way to make use of JavaScript (probably jQuery too?) in order to make the contents of a fixed-height div element scroll infinitely up and down (top, bottom, top, bottom, etc) when the page loads and <em>without</em> any user input or manipulation?</p>
<p>Thanks ahead of time, any ... | javascript jquery | [3, 5] |
1,231,311 | 1,231,312 | Readability a=b=c or a=c; b=c;? | <p>I have a class which has a group of integers, say</p>
<pre><code>foo()
{
int a;
int b;
int c;
int d;
....
string s;
}
</code></pre>
<p>Now the question is for the best readbility, the init() function for foo(), should it look like</p>
<pre><code>void init()
{
a=b=c=d=1; //for some reason they are in... | c# c++ | [0, 6] |
4,208,974 | 4,208,975 | Identify this item clicked on trigger | <p>I have a menu that is usually clicked by the user. It executes a function</p>
<pre><code>$('.MenuItem').click(function() {
document.writeln($(this).html() + ' was clicked');
});
</code></pre>
<p>I have run into a new requirement where I need to trigger the click of a menu item programmatically. So I tried</p... | javascript jquery | [3, 5] |
1,420,250 | 1,420,251 | accessing speicific array elements with jquery | <p>If my PHP returns a array with 6 elements how would I access each of them specifically in jquery?</p>
<p>For example I want to create:</p>
<p>var itemOne = value of first array element;
var itemTwo = value of second array element;
...</p>
<pre><code>$.get('ajax/employee_menu.php', { job: $('#job').val() },
... | php jquery | [2, 5] |
2,345,382 | 2,345,383 | Encrypt and decrypt | <p>I wrote Decrypt and Encrypt with C# and used it in my project, and right now it works But I am wondering that I have to write Decrypt and Encrypt with JavaScript for Sniff or it is enough?</p>
| c# javascript | [0, 3] |
3,849,835 | 3,849,836 | ASP.NET Controls after postback | <p>I have a web page which consists a few asp:buttons, asp:textbox, gridview and asp:imagebutton.</p>
<p>When the Page loads for the first time, the user insert a number into the textbox, and then presses the button which preform the postback.</p>
<p>My question is that : after the postback in the page_load event I h... | c# asp.net | [0, 9] |
1,881,928 | 1,881,929 | Select previous "this" element | <p>I have a piece of javascript code where i am trying to get to the previous element declared. Currently i have two on click functins within eachother.</p>
<pre><code>$('#formIngredient').on("click", '.newIngredient', function() {
value = $(this).attr('data-name');
$(this).attr('data-isactive', 'true');
... | javascript jquery | [3, 5] |
1,508,796 | 1,508,797 | Moving animation not smooth in android | <p>I am trying to create a moving ball animation in my app everything is working fine, ball moved as i want but it is not smooth. I tried everything to make it smooth but no luck every time i failed. Please help me to solve this!</p>
<p>here is my xml code:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
... | java android | [1, 4] |
5,550,824 | 5,550,825 | Jquery date difference | <p>I have this code for calculating date difference (without weekends) between two input fields, and printing the difference in days in a third text box. The date format is yy-mm-dd (because of mysql).</p>
<pre><code><script type="text/javascript">
$("#vazi_od, #vazi_do").change(function() {
var... | javascript jquery | [3, 5] |
1,839,345 | 1,839,346 | How does one get a C++ library loaded into Python as a shared object file (.so)? | <p>I'm a Python guy building a Linux-based web service for a client who wants me to interface with a small C++ library that they're currently using with a bunch of Windows based VB applications.</p>
<p>They have assured me that the library is fairly simple (as far as they go I guess), and that they just need to know h... | c++ python | [6, 7] |
1,039,229 | 1,039,230 | Setting aspx table's visibility to true fails | <p>I'm puzzled here. I have a webform with 3 tables in it. I want to show/hide them according to certain conditions. It all works fine except in one situation.</p>
<p>this is what I have:</p>
<pre><code><asp:UpdatePanel ID="upGeneral" runat="server" >
<ContentTemplate>
<table id="tab1" run... | c# asp.net | [0, 9] |
461,728 | 461,729 | Sort date from string without using any of "Date" functions from jQuery or Javascript | <p>How can I sort by date from string <strong>without using any of jQuery "Date" functions or methods?</strong></p>
<p>Lets say that I have something like this:</p>
<pre><code><ul>
<li class="article"><a href="#" class="">15/02/1966</a></li>
<li class="article"><a href="... | javascript jquery | [3, 5] |
3,280,812 | 3,280,813 | Setting a textbox value by JQuery | <p>I am setting a <code>TextBox</code> controls value via an ajax post.</p>
<pre><code>$('#txtSite').val(msg.d.SiteName);
</code></pre>
<p>This is working and the value of the <code>TextBox</code> is altered correctly. But, when I come to posting the information to the database, the <code>txtSite.Text</code> value i... | jquery asp.net | [5, 9] |
3,296,699 | 3,296,700 | How to find element value in jQuery | <p>I am trying to get all class call <strong>Position</strong> $(".Position") and get then find the value that == 4 and then show the id.</p>
<pre><code><input type="Text" id="#34" value="1" class="Position">
<input type="Text" id="#22" value="2" class="Position">
<input type="Text" id="#37" value="3" c... | javascript jquery | [3, 5] |
196,840 | 196,841 | How to check if a variable is set in Javascript? | <p>I have this object/array thing:</p>
<pre><code>var states = {};
states["CA"] = new State("CA", "California");
states["AR"] = new State("AR", "Arizona");
....
</code></pre>
<p>How can I check if <code>states["AL"]</code> has been set or not? Will the following work (in all browsers)?</p>
<pre><code>if (states["AL... | javascript jquery | [3, 5] |
1,077,292 | 1,077,293 | What is the best way to begin with jQuery? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/168802/where-can-i-find-a-tutorial-to-get-started-learning-jquery">Where can I find a tutorial to get started learning jQuery?</a> </p>
</blockquote>
<p>Considering I am new to jQuery technology, what is the bes... | javascript jquery | [3, 5] |
4,903,722 | 4,903,723 | pass range of dates on selecting two dates | <p>I have a Jquery Datepicker where i need to select a date range, like the start date and end date.
Currently I am passing (individual) selected date on a click of a button. I need some understanding how can i pass the date range. </p>
<p><strong>Jquery Calender (Datepicker)</strong></p>
<pre><code>function showSel... | javascript jquery | [3, 5] |
3,897,028 | 3,897,029 | Android - php string encoding | <p>i am doing a project in android. i am a begineer in android also. in my android application i am using php as my webservice provider. in my php code for the authentication i am check the user vaidity and return string 1 or 0. In android application i am get the string. but when i check it in a if condition it fails.... | php android | [2, 4] |
5,844,009 | 5,844,010 | Programatically Setting Page Setup Options in Excel | <p>I have a ASP.NET Web App which is copying a Report to an Excel Sheet by creating an HTML table and copying the contents.
I want to fit the excel report into 1 page before firing the print option. This needs to be done programatically while I'm generating the Excel workbook.
Please provide a solution to this asap.</... | c# asp.net | [0, 9] |
3,706,711 | 3,706,712 | Include jar in aspx or html | <p>Is it possible to include a JAR file in an aspx page . If so how do i go about this ???
Thanks in Advance</p>
| java asp.net | [1, 9] |
3,710,773 | 3,710,774 | how to check if Receiver is registered in android | <p>I need to check if my registered receiver is still registered if not how do i check it any methods?</p>
| java android | [1, 4] |
1,370,753 | 1,370,754 | How to call ASP.NET .dll file from a PHP script? | <p>Do you know how can I call an ASP.NET .dll file from a PHP script?<br>
Thanks!</p>
| php asp.net | [2, 9] |
1,579,997 | 1,579,998 | How TO make Reusable code at PHP - Related With including jQuery core | <p>Excuse me, What is best way to include jQuery to web application? Since, my application including another php file, and another file including another file.
I need a function which will put jQuery code after <code><head></code> tag and before <code></head></code> tag, and if there is another page has bee... | php jquery | [2, 5] |
5,910,657 | 5,910,658 | Long running operation on website | <p>What if I have website with a button. User clicks on the button and starts a long running process. After a few hours (or minutes) user update webpage and see results. What is the best (and any other) way to implement long running operation on website?</p>
| c# asp.net | [0, 9] |
5,889,424 | 5,889,425 | How to adjust the hue of a color code? | <p>Maybe someone know of a way in Java (Android) to apply HUE to a color code?</p>
<p>For example if I have #1589FF and apply 180 HUE, I should get #FF8B14.</p>
| java android | [1, 4] |
1,760,716 | 1,760,717 | How can I pass data from one view to another in android? | <p>I have two views named: <code>first_view</code> and <code>second_view</code>.</p>
<p>The first view consists of a button and an editable text view. The second view consists of a single text view.</p>
<p>In my first view, I want to put a number in the datable text view. As I click the button, it should display the ... | java android | [1, 4] |
3,278,845 | 3,278,846 | How to get value from dataTable of gridview? | <p>I have a girdivew and a SQLDataSource to bind the dataTable information to gridview.</p>
<p>How can I get the value of a certain column for the current editing row in the Row UPDATING EVENT. ( From dataTable ) .</p>
<p>Thank you ,</p>
| c# asp.net | [0, 9] |
1,249,923 | 1,249,924 | get value based on index dropdown | <p>I need to select a value from dropdown based on index. It is a super easy question. cannot find the property:</p>
<p>I though doing something like: </p>
<pre><code>dll.Items[index]
</code></pre>
<p>But still do not know how to get value for this index.</p>
| c# asp.net | [0, 9] |
734,811 | 734,812 | How to pass multiple checkboxes to PHP through JQUERY | <p>I HAVE modified my code, i used firebug console.log to detect weather the the php gets the array passed or not. and firebug displays this - rescheck[]=2&rescheck=1&rescheck=3</p>
<p>I think php gets the array if THATS what an array in php supposed to be like.</p>
<p>SO guys, if thats correct how to insert... | php jquery | [2, 5] |
2,178,637 | 2,178,638 | Creating my own callbacks | <p>I have a page with some jQuery, and a separate non-jQuery function.</p>
<p>Currently my function runs on $(document).ready, but I want to call a jQuery function as soon as my function is finished. I can pass my function as a callback to any jQuery function, but how can I set things up the other way round?</p>
<p>S... | javascript jquery | [3, 5] |
2,735,385 | 2,735,386 | Get results from php script via jquery load() function before php script finishes | <p>I have the following situation:</p>
<p><b>jquery:</b></p>
<pre><code> $(function(){
$('input[type="button"]').click(function(){
$('#result').load('script.php');
});
});
</code></pre>
<p><strong>script.php:</strong></p>
<pre><code><?php
echo "1";
sleep(2);
echo "2";
sleep(... | php javascript jquery | [2, 3, 5] |
737,580 | 737,581 | Why is the null coalescing operator breaking my string assignment in c#? | <p>I'm creating a query string in a web form, and I'm dealing with values from the parameters that might be null. There are lots of ways to check and fix these, but the most elegant one I found is the following:</p>
<pre><code>string pass;
pass = "BillabilityDetail.aspx?_startDate=" + _startDate.Text + "&_endDate=... | c# asp.net | [0, 9] |
3,639,722 | 3,639,723 | Confirmation dialog at runtime in asp.net | <p>I have a simple content management system that stores pages by Pagename and Version. After clicking on Save, my code (server side) checks for the existence of Pagename/Version. </p>
<p>If it exists I would like to display a confirmation dialog box, which asks the user to confirm whether or not the current Pagename/... | c# asp.net javascript | [0, 9, 3] |
4,622,718 | 4,622,719 | Getting some experience with asp.net | <p>Hi I recently learned asp.net webforms and looking to get some experience under my belt using it.I found a website that provided some exercises here:</p>
<p><a href="http://www.wiseowl.co.uk/free-exercises/asp.net-4.0-c-sharp.htm" rel="nofollow">asp.net exercises</a></p>
<p>There weren't that many and I managed t... | c# asp.net | [0, 9] |
3,052,267 | 3,052,268 | Onclick validate edittext if user enters an int with a string | <p>I have in my application an EditText which validates that the user cannot enter a integer when the user clicks a button. </p>
<p>This is done by an if statement on a condition where word is a String: </p>
<p>(word.matches("[0-9]*")</p>
<p>How can I change this if a user enters a word with a string as well. </p>
... | java android | [1, 4] |
2,277,042 | 2,277,043 | jQuery slide changing with index and fadeout -- jumpiness | <p>I am working on a jQuery slideshow plugin. One of my methods involves switching back and forth between pictures. I have been pretty successful in creating it, here is an isolated case with the code thus far for the particular method:</p>
<pre><code>var images = $("#simpleslides").children("img");
$(".slideButton... | javascript jquery | [3, 5] |
3,362,145 | 3,362,146 | How to select a tree view node in asp.net | <p>I have the the following code sample</p>
<pre><code> private TreeNode AddNode(TreeNode node, string key)
{
var child = node.ChildNodes.Cast<TreeNode>().FirstOrDefault(_ => _.Value == key);
if (child != null)
return child;
child = new TreeNode(key, key);
child... | c# asp.net | [0, 9] |
1,138,490 | 1,138,491 | how do i put $_FILES content into binary var in php? | <p>i have a unity c# program which is uploading a binary file (with some data).
(which is kind of irrelvant but maybe not)</p>
<pre><code>var form = new WWWForm();
form.AddField("docid", "A");
byte[] textarr = Encoding.ASCII.GetBytes("just a sample text to be compressed and sent to server");
form.AddBin... | c# php | [0, 2] |
3,972,429 | 3,972,430 | fix System.NullReferenceException in C# | <p>i m developing a website and stuck with System.NullReferenceException .
on the master page I m using this code </p>
<pre><code>if (Request.Url.ToString().ToLower().Contains("content.aspx"))
{
if (Request.Params["ModuleID"].ToString() == null)
{
Response.Redirect("Content.aspx?ModuleID=1");
}
}
... | c# asp.net | [0, 9] |
5,606,873 | 5,606,874 | FindControl inside Repeater | <p>I am trying to find a Label inside a Repeater, I am using:</p>
<pre><code> protected void lnkbtnEditRecord_Click(object sender, EventArgs e)
{
salesEditPanel.Visible = true;
resultPanel.Visible = false;
zipPanel.Visible = false;
ddlPanel.Visible = false;
topPanel.Visib... | c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.