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 |
|---|---|---|---|---|---|
194,801 | 194,802 | jQuery ajax and append - content too large? | <p>I am writing an ajax search page that contains a search box and "tabs"; the idea is that a user enters a query, changes the tab, the query is submitted with new options, and results loaded below.</p>
<p>I am having a weird issue where the length(?) of the data ('content') returned seems to stop me running any extra... | php javascript jquery | [2, 3, 5] |
3,162,877 | 3,162,878 | Stopping and resuming timer in jQuery | <p>I've got two solutions. The first of them using the method <code>animate</code>:</p>
<p><a href="http://jsfiddle.net/g9aK8/3/" rel="nofollow">http://jsfiddle.net/g9aK8/3/</a></p>
<p>The problem is with a delay, when we pause timer for example on 400px and resume then we have to wait again all delay (the speed of b... | javascript jquery | [3, 5] |
358,558 | 358,559 | How can I create a progress bar with percentage? | <p>I want to create a progress bar with jquery or javascript that finds the percentage while loading the javascript. All the images are loaded in the javascript, they use the jquery append tag and so I want to load all these images with a screen that is shown with a loading bar based on percentage of how much of the da... | javascript jquery | [3, 5] |
3,290,231 | 3,290,232 | javascript object help | <p>I'm following a tutorial on how to make a javascript game, but i'm stuck on the return part. Why are is there { }, and what is the init: init for? Any help would be appreciated. Thanks.</p>
<pre><code>var JS_SNAKE = {};
JS_SNAKE.game = (function () {
var ctx;
var xPosition = 0;
var yPosition = 0;
var frame... | javascript jquery | [3, 5] |
3,176,295 | 3,176,296 | create list of tuple (long integer) | <p>Can we create a list of tuple of long integer. I have gone through which says that Python type is variable. Is it Possible in Python.</p>
<p>Reason. C++ code has migrated from 32 bit to 64 bit machine and long size become 8 in 64 bit machine but Python is still in 32 bit machine.</p>
<p>First I put lot off effort ... | c++ python | [6, 7] |
752,810 | 752,811 | Use jQuery to attribute selector to select all IDs and run a function | <p>I want to get all the IDs that start with blblblb_ and run a separate JS function that I made. Here is what I have, it is only getting the first ID:</p>
<pre><code>$(window).scroll(function() {
var test = $('div[id^="blblblb_"]').attr('id');
foo(test);
});
</code></pre>
<p>Any ideas what I'm doing wrong?</p>
| javascript jquery | [3, 5] |
1,097,307 | 1,097,308 | Edit history like Stackoverflow itself | <p>I am trying to implement the Editing History functionality like this website itself which shows the initial post and how the edits were made. </p>
<p>Is there any specific name for this functionality and any source code available for it? </p>
| c# asp.net | [0, 9] |
213,734 | 213,735 | call functions from JQuery - better way | <p>I want to call a JQuery function on window resize and also during the initial load. I just tried this, I am sure there is a better way, Please explain this learner,</p>
<pre><code>$(document).ready(function () {
$(function () {
var doosomething = function () {
$('#bottomDiv').css('top', $(window).h... | javascript jquery | [3, 5] |
4,837,266 | 4,837,267 | Combining string and object as a jQuery selector | <p>I'm having a hard time finding the solution for this for some reason -- perhaps it's right under my nose.</p>
<p>But is there a way to essentially combine a string and an object so I'm not repeating the same method on a certain event?</p>
<pre><code>$j(window).resize(function(){
//stuff here
});
$j('body').resi... | javascript jquery | [3, 5] |
3,668,372 | 3,668,373 | Why is the boolean variable always resetting to false; | <p>I have a boolean variable declared at the top of a class and when a radio button is selected on a page, the variable gets set to true, but when the page is reloaded, the variable gets reset back to false. One way I have handled this was by using the static keyword, but I am not sure if this is the best way to handl... | c# asp.net | [0, 9] |
527,091 | 527,092 | jQuery getting element index despite wrapper / parent element? | <p>I have divs with same class, but each 3 are wrapped in a parent div. I can't get the index the way I want it. I am sorry, could anyone help me to get the index as number from 0 to 8.. when i click on any element? despite the parent element.</p>
<p>Here is my full code for your testing.</p>
<pre><code><div class... | javascript jquery | [3, 5] |
5,389,191 | 5,389,192 | Could not get the updated value of textbox once the page is redirected | <p>I am building a web application in c# and asp.net.I am trying to access the value of textbox and generate a preview in next page with the content of textbox in the page1.When I am generating the preview for first time it works well,but the next time when I change the content of the textbox the value of textbox.Text ... | c# asp.net | [0, 9] |
1,907,571 | 1,907,572 | Android reading file from memory card limits to 10kb on samsung phones | <p>I'm trying to read contents from a file stored on the sdcard on an android phone. For this I use the following code:</p>
<pre><code>public String readIt(File file) {
StringBuffer sb = new StringBuffer();
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file)... | java android | [1, 4] |
3,948,509 | 3,948,510 | How to do skip and take functions in javascript for Json array | <p>I want to do that in javascript:</p>
<pre><code> for (int i = 0; i <= pieces; i++)
{
List<product> piecesProuducts = productList.Skip(i * 2).Take(2).ToList();
}
</code></pre>
<p>I have a json array. I want to get two records block from this json array as above linq code in javascrip... | javascript jquery asp.net | [3, 5, 9] |
4,404,223 | 4,404,224 | How to load other web page in ASP.NET | <p>I want to load some fixed part from other website to my web application.
How to accomplish this?
Thanks.</p>
| c# asp.net | [0, 9] |
2,143,157 | 2,143,158 | Prevent Click Fraud in Advertisement system with PHP and Javascript | <p>I would like to build an Advertising project with PHP, MySQL, and Javascript. I am talking about something like...</p>
<ul>
<li>Google Adsense</li>
<li>BuySellAds.com</li>
<li>Any other advertising platform</li>
</ul>
<p>My question is mainly, what do I need to look out for to prevent people cheating the system a... | php javascript | [2, 3] |
4,781,498 | 4,781,499 | jquery script not working under chrome, safari and partially opera, FF is ok | <p>today I have been asking here for help with this <a href="http://stackoverflow.com/questions/8397096/select-exact-number-of-table-td-after-a-radiobutton-is-checked">script</a>.</p>
<p>It was successfully done – thanks again to RKW.</p>
<p>I've merge the code with my previous one, and everthing seems working well –... | javascript jquery | [3, 5] |
1,482,815 | 1,482,816 | I want to make a web application to sending mail | <p>I want to make web application to my personal use for sending emails to my friends.</p>
<p>I'm using my gmail id to sending mail to other any one have idea how send mail to other using my gmail id i'm using asp.net with c#.</p>
| c# asp.net | [0, 9] |
2,971,690 | 2,971,691 | Remove web content emails and add spam protected content? | <p>I have job crawler website, which crawls list 10,000 of jobs in my website, however i have a issue with some job descriptions has direct email link saying </p>
<p>please email your resume to hr@xxx.com . This results in a spam attacks for them, So i need find a solution where i can hide these emails from the spam b... | php javascript jquery | [2, 3, 5] |
2,053,221 | 2,053,222 | android is my application still running? | <p>i have this thread which run as a service:</p>
<pre><code> public void run() {
try {
while(true) {
Thread.sleep(timeInterval);
results = sendGetMessage();
b.putString("results", results);
receiver.send(2, b);
}
... | java android | [1, 4] |
2,414,755 | 2,414,756 | jQuery get multiple rel values from anchor | <p>Is it possible to get multiple rel values from a single anchor in jQuery or generally in JavaScript without splitting the rel into an array?</p>
<p>For example, in the case of an anchor having two rel attributes delimited by the standard space:</p>
<pre><code><a id='a' class='b' rel='9 9' href='#'>Link</a... | javascript jquery | [3, 5] |
5,625,928 | 5,625,929 | C# Array of objects | <p>I've consumed a web service with two classes "address" and "request." One of the properties of the request object is an array of address objects:</p>
<pre><code>request _req = new request();
_req.addresses = // expecting address[]
</code></pre>
<p>I know I'm doing this wrong (as I keep getting exception errors) s... | c# asp.net | [0, 9] |
5,901,831 | 5,901,832 | 'jQuery' is undefined | <p>I'm trying to use the Fullscreenr Jquery plugin in my asp.net project. Here is the code on my master page:</p>
<pre><code><script src="Fullscreenr/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="Fullscreenr/jquery.fullscreenr.js" type="text/javascript"></script>
<scr... | javascript jquery asp.net | [3, 5, 9] |
4,963,543 | 4,963,544 | Count how many times user has loaded a page on my site? | <p>I'm wondering if I can count the times user loads pages on my site, with JavaScript. Probably like this?</p>
<pre><code>var pageloads = 1;
$(document).ready(function(){
var pageloads =++
});
</code></pre>
<p>But where would I store it? In a cookie?</p>
| javascript jquery | [3, 5] |
4,075,263 | 4,075,264 | Mega Menus using using Asp.net C# | <p>I need to create an option at work to use mega menus, basically the designer should be able to set the level per columns for the mega menus so if there are 10 items under one category and the designer sets the level to 2 then the megamenu for that category should split into two columns of 5 items. What would be the ... | c# asp.net | [0, 9] |
964,137 | 964,138 | session in asp.net C# | <p>basically i have 3 pages, log in page, main page and registration page.</p>
<p>My users have 2 access level, admin and User.</p>
<p>Admin can go to registration apge, User can't.</p>
<p>On log in page, there are 2 session, Name and Role.</p>
<p>on page load, I clear both session.</p>
<p>If log in is succeeded, ... | c# asp.net | [0, 9] |
1,227,288 | 1,227,289 | Link button control using asp.net | <p>I have one link button in master page and one dropdown list in content page .
Can any one tell How to change the visibility of the dropdown list.</p>
| c# asp.net | [0, 9] |
3,944,478 | 3,944,479 | Exception when inserting row to database | <p>I've written this code to insert a row into the database:</p>
<pre><code>SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["earchConnectionString"].ConnectionString);
//string insCmd = "Insert into [node] (title, parent_id, oid, display, linkById, customLinks, contentType) values (@title,... | c# asp.net | [0, 9] |
1,510,029 | 1,510,030 | Issues with Android ImageView | <p>I have an application which allows the user to upload pictures from gallery or take photos using camera. everything works fine, but when i display the bitmap in the image view, the image view will be bigger then the required size, trying to fill the parent even if i had set it's layout params to wrap content.</p>
<... | java android | [1, 4] |
5,005,560 | 5,005,561 | button click event automatically fires | <p>My situation is like this i have a asp button inside my user control </p>
<pre><code> <asp:Button ID="btnSubmit"
Text="Send Notification" class="submit-btn01" onclick="btnSubmit_Click1" runat="server" />
</code></pre>
<p>in my browser when I refresh my page, button click event automatically happen... | c# asp.net | [0, 9] |
5,550,486 | 5,550,487 | Trying to show message in asp.net using Javascript | <p>I am doing project in asp.net in C#. I am trying to show message in script format.
For that i am using the below code</p>
<pre><code>Page page = new Page();
page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Key", "alert('Your Full Name Sucessfully Updated...');", true);
</code></pre>
<p>but it is not s... | c# javascript asp.net | [0, 3, 9] |
1,987,638 | 1,987,639 | Jquery click function effect | <p>I have a jquery code, but I'm a little bit confused on how can I put a css on this:</p>
<pre>
$(document).ready(function () {
$('span.account-menu').click(function () {
$('ul.menu').slideToggle('medium');
});
});
</pre>
<p>I wanted to add this css in the click function.</p>
<pre>
border: 1px solid #99... | javascript jquery | [3, 5] |
4,759,715 | 4,759,716 | how to close current window in php | <p>I want to take a value in session then close the current window.</p>
<pre><code>if(isset($_POST['ok']))
{
echo "<script type='text/javascript'>";
echo "closeCurrentWindow()";
echo "</script>";;
}
</code></pre>
<p>why thish is not working?</p>
| php javascript | [2, 3] |
3,370,591 | 3,370,592 | Replace input value .val() with jQuery | <p>So basically here is my jsFiddle - <a href="http://jsfiddle.net/CmNFu/" rel="nofollow">http://jsfiddle.net/CmNFu/</a> .</p>
<p>And code also here -</p>
<p>HTML -</p>
<pre><code><b style="float: left; margin-right: 10px;">category 1</b><input type="checkbox" value="category1" style="float: left;" cl... | javascript jquery | [3, 5] |
1,651,678 | 1,651,679 | How to move jquery function/callback into document ready | <p>How can I change this code so that I can add it to the standard document ready for jquery so that all my scripts are together. </p>
<pre><code> /*
* Fetch RSS feed once page has finished loading.
*/
(function(url, callback) {
jQuery.ajax({
url: document.location.protocol + '//ajax.googleapis.com/ajax/... | javascript jquery | [3, 5] |
876,117 | 876,118 | check dynamic array against static array | <p>I need some javascript/jquery for this. I have two arrays, one static array that is hard coded and another dynamic array that is user driven. For example the values in each array represent a div. Each div is represented in the static array. I want to be able to show only the divs that are present in the dynamic arra... | javascript jquery | [3, 5] |
3,096,546 | 3,096,547 | How to know which page is redirected? in javascript | <p>how to determine which page is redirected? </p>
<p>i am using this code but this is not helping what i am looking for: </p>
<pre><code> $(function () {
//var locate = window.location;
//var t = window.location.hash;
var pagename = location.pathname.substr(location.pathname.la... | javascript jquery | [3, 5] |
3,888,339 | 3,888,340 | AlertBox - Error occured while executing doInBackground() | <pre><code> public class IdAsync extends AsyncTask<String, Void, Void> {
AlertDialog alertDialog = new AlertDialog.Builder(MainClass.this).create();
protected Void doInBackground(String... params) {
.
.
alertDialog.setTitle("Reset...");
alertDialog.setMessage("R u sure?");
... | java android | [1, 4] |
1,704,118 | 1,704,119 | Countdown javascript app | <p>I have this piece of JavaScript which is part of a countdown timer I need to know how to preset the timer to only run for 48 hours every time the page is submitted ? at the moment I place a time in a it begins to countdown to that time. Please help! </p>
<pre><code><script>
$(document).ready(function()... | javascript jquery | [3, 5] |
4,317,449 | 4,317,450 | Knowing if a page is being iframed in | <p>Is there any way of knowing if a page is being iframed in?</p>
<p>I was thinking something like <code>if (window.parent)</code>, but that obviously isn't right.</p>
<p>Can anyone help?</p>
| javascript jquery | [3, 5] |
3,088,453 | 3,088,454 | Enum to string C# and JavaScript | <p>In my .aspx I've got the following javascript variable defined:</p>
<pre><code>var action = <%=ProdView %>
</code></pre>
<p>In code-behind this returns a custom enum value:</p>
<pre><code>protected ProductView ProdView { get; private set; }
</code></pre>
<p>I would figure that this would automatically be c... | c# javascript | [0, 3] |
302,225 | 302,226 | Find out the post data size in byte | <p>When I submits the form in php.
I want to find the size of the data for each text box that are posted through javascript in bytes. </p>
| php javascript | [2, 3] |
449,869 | 449,870 | load list of links one at a time as soon as previous finishes | <p>Similar to <a href="http://stackoverflow.com/questions/5357094/show-a-list-of-links-in-an-iframe-one-at-a-time-with-jquery">Show a list of links in an iframe one at a time with jquery</a> but without the setTimeout function - as i would rather start the next fetch once the previous document as finished loading. </p... | javascript jquery | [3, 5] |
3,672,043 | 3,672,044 | Jquery fadeIn fadeOut not working in IE8 but working in chrome, firefox | <p>I m trying to show and hide some elements(span) using jquery fadeIn and fadeOut method so I used following code:</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
$("a.moretag").click(function(){
$("span.hideelement").fadeIn("slow");
$("a.moretag").fadeOut("slow");
$("a.lesstag").f... | javascript jquery | [3, 5] |
5,251,327 | 5,251,328 | How to convert this raw javascript into jQuery | <p>How to convert this raw javascript into jQuery:</p>
<pre><code>document.getElementById('myIframe').contentWindow.document.body.innerHTML
</code></pre>
| javascript jquery | [3, 5] |
3,530,384 | 3,530,385 | Scoop.it API access in C# | <p>I'm trying to access the Scoop.it API via C# to retrieve posts in topics. It's pretty much straight forward, in PHP, how are objects managed in C# and how to you access the properties?</p>
<p>Here's the php code which i'd like to get a C# equivalent of:</p>
<pre><code>$topic = $scoop->topic(24001);
foreach($top... | c# php | [0, 2] |
1,172,052 | 1,172,053 | Getting my head around jQuery | <p>OK, I'm designing a site and thought I'd stick some jQuery in as I really need so js experience.</p>
<p>Page with my problem is here: <a href="http://new.focalpix.co.uk/moreinfo.php" rel="nofollow">http://new.focalpix.co.uk/moreinfo.php</a></p>
<p>JS in question is:</p>
<pre><code>$(document).ready(function(){
... | javascript jquery | [3, 5] |
4,276,677 | 4,276,678 | Close popup div if element loses focus | <p>I have the following scenario: On a label's mouseover event, I display a div. The div must stay open in order to make selections within the div. On the label's mouseout event, the div must dissappear. The problem is that when my cursor moves from the label to the div, the label's mouseout event is fired, which close... | javascript jquery | [3, 5] |
2,063,738 | 2,063,739 | how to dispose once done | <p>i want to dispose the instance once the function is finished. something with "using" i think... </p>
<p>also
i want to add each name to an array . </p>
<p>i try: </p>
<pre><code> using( Database db = new Database())
public string[] FindNameByLength(int minimumCharNumber)
{
try{
... | c# asp.net | [0, 9] |
3,420,299 | 3,420,300 | JQuery change type of input field | <pre><code>$(document).ready(function() {
// #login-box password field
$('#password').attr('type', 'text');
$('#password').val('Password');
});
</code></pre>
<p>This is supposed to change the #password input field (with id="password") which is of type password to a normal text field and fill in the text "P... | javascript jquery | [3, 5] |
5,373,493 | 5,373,494 | jQuery has error of unexpected token | <p>I had the line of code that ran jQuery library in my header</p>
<pre><code><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
</code></pre>
<p>My javascript file sends an ajax request to a web service. The web service will output a random quote. The javascript file... | php javascript jquery | [2, 3, 5] |
6,001,298 | 6,001,299 | PHP/Javascript Form Reset upon page entry or back | <p>I have a standard PHP form that has a series of checkboxes, radio, selects and text. The form works fine and proceeds to a search results page. My problem is that when you click Back browser in any browser the search page shows the previous selects. How do I ensure that the back button displays the form as if its... | php javascript | [2, 3] |
4,766,313 | 4,766,314 | Show/Hide Multiple DIV IDs on Select | <p>I Would like the div to show based on the option selected.</p>
<p>This is what I'm trying however when I select a new option I'd like to replace the div that's there and this is displaying them all one after the other as I select new options.</p>
<pre><code><div id="body" style="width:300px;">
<div>
&l... | javascript jquery | [3, 5] |
5,242,331 | 5,242,332 | How to display the first 3 elements in UL only on document load? | <p>I have a List (UL) which has a class of .more_stories the UL contains LI. </p>
<p>I use this code to hide them by default on load:</p>
<pre><code>$('ul.more_stories li').css({'display': 'none'});
</code></pre>
<p>Now I want to display the first 3 li items inside the UL after that. How can I do that in jQuery?</p>... | javascript jquery | [3, 5] |
5,199,764 | 5,199,765 | Pass javascript variable to php function using ajax in same file without page refresh | <p>I am using PHP function to display geofences. I want to pass javascript variable to php function in same file without page refresh.</p>
<pre><code>function load(id,type){
if(type===2){
window.location.href="basic.php?idd=" + id; // i want to change code here
<?php
$cir = get_fence_by_type($_GET['idd']);
... | php javascript | [2, 3] |
5,845,674 | 5,845,675 | Adding a comma at every third number character | <p>In my code I have a variable <code>myCash</code>, which is printed into an <code>h1</code> element using javaScript's <code>innerHTML</code>. I found a function online that puts a comma after every third character from the end of the number so that the number is easier to read. I've tried for a couple of hours now s... | javascript jquery | [3, 5] |
3,825,820 | 3,825,821 | How to pause/delay on Android? | <p>I am currently learning how to develop applications for Android mobile devices.</p>
<p>I wrote a test application to display numbers 0-9 on the device screen. I created a simple function to delay the number change.</p>
<p>However, upon running the application, only the final number is displayed. There is also a de... | java android | [1, 4] |
901,343 | 901,344 | Number to Word - jquery | <p>anyone know's a way to describe a cash value or a plugin who does that ?</p>
<p><strong>exp:</strong> if i have $ 1.200.000,00 and the user <code>hover()</code> the value:
description will be "<strong>one million two hundred</strong> "</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
1,105,782 | 1,105,783 | Javascript ASP>NET get siblings/neighbours | <p>I have a gridview and i have text boxes and uneditable text fields in each row.
For the textbox that I have ...I have an onblur function...
I generate these textboxes from the server as follows </p>
<pre><code> "<input type=text name=\"txtPrice\" id=\"txtPrice_{0}\" value=\"{1}\" maxlength=\"10 \" runat=\"ser... | javascript asp.net | [3, 9] |
2,169,521 | 2,169,522 | how to insert DOM element just after the div clicked | <p>I've my mark up as</p>
<pre><code><div id="wrap">
<div class="clickhere"></div>
<div class="clickhere"></div>
<div class="clickhere"></div>
<div class="clickhere"></div>
<div class="clickhere"></div>
</div>
</code></pre>
<p>Now,... | javascript jquery | [3, 5] |
1,756,563 | 1,756,564 | Using jquery how can I remove a DIV if it's contents are empty? | <p>I'm looking for a way to remove the following empty div using jquery.</p>
<p>The following div is output sometimes without content inside it. For display reasons I need to remove it when it's empty.</p>
<pre><code><div class="field-group-format group_call_to_action_aside div group-call-to-action-aside box yello... | javascript jquery | [3, 5] |
2,336,959 | 2,336,960 | jQuery, new line and enter button | <p>I'm using following code for textarea:</p>
<pre><code>$('#ajaxSendMessage').live('keyup', function(event) {
if (event.keyCode == 13) {
controller.sendMessage($(this).val(), $("#ajaxAnswerTo").val());
}
});
</code></pre>
<p>This code works, but <code>$("#ajaxAnswerTo").val()</code> have new line cha... | javascript jquery | [3, 5] |
2,346,708 | 2,346,709 | append in word document using c# | <pre><code>//Text to word file
StringBuilder strBuilder = newStringBuilder();
strBuilder.Append("<h1 title='Header' align='Center'>Writing To Word Using ASP.NET</h1> ".ToString());
strBuilder.Append("<br>".ToString());
strBuilder.Append("<table align='Center'>".ToString());
strBuilder.Append("&l... | c# asp.net | [0, 9] |
674,892 | 674,893 | Loading raw HTML in Java/Android | <p>I have written a couple of live wallpapers in recent weeks using local resources. Now a potential client wants me to make one that loads and displays the photos (usually between 3 and 10) from his daily news report posted online. The report file has a URL along the lines of <code>http://example.com/dailytext/repor... | java android | [1, 4] |
4,665,762 | 4,665,763 | C# retrieve data dynamically from a website | <p>A website displays result when the register number is given. I have a web form to input the register number. How can I retrieve the results from that page into an Excel document using C#?</p>
| c# asp.net | [0, 9] |
3,954,449 | 3,954,450 | Can't save image for barcode generation in ASP.NET C# project | <p>I'm trying to save an image using System.Drawing.Save() and I keep getting a Invalid Parameter exception.</p>
<p>Can somebody please take a look at my code and tell me what I'm doing wrong.</p>
<p>Here is the code that generates the barcode image.</p>
<pre><code> public class BarcodeHelper
{
Font barc... | c# asp.net | [0, 9] |
2,953,460 | 2,953,461 | c# asp .net Convert to MailAddress | <p>I am working on an application that is going to send an email automatically. I have the preferences(sender,receiver etc...) in web.config file. I am trying for ex to get the receiver like the following </p>
<pre><code> MailMessage msg = new MailMessage();
msg.To = ConfigurationManager.AppSettings["... | c# asp.net | [0, 9] |
3,732,868 | 3,732,869 | Javascript widget inspired by iPhone UITableView? | <p>Cocoa Touch's UITableView allows a user to scroll through large numbers of data rows with good performance because it recycles table rows. Rather than create a GUI element for every single data row, a limited number of table rows is created, and simply updated with the relevant data as the user scrolls, giving the i... | javascript iphone | [3, 8] |
389,329 | 389,330 | If text exists, reload the page | <p>I'm trying to do a search on page for text, and if the text is found, reload the page.</p>
<pre><code><p class="textmedium">These are the droids I'm looking for</p>
</code></pre>
| javascript jquery | [3, 5] |
1,796,194 | 1,796,195 | aspx to jpeg image conversion | <p>Am trying to convert aspx page to image i.e save it as a png file. I used iecapt for this. I have many textboxes on aspx page. The problem is the textbox values are not saved in the image file. Am just getting the source file image. Hope i get some suggestions on this.
Thank You</p>
<p>protected void btnsend_Click(... | c# asp.net | [0, 9] |
3,108,464 | 3,108,465 | Getting actual text in freetextbox control | <p>I am using <a href="http://www.freetextbox.com/" rel="nofollow">FreeTextBox control</a></p>
<p>in asp.net.When I am getting its Text in my code I am getting the Html code with all the formatting.</p>
<p>If I want to get the actual text (i.e. only text without html tags),then how I should get.</p>
| c# asp.net | [0, 9] |
1,360,478 | 1,360,479 | Getting values from dictionary | <p>I have a Dictionary<int, int> in my class. How can I access both values without knowing the key?</p>
<p>For instance, I want to be able to do something like this: If the dictionary contains Dictionary<int, int><br>
and the values are <5, 4><br>
I want to be able to get the value of <(this),(thi... | c# asp.net | [0, 9] |
4,897,066 | 4,897,067 | jQuery live hover | <p>I can't seem to convert the following into a live hover</p>
<pre><code>$("li.favorite_item").hover(
function () {
$(this).append($(" <a href='#' class='button'>x</a>"));
},
function () {
$(this).find("a:last").remove();
}
);
</code></pre>
<p>I've tried:</p>
<pre><code>... | javascript jquery | [3, 5] |
3,108,971 | 3,108,972 | Jquery mouseover firing click | <p>Ive got a select menu and i want on mouseover to fire a click event, </p>
<p>I've got this</p>
<pre><code>$('.selectMenu').live('mouseover', function() { $(this).click(); });
</code></pre>
<p>but it doesnt seem to be grabbing the right values. Any ideas how to fix this?</p>
| javascript jquery | [3, 5] |
4,638,405 | 4,638,406 | Find an Anchor tag inside a Paragraph tag. | <p>I have the following markup which I need to bind a click event to the <code><a></code> tag below. </p>
<p>How can i achieve this?</p>
<pre><code> <p class="people_rt_link2" id="test">
<a href="#" title="2011">2011</a>
<p style="padding-left: 3px; margin: 3px 0px;"... | javascript jquery | [3, 5] |
856,793 | 856,794 | Method is not getting executed in ASP.NET Wizard | <p>I have a class that inserts a <code>TextBox</code> value and a <code>FileUpload</code> image into the SQL Server. I'm executing all the class in the <code>Wizard1_FinishButtonClick</code> event. I have 4 steps in Wizard. All the classes are getting executed and inserted other than <code>InsertCert()</code> class.
I... | c# asp.net | [0, 9] |
5,681,283 | 5,681,284 | gridview - allowing one column to be edited but not another | <p>i have an asp.net c# application.</p>
<p>my gridview has a datasource that has 2 fields.</p>
<p>1 field cannot be edited by the user, but i need the other one to be editable!</p>
<p>is this possible to do?</p>
| c# jquery asp.net | [0, 5, 9] |
1,751,228 | 1,751,229 | How to check if SqlDataSource.SelectCommand returned null | <p>I have a gridview and sqldatasource.</p>
<pre><code>I'm using : SqlDatasource1.SelectCommand = "Select Name from Table Where RowID=@RowID";
</code></pre>
<p>how can I check if the the selectedcommand returned null ( no value found ) </p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
4,219,072 | 4,219,073 | Only submit this.val on form when submitted? | <p>I'm making a form that displays a dynamic value and I have the forms action in a Jquery function and I want to take a value out of <code>$(this).closest('tr') <input type="text" class="line_Order_ID" value="'.$Order_ID.'" size="5" readonly></code> I want to take the value from the <code>.line_Order_ID</code> a... | php jquery | [2, 5] |
4,992,653 | 4,992,654 | Converting this python logic into C# | <p>I have been searching for an example implementation of a influence map spreading algorithm and I found one written in python, i thought, great! Since I have used python in the past and I thought it would be simple to understand the core ideas of the algorithm.</p>
<p>However I found this rather cryptic implementati... | c# python | [0, 7] |
3,221,273 | 3,221,274 | FileNotFoundException when trying to read a file I've written | <p>I am trying to write an object (pilotRecord) to a file and read it back again. I understood that I didn't need to specify a path as it is internal to my app, so I want all files deleted if the app is uninstalled.</p>
<p>Here's my code:</p>
<pre><code> fileoutputstream = openFileOutput("test1", Context.MODE_WORL... | java android | [1, 4] |
1,184,248 | 1,184,249 | Asp.net configuration, security part error | <p>I use visual studio 2010 and I have a problem when I want to add a username and a password using asp.net configuration and I have this error :</p>
<p>" Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed. "</p>
<p>I search f... | c# asp.net | [0, 9] |
768,224 | 768,225 | find error in javascript | <p>I have a few javacsript files, and I'm using a js packer to pack them, then combine them all and include them in a page.</p>
<p>The problem is that after they are packed I'm getting this error:</p>
<blockquote>
<p>Error: missing ; before statement</p>
</blockquote>
<p>I assume it's because somewhere in the js f... | javascript jquery | [3, 5] |
802,225 | 802,226 | How to show image using onmouseover in javascript | <p>I have lots of pets. what i want to achive is that when ever i hover, it will display the image of particular pet in nearby div.</p>
<p>for example</p>
<pre><code><code>
<select name="pet" id="pet">
<option value="1">Dog</option>
<option value="2">Cat</option>
<option value=... | php jquery | [2, 5] |
4,956,373 | 4,956,374 | What is the most widely used feed-parsing library for Android | <p>I want to make an app which (amongst other things) can parse feeds loaded via the network. Given that the standard Anrdoid + Core Java libraries do not provide a feed parser service and I dont want to write a one myself, can you nominate a Java feed parser which will work on a low-spec Android device. </p>
<p>I'm j... | java android | [1, 4] |
3,282,207 | 3,282,208 | echo a javascript function with parameters in php | <p>I am trying to pass a JavaScript function with an onclick event in php. The problem I am facing is that the function that I need to pass has a parameter that needs to be in double quotes as follows:</p>
<pre><code>onclick="removeElement("div8")"
</code></pre>
<p>Now when I use JavaScript to generate the parameter ... | php javascript | [2, 3] |
4,858,393 | 4,858,394 | How to translate jQuery .live() to .on() with events bound to this? | <p>I'm in the process of converting code from the deprecated <code>.live()</code> API to <code>.on()</code> (see the <a href="http://blog.jquery.com/2011/11/03/jquery-1-7-released/">jQuery 1.7 release notes</a>)</p>
<p>I have live events attached to <code>this</code> in multiple custom jQuery plugins, e.g.</p>
<pre><... | javascript jquery | [3, 5] |
2,273,045 | 2,273,046 | Why is the asp.net checkbox not disabled? | <p>I am trying to set the disabled property for my <code>CheckBox</code> to true. However, when I do a postback the <code>CheckBox</code> is still enabled?</p>
<p><strong>HTML:</strong></p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona... | c# jquery asp.net | [0, 5, 9] |
4,453,654 | 4,453,655 | Can I use a JS file to render previews when using MarkItUp? | <p>Is there a way I can use a JS file instead of a server side file eg. PHP to render my previews when using <a href="http://markitup.jaysalvat.com/home/" rel="nofollow">MarkItUp</a>?</p>
| javascript jquery | [3, 5] |
3,097,987 | 3,097,988 | How do you make an android application wait? | <p>I'm trying to make a pedometer application with Android using only the accelerometer to gather data. I gathered a lot of raw data from the phone and found certain patterns to constituted a step from my gait and created 3 booleans to model how one step would look like to an accelerometer.</p>
<pre><code>public boole... | java android | [1, 4] |
1,921,402 | 1,921,403 | Parsing JSON key with colon in it | <p>Consider this JSON string:</p>
<pre><code>{
"title": "value1",
"link": "value2",
"media:info": "value3"
}
</code></pre>
<p>I know how to parse title and link, but the parser isn't accepting media info because of the colon in the middle I think. Does anyone have any ideas?</p>
| java android | [1, 4] |
2,888,732 | 2,888,733 | Nested Methods? Why are they useful? | <p>So I'm just learning some new stuff in C# & Python. Turns out both lanuages support nested methods (C# sort of does). </p>
<p>Python:</p>
<pre><code>def MyMethod():
print 'Hello from a method.'
def MyInnerMethod():
print 'Hello from a nested method.'
MyInnerMethod()
</code></pre>
<p>C# ... | c# python | [0, 7] |
1,329,115 | 1,329,116 | What's a good Javascript tutorial library? | <p>I'm looking for something that will allow me to walk a new user through a a web app one step at a time with different hints on what to click and look at. Does something like this exist?</p>
| javascript jquery | [3, 5] |
3,758,045 | 3,758,046 | e.Row.Cell adding control does not work | <p>I have a code:</p>
<pre><code> protected void gvContacts_RowDatabound(object sender, GridViewRowEventArgs e)
{
Label label = new Label();
label.Text = "test";
if (e.Row.RowType == DataControlRowType.DataRow && e.Row.RowIndex == 0)
{
for (int i = 0; i < e.Row.C... | c# asp.net | [0, 9] |
3,866,824 | 3,866,825 | Executing Python Script from C# | <p>I am trying to execute the python script from C# in the following way:</p>
<pre><code>int ExitCode;
ProcessStartInfo ProcessInfo;
Process Process;
ProcessInfo = new ProcessStartInfo();
ProcessInfo.FileName = "C:\Python27\python.exe";
ProcessInfo.Arguments = "C:\generate.py book1.pdf";
ProcessInfo.CreateNoWindow = ... | c# python | [0, 7] |
884,099 | 884,100 | how to connect a remote SQLserver using widows authentication from a .net application, if possible | <p>currently I am using this connection string inside the app.config file of the application</p>
<pre><code>add name="LightSailEntities" connectionString="metadata=res://*/LightSailEntities.csdl|res://*/LightSailEntities.ssdl|res://*/LightSailEntities.msl;provider=System.Data.SqlClient;provider connection string='data... | c# asp.net | [0, 9] |
5,729,266 | 5,729,267 | onrowupdating event not working | <p>I dont know why because <code>onrowdeleting</code> works fine
The delete method is in the same class as the update method</p>
<pre><code><form id="formulario" runat="server" method="post">
<asp:GridView AllowPaging="true" id="inf_clientes" AutoGenerateColumns="false"
runat="server" GridLines="Both" Borde... | c# asp.net | [0, 9] |
1,354,798 | 1,354,799 | PHP/jQuery - Highlight the menu with current page | <p>Hi<br />
I am going to highlight a menu item according to the page that is reading currently, when user click on different page through the menu, that menu item will be highlighted, example is <a href="http://templates.joomlart.com/ja_pyrite/index.php?option=com_content&view=article&id=44&Itemid=53" rel=... | php jquery | [2, 5] |
2,745,290 | 2,745,291 | Writing and reading to and from a file for integers and strings | <p>I am trying to save a file (and then read it later) in java (android) using the following </p>
<pre><code>FileInputStream fis = openFileInput(filename);
</code></pre>
<p>and then maybe use BufferedReader/writer. Anyways, I am trying to save String and numbers and I was wondering what would be the best method to ... | java android | [1, 4] |
1,933,394 | 1,933,395 | See threads that JavaScript is creating? | <p>Is there a way to see the "threads" that JavaScript is creating? For example, if I have an event handler attached to a DOM element, I assume that JavaScript will implicitly make a new thread to run that code in the background? If so, is there a way to see (e.g. via Firebug, WebKit inspector, etc.) the different "thr... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.