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 |
|---|---|---|---|---|---|
5,202,717 | 5,202,718 | How to Bind a column of GridView to a DropDownList? | <p>I have a GridView and i want to bind the first Column(teachername) with a DropDownList which i have outside the GridView. How can i make it work?</p>
<pre><code> protected void Button2_Click(object sender, EventArgs e)
{
string q = "select * from teacher where teachername='" + drpteachername.SelectedItem.ToStr... | c# asp.net | [0, 9] |
3,033,520 | 3,033,521 | Android: Obtain Java source code from jar | <p>I have a jar library that I use for my app and I want to make changes to the source code.
After using JD-GUI to obtain the source code from the class files, I put the files in my project in Eclipse. But the source code contains many errors. For example, it says that the constructor does not exists, but the source co... | java android | [1, 4] |
1,341,519 | 1,341,520 | Stop javascript infinite loop onmouseout? | <p>I'm "animating" an sprite on hover. The problem is that I don't know how to stop the loop onmouseout. So basically after hovering the mouse the sprite keeps moving indefinitely.</p>
<pre><code>$("#explore").hover(function () { // Listen for hover
var number2 = 0;
setInterval(function() { // Animate sprite changing ... | javascript jquery | [3, 5] |
495,026 | 495,027 | new XmlSerializer(typeof(MyClass)) Causing Memory corruption? | <p>I've got an application that loads an assembly dynamically:</p>
<pre><code> Assembly asm = Assembly.Load("MyClass.DLL");
Type type = asm.GetType("MyClass");
MyClass runningAssembly = (MyClass)Activator.CreateInstance(type);
runningAssembly.start();
</code></pre>
<p>Once loaded and the start() method is called,... | c# asp.net | [0, 9] |
3,097,917 | 3,097,918 | Which kind of user's information I can use for create unique user's key? | <p>I've next problem:
I need create unique user key based on user's information what I can receive from user's request to my web-page (ASP.NET).</p>
<p>I'll use this key for auto-login functionality (I know about cookie ^^)</p>
<p>What kind of information I can use?
Can anybody help me?</p>
| c# asp.net | [0, 9] |
3,722,123 | 3,722,124 | Is it possible to set a new asp Hyperlink from Code Behind | <p>I am wondering if it is possible to have an asp hyperlink on an aspx page and in the code behind set it to a new hyperlink in the Page_Load section. I've tried this and it appears not to work, but wanted to know more about the mechanics (is this something that just doesn't work, or could work earlier in the page li... | c# asp.net | [0, 9] |
978,727 | 978,728 | Javascript window variable in Jquery selector | <p>I'm trying to optimize code but getting some errors. These execute correctly:</p>
<pre><code>Array.prototype.forEach.call( $('ZA1 .stat'), function( td ) {//ExcuteCode}
Array.prototype.forEach.call( $('ZA2 .stat'), function( td ) {//ExcuteCode}
Array.prototype.forEach.call( $('ZA19 .stat'), function( td ) {//Excute... | javascript jquery | [3, 5] |
1,718,145 | 1,718,146 | Setting TextBox focus in BLL ASP.NET | <p>I'm working on an application where the validation (ranges) checks are controlled in the business logic layer. The code looks similar to this:</p>
<pre><code>public string ValidateRange(int value, int lowRange, int highRange, string fieldDesc, System.Web.UI.WebControls.TextBox txtBox)
{
string msg = "";
... | c# asp.net | [0, 9] |
5,574,004 | 5,574,005 | How to get all input fields from a form in jQuery? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/169506/obtain-form-input-fields-using-jquery">Obtain form input fields using jQuery?</a> </p>
</blockquote>
<p>I have a <em>form</em> with many <em>input fields</em>.</p>
<p>What is the easiest way to get all t... | javascript jquery | [3, 5] |
559,052 | 559,053 | Callback function - use of parentheses | <p>I'm new to jQuery and am bit confused about the use (or not) of parentheses with a callback function. Say I have a function:</p>
<pre><code>function cb() {
// do something
}
</code></pre>
<p>Now what is the difference between:</p>
<pre><code>$("p").hide(1000, cb);
</code></pre>
<p>and</p>
<pre><code>$("p").hid... | javascript jquery | [3, 5] |
705,291 | 705,292 | If statement in setInterval only working once | <p>I'm new to Stack Overflow, so excuse me if I'm completely doing something I shouldn't be doing, and let me know so I can learn.</p>
<p>Anyway! The code:</p>
<pre><code>$(document).ready(function() {
var imgWidth = $(".window").width();
var imgSize = $(".image_reel img").size();
var imgReelWidth = i... | javascript jquery | [3, 5] |
3,371,195 | 3,371,196 | Why is the PackageInfo.signatures field an array, and when would there be anything other than one value here? | <p>I'm checking package signatures against each other to determine if they are incompatible (compiled against different keystores). I noticed that <code>PackageInfo.signatures</code> is almost always a collection containing a single entry, which makes sense to me. I build my app with either a debug or production keys... | java android | [1, 4] |
487,660 | 487,661 | button click event doesnt work | <p>I'm trying to switch the views, but when I'm in the second view, the back event click doesnt work.. I don't know what's wrong.</p>
<p>Pls, see my code and help me!</p>
<p><a href="http://pastebin.com/kV52cbWh" rel="nofollow">Part1</a></p>
<p><a href="http://pastebin.com/Ke1iWz01" rel="nofollow">Part2</a></p>
<pr... | java android | [1, 4] |
1,228,861 | 1,228,862 | jquery to add one cell without refreshing the page | <p>I want to add one cell in a section each time I click the add button. The page is updated without refreshing.
The html code is:</p>
<pre><code><section>
<p class="cell">content</p>
</section>
<button type="button" id="addCell">add</button>
</code></pre>
<p>How should I impleme... | javascript jquery | [3, 5] |
1,223,355 | 1,223,356 | How to click some parts of an image | <p>I need to make an index page only with the following image. </p>
<p>When the user clicks the water between the flags, he can continue to the next page. If the user presses at any other location, an alert message will be shown. Do we have any x-axis,y-axis concept in PHP? </p>
<p>Anyone have any idea how to make an... | php javascript jquery | [2, 3, 5] |
2,894,642 | 2,894,643 | Button click event not firing within use control in ASP .Net | <p>I am developing an asp web page in which I have a drop down combobox and a place holder below that. When the user selects an item from the drop down combobox, a postback is done to the server side and server loads an asp user control to the place holder in this parent page. Everything upto now is working fine.</p>
... | c# asp.net | [0, 9] |
2,386,329 | 2,386,330 | How to animate an element while using .before in jquery | <p>I want to append .item element before .content element but it just simply removes .item from previous location and append before .content. </p>
<p>What i want is to use some animation that slowly remove .item element from its original position and appear slowly on its new position.. how can i do this?</p>
<pre><co... | javascript jquery | [3, 5] |
1,717,171 | 1,717,172 | php script calling parent javascript function | <p>I have this folder structure:</p>
<pre><code>index.php
js/scripts.js
</code></pre>
<p>In <code>index.php</code> I have a JavaScript function defined called <code>execute()</code>.</p>
<p>Now within <code>index.php</code> I have a form that when submitted will call <code>email.php</code> and at the end of the exe... | php javascript | [2, 3] |
3,735,989 | 3,735,990 | Treeview asp.net | <p>I have a treeview control on an asp.net page. Everytime I select a node in the tree, a duplicate copy of the tree is displayed under it. I am unable to understand. I have not written any code so far. I'm probably missing out on some property that I should have set. No matter which node I click on another tree is dis... | c# asp.net | [0, 9] |
3,367,759 | 3,367,760 | how to search all children and children's children, etc of a parent div | <p>I have a setup, something confusing like this:</p>
<pre><code><ListView>
<ItemTemplate>
<div id="Content">
<asp: TextBox ID="OuterTextBox" />
<div id="Controls">
<asp: ComboBox ID="InnerComboBox"/>
</div>
... | javascript jquery asp.net | [3, 5, 9] |
1,470,549 | 1,470,550 | How to stop toggle event from being fired multiple times on mouseenter/mouseleave? | <p>I'm using jQuery to toggle the visibility of a <code><div></code> using the jQuery toggle method. The toggle is fired on the mouseenter and mouseleave event, thus creating the effect of the div to fold out on mouseenter and fold in on mouseleave. Problem is, if the user drags the mouse over the <code><div&g... | javascript jquery | [3, 5] |
5,072,370 | 5,072,371 | Graphs in android via php script | <p>I want to make a feature in my android that will generate graphs for example yearly basis. Is there anyway to generate graphs via php scripts. Hope you can share some tutorials or links that will help me. </p>
| php android | [2, 4] |
2,183,262 | 2,183,263 | simple pass variable to php from javascript | <p>Can someone write me a simple script that will pass the variable to the hidden date field and than echo it through php? I know that is duplicated but I didn't understand from the duplicates.</p>
<pre><code> <script> var a=20 //how to send a to hidden field </script>
<form method="POST"&... | php javascript | [2, 3] |
399 | 400 | Why won't my code work in Java? | <p>Here's my code in C#:</p>
<pre><code> string month;
do
{
Console.WriteLine("put month");
month = Console.ReadLine();
switch (month)
{
case "1":
Console.WriteLine("dsad");
Console.ReadLine(... | c# java | [0, 1] |
3,212,507 | 3,212,508 | Android - BroadcastReceiver inside a thread | <p>Is it possible to have broadcastReceiver running inside a thread (just broadcastReceiver)? As far as I know, this can't be done unless there is a way to keep the thread alive (even tough there is no work). Please correct me if I'm wrong.</p>
<p>This is what I want to do: I have a client and a server program that ru... | java android | [1, 4] |
5,920,865 | 5,920,866 | Alert box not being called upon button click | <p>I have a fairly simple code, a button click event, with the first line being a message box.
When the button is clicked, the messagebox is not called.</p>
<pre><code>protected void btnSubmitToCRM_Click(object sender, EventArgs e)
{
try
{
if (!ValidateCoreValue())
{
return;
... | c# asp.net | [0, 9] |
1,167,240 | 1,167,241 | how to get the checked box input value by jquery or javascript? | <p>the input check box code:</p>
<pre><code><li class="odd"><input type="checkbox" class="forminput" name="VD10" checked="checked" value="http://test1.com">
<a href="#">example 1</a></li>
<li class="even><input type="checkbox" class="forminput" name="VD11" checked="checked" v... | javascript jquery | [3, 5] |
9,239 | 9,240 | Problem with calling Console application (WCF Service) from webform | <p>I am using a ASP.net webform application to run an existing console application which get all records from DB and send them through a third party WCF service. Locally everything is working fine. When I run the application it opens the console, gets the records and sends them. But now I pushed my files over to Test s... | c# asp.net | [0, 9] |
1,986,352 | 1,986,353 | ASP .NET - RequiredFieldValidator creates space after textbox | <p>I have a DetailsView with a number of textboxes setup with RequiredFieldValidators.</p>
<p>The code for both is:</p>
<pre><code><InsertItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("date_time") %>'></asp:TextBox>
<asp:RequiredFieldValidator
ID="Re... | c# asp.net | [0, 9] |
3,399,677 | 3,399,678 | Check for number of files starting with some string | <p>I want to check in my SD card root for files starting with "thisfile" and return the number of files in an int or a string. </p>
<p>For example i have 10 files on my SD card with the following names:</p>
<pre><code>thisfile1.txt
thisfile444.txt
thisfileffvdfv.txt
thisfilefdfvdfv.txt
thisfile4fvdfv.txt
thisfilefvdf... | java android | [1, 4] |
3,175,814 | 3,175,815 | how to store data in specific format? in WYSWYG? | <p>I am using WYSIWYG window 4 taking input from user, so he can enter font Bold, Italic etc. How to store such data, so that when I display on some other page, same font styles and formats comes back??</p>
| c# javascript jquery asp.net | [0, 3, 5, 9] |
4,196,316 | 4,196,317 | Why are the timezone offset returning different values? | <p>My location is at GMT +5:30</p>
<p>When I try to find <code>getTimezoneOffset</code> using JavaScript</p>
<pre><code>var x = new Date();
var currentTimeZoneOffsetInHours = x.getTimezoneOffset() / 60;
</code></pre>
<p>I get the value <code>-5.5</code>. Curiously, when I am doing the same using C#</p>
<pre><code>v... | c# javascript | [0, 3] |
1,970,895 | 1,970,896 | $.plugin.function and scoping in jquery? | <p>im a php guy, right now im learning on making my first plugin</p>
<p>heres what im upto</p>
<pre><code>$.plugin.method({
test: 'helloworld'
});
$.plugin.method({
test: 'another helloworld'
})
</code></pre>
<p>heres my function or class ? </p>
<pre><code>// class ?
jquery.plugin = function(){
// ... | javascript jquery | [3, 5] |
1,873,607 | 1,873,608 | How can I play .flv video in Android? | <p>I am trying to play Flash video in Android but it's not working. Here I used a WebView in my Android application but it has a problem. I've shown that code:</p>
<pre><code> WebView wbView=(WebView)findViewById(R.id.webView);
wbView.getSettings().setJavaScriptEnabled(true);
String htmlCode="<html>" ... | java javascript android | [1, 3, 4] |
1,854,680 | 1,854,681 | How to show only part of map on screen | <p>I'm developer of game Space STG II for Android phones... and I want to add to this game new option. To do this I need to know how to do movable screen. I want to do a battle like in Heroes Might & Magic, but in mobile phone screen is small... I don't know how developers show only a part on screen of all things o... | java android | [1, 4] |
2,849,883 | 2,849,884 | How to handle ThreadAbortException Without Specifying False for Response.End | <p>I know all about this exception, read the msdn article here <a href="http://support.microsoft.com/kb/312629/EN-US/" rel="nofollow">http://support.microsoft.com/kb/312629/EN-US/</a> but I do not know how to handle this when my boss does not want me to throw in false for the Response.End.</p>
<p>Here's what I have:</... | c# asp.net | [0, 9] |
3,708,943 | 3,708,944 | How to change a DateTime Format | <pre><code>List<DateTime> datetimerange = new List<DateTime>();
DateTime StartDate = Convert.ToDateTime(txtDate.Text);
DateTime EndDate = Convert.ToDateTime(TextBox1.Text);
foreach (DateTime day in EachDay(StartDate, EndDate))
{
datetimerange.Add(day.Date);
Session["SelectedDatess"] = datetimeran... | c# asp.net | [0, 9] |
3,866,637 | 3,866,638 | auto Focus (Hit Enter) Javascript function is working good in IE7 but not working in IE8 | <p>I used a javascript FocusChange() in my aspx page. I have couple of controls and I need Hit enter key need to move next control based on tab index. It is working good in IE7 but not working in IE8... Please help me on this..</p>
<p>Thanks for your help in advance. The java script is given below.</p>
<pre><code>fun... | asp.net javascript | [9, 3] |
4,135,359 | 4,135,360 | jquery validate position | <p>I'm trying to use jquery validate. Following the example: <a href="http://docs.jquery.com/Plugins/Validation">http://docs.jquery.com/Plugins/Validation</a> works great and I'd like to reproduce with my code. However I'm not sure where to call it.</p>
<p>What I have is a generated html table and when you click the... | javascript jquery | [3, 5] |
3,710,539 | 3,710,540 | Javascript- history.pushState() not workin in IE | <p>I use the History.js to save the current (History can be found here: <a href="https://github.com/balupton/History.js/blob/master/README.md" rel="nofollow">https://github.com/balupton/History.js/blob/master/README.md</a>)</p>
<p>Now it works in all browsers except Internet Explorer. I use IE9, I don't know if it wor... | javascript jquery | [3, 5] |
4,824,846 | 4,824,847 | Passing a php array into javascript using JSON | <p>I have a multidimensional array, here:</p>
<pre><code>$noticeDate = json_encode( $noticesDates );
</code></pre>
<p>and I want to pass the array into javascript:</p>
<p>var unavailableDates[] = $noticeDate;</p>
<p>Both variables are in the same php file so there is little point using $.getJSON, which basically lo... | php javascript jquery | [2, 3, 5] |
4,655,193 | 4,655,194 | Cross platform Java? Android and desktop | <p>We have a desktop/web java application and also getting into Android development.</p>
<p>Ideally we would like one app that runs both on desktop and android.</p>
<p>From what we can tell, it's not much possible to run normal java apps on android. But wondering if it can do it the other way? That is, run android ... | java android | [1, 4] |
4,580,987 | 4,580,988 | How to write a page whitelist in an asp.net website | <p>I have a website and as one of security options (prevent path traversal) I am planning to use a white list of pages which can be accessed. But my problem is I don't know how to do it. Can you share some articles or simple of code how to create a white list?</p>
| c# asp.net | [0, 9] |
1,820,219 | 1,820,220 | BufferedReader gives weird behaviour on different Android versions | <p>I am trying to open an existing file, and process it, and save it somewhere else in Android.</p>
<pre><code>File in = new File("/sdcard/a.pdf"); // This file exists in the location and has been obtained by using getExternalStorage()
FileInputStream fis = new FileInputStream(in);
BufferedReader br = new BufferedRead... | java android | [1, 4] |
66,901 | 66,902 | C# code to check Java script disabled in browser | <p>i am having a application in which java script is must. but i am facing problem when at any client browser has java script disabled. i want a code using which i can check the browsers java script enabled/ disabled property so that the user cannot login until he enables javascript. can anyone help me in this code</p>... | c# javascript asp.net | [0, 3, 9] |
3,503,881 | 3,503,882 | jQuery :: How to execute one function based off two possible events | <p>I'm looking for a clean way to fire one function that may be triggered by two possible events. For example:</p>
<pre><code>$('form').on('submit', function() {
stuff in here...
});
$('input').on('change', function() {
same stuff in here as before...
});
</code></pre>
<p>I could do</p>
<pre><code>function ... | javascript jquery | [3, 5] |
2,982,182 | 2,982,183 | Base64 decode Stuck | <p>i need to convert a base64 value into string array so simply i have write this : </p>
<pre><code>String s[] = new String[partyname.length];
for(int i=0;i<=partyname.length;i++)
{
byte[] bytes = Base64.decode(partyname[i], Base64.DEFAULT);
String string =... | java android | [1, 4] |
5,964,611 | 5,964,612 | Problem: Alert value of dynamically created select tags | <p>I have an external Javascript file and i am trying to alert the value of select tags which are being generated dynamically through php.</p>
<p>the problem is, that it selectes the value of only the first select tag. What should i do, so that the javascript is able to independently identify each select tags value. ... | php javascript | [2, 3] |
5,616,895 | 5,616,896 | How to change class of textbox? | <p>my textbox has a <code>class='cssText'</code>. I want to change this class to <code>'blck'</code> at runtime.</p>
<p>How can I access the class attribute of textbox and change its value using jQuery?</p>
<p>Thanks </p>
| javascript jquery | [3, 5] |
1,464,050 | 1,464,051 | Add Class on Focus | <p>I have a textarea and I'd like it so once somebody clicks on the textarea (or presses f (keycode 70)), everything else fades out and it adds the class focus to the body.</p>
<p>How can I do that with jQuery?</p>
| javascript jquery | [3, 5] |
4,240,830 | 4,240,831 | Queuing actions (not effects) to execute after an amount of time | <p>What I'd like to know is if there is a nice way to queue jQuery functions to execute after a set amount of time. This wouldn't pause the execution of other functions, just the ones following in the chain. Perhaps an example of what I'd envisage it would look like would illustrate:</p>
<pre><code>$('#alert')
.sh... | javascript jquery | [3, 5] |
2,135,899 | 2,135,900 | Passing a URL to a Javascript function | <p>I've spent a while going through numerous similar questions, but based on the answers given, I'm lead to believe I have this setup correctly - but it's not working, and I'm not sure why.</p>
<p>I'm a newbie with Javascript/jQuery, so it's very possible (or probable!) that I'm missing something completely obvious he... | javascript jquery | [3, 5] |
421,177 | 421,178 | Ajax async file uploader is not working | <p>Hi i have ajax async file uploader,but it is not striking onuploadedcomplete.please help me to solve this.</p>
<pre><code><asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
... | c# javascript asp.net | [0, 3, 9] |
422,004 | 422,005 | Don't want spaces in the text, but this regex is passing not sure why | <p>I am using the following regex</p>
<pre><code>/[a-zA-Z0-9]+/i.test(value)
</code></pre>
<p>If I enter a space in the word, it passes.</p>
<p>I don't see where spaces are aloud in the regex, why is it passing?</p>
| asp.net javascript | [9, 3] |
5,325,500 | 5,325,501 | Unhandled exception type JSONException | <pre><code>JSONObject login = new JSONObject();
login.put("Key1", "Value1");
</code></pre>
<p>I was just trying to create a simple JSON Object with key and value pairs. I get this exception "<code>Unhandled exception type JSONException</code>". </p>
<pre><code>Map<String,String> map = new HashMap<String,Stri... | java android | [1, 4] |
978,854 | 978,855 | PHP how to call function onClick | <p>I need to call this function Hello() before load the page, what happen is : function is done but location.href don't work, i need it to work how?</p>
<pre><code><input type=button onClick="return Hello(this);location.href='go.php?f_name=<?php echo $_POST['f_name']; ?>&job=<?php echo $... | php javascript | [2, 3] |
3,893,205 | 3,893,206 | get page discription from page url without slowdowing the page load | <p>Is it possible to get page discription from page url without slowdowing the page load? via java script or php or anylanguage?</p>
<p>For example I would send this input:</p>
<pre><code>http://www.facebook.com
</code></pre>
<p>and get this output:</p>
<pre><code>Facebook is a social utility that connects people w... | php javascript | [2, 3] |
5,268,942 | 5,268,943 | Register a control from another project asp C# | <p>I am using asp.net</p>
<p>I am unable to register my control from another project in my current project. I have a commoncontrols project and a controlpanel project now how can i get the usercontrols from the commoncontrols project?</p>
<p>The controlname is ucReg.ascx.</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
565,238 | 565,239 | jquery manipulate html | <p>my dynamic generated html look like below</p>
<pre><code><ul class="missingList">
<li>Please select at least one answer</li>
<li>Please select at least one answer</li>
<li>Please select at least one answer</li>
<li>Please select at least one answer</li>
<li&g... | javascript jquery | [3, 5] |
2,050,982 | 2,050,983 | How to pick color that will not be same next to each other | <p>I'm adding a random background color with this code</p>
<pre><code>var hue = ['#2dafe9','#5feec3','#fdaf17','#999999','#2b2b2b','#454323','#ab34ef', '#e324e2','#874edf','#18edf4'];
function getHue(){
return hue[Math.floor(Math.random() * hue.length)];
}
function rainbow(){
$("header[rol... | javascript jquery | [3, 5] |
2,876,324 | 2,876,325 | object instance not set on page load? | <p>I am trying to load my website and it says object instance not found. What do i do??</p>
| c# asp.net | [0, 9] |
3,119,967 | 3,119,968 | Android java set image Resource | <p>I get a force close on this</p>
<pre><code>if(num1.getText().equals("0")) {
num1.setText("1");
ImageView hpdown1 = (ImageView)findViewById(R.id.hair);
hpdown1.setImageResource(R.drawable.haie2);
}
</code></pre>
<p>Please help..</p>
| java android | [1, 4] |
665,077 | 665,078 | create <image> in <td> | <p>I want to add an <code><img></code> in a <code><td></code></p>
<pre><code>$myRow = $("<tr></tr>");
$myRow.append("<td>$('<img/>').attr({ src: 'xx' })</td>"),
</code></pre>
<p>as expected it's considering it as a string.
How to format this using jQuery, so that it creates a... | javascript jquery | [3, 5] |
1,102,638 | 1,102,639 | .Net Classified Advertisement Application with Source | <p>Before I roll my own, can anyone recommend a good .Net C# classified ad system w/payment option(s) + source code? I can't find anything out there worth anything.</p>
| c# asp.net | [0, 9] |
3,379,655 | 3,379,656 | scope of javascript array differs from IE9 to FireFox/Chrome | <p>I've narrowed down my fundamental problem: the scope of an array differs from IE9 to FireFox (and Chrome).</p>
<p>In the following function (excerpt only), I declare an array, then fill it with a call to $.getJSON(). Because the line referencing HoldEm occurs within the ProcessArray function (and even within the bo... | javascript jquery | [3, 5] |
2,281,652 | 2,281,653 | How to refresh parent page from child page in asp.net 2.0 | <p>I have a page showing all products in a gridview.
I have a link in the page clicking on it opens a modal window.
In the modal window there is a form to enter product and save.
When I fill the form and save product I need to make the parent page to be refreshed so that
the new product is listed in the gridview and a ... | asp.net javascript | [9, 3] |
21,711 | 21,712 | ASP.NET, The status code returned from the server was: 500 | <p>A customer using a ASP.NET program I have just sent them is experiencing the error below, I had personally tested the program on 4 web server IIS6, 7, and 7.5, on 4 different networks and I never got this, the customer is using IIS6 with .Net 2.0 (as required). The program uses Windows authentication which may or ma... | c# asp.net | [0, 9] |
1,709,381 | 1,709,382 | Update the database asynchronously | <p>I have a ListView in ASP.NET where one column consists checkBoxes. I want the user to be able to these CheckBoxes directly in the list (without having to go into edit mode). How I do that, I have received answers in <a href="http://stackoverflow.com/questions/5983132/get-database-id-from-a-row-in-listview-in-asp-net... | c# asp.net | [0, 9] |
5,245,997 | 5,245,998 | Change Label Text during long Code Behind Process | <p>I Have <code>Label</code> And <code>Button</code> In One <code>UpdatePanel</code> ,Now I call Long Process with <code>ForEach</code> Loop <code>On Button Click</code> What I want is to Update Text Of <code>Label</code> after Completion Of Loop.Is there any Easy Way to Change Text Of <code>Label</code> At runtime.I h... | c# asp.net | [0, 9] |
3,552,956 | 3,552,957 | strange issue with jQuery | <p>I have a very strange issue with jQuery.</p>
<p>The problem:</p>
<pre><code>$("#button-prev").attr("disabled", "disabled");
</code></pre>
<p>This doesn't work. If I check with Firebug I see disabled="" as element attribute</p>
<p>But for example this</p>
<pre><code>$("#button-prev").attr("disablea", "disabled")... | javascript jquery | [3, 5] |
5,242,621 | 5,242,622 | Scripts still run after script elements removed | <p>Why do scripts still run after their tags get removed?</p>
<p>I was testing jQuery to remove style and link tags to remove CSS styles when i accidentally typed 'script' instead of 'style' for the selector. But what happened is that the scripts defined in those tags still run. Why is that?</p>
<p><a href="http://js... | javascript jquery | [3, 5] |
345,705 | 345,706 | commandargument string not evaluating | <p>I have a commandargument inside an aspx page set to an object variable inside a for loop as below:</p>
<pre><code><% foreach (PromotionImage p in imageList)
{
%>
<asp:LinkButton runat="server" OnCommand="deleteButton_Click" ID="deleteButton" CommandArgument="<%# p.ImageId.ToString(); %>" F... | c# asp.net | [0, 9] |
1,923,775 | 1,923,776 | Find parent element | <p>I do not find easy way to find parent element of the element. "Parent" word in this situation is not correct to describe element which I need to find using JS. I will try to show example.</p>
<p>I need to find "collapser1" A element if collapser4 A element is clicked. How to do that?</p>
<pre><code><ul id="pdfb... | javascript jquery | [3, 5] |
4,980,672 | 4,980,673 | View counter not chaching | <p>I created view counter as generic handler in ASP.NET here is code, method <code>AddPostView</code> performes simple SQL command like "View = View +1"</p>
<pre><code>public void ProcessRequest(HttpContext context)
{
if (UrlManipulation.IsRoutedValueInt(context.Request["ID"]))
... | c# asp.net | [0, 9] |
2,610,485 | 2,610,486 | How to improve performance when rendering html element composed of millions of elements? | <p>I am using jquery in a webapp that is basically a hex viewer. I put each byte in it's own element (just a <i> tag) with a unique id (the offset in the file), so I can easily reference it. I basically end up with:</p>
<pre><code>var str =
"<i id=h0>00 </i>" +
"<i id=h1>00 </i>" +... | javascript jquery | [3, 5] |
2,360,878 | 2,360,879 | jQuery Sliding Tabs: control options- NEXT/PREVIOUS | <p>I am trying to control tabs with a next/previous options. This is my <a href="http://jsfiddle.net/kFNtX/1/" rel="nofollow">JSFIDDLE EXAMPLE</a>. I have spent hours researching and found the method NEXT/PREVIOUS function in this <a href="http://css-tricks.com/jquery-ui-tabs-with-nextprevious/" rel="nofollow">WEBSITE<... | javascript jquery | [3, 5] |
3,378,187 | 3,378,188 | Using jQuery to open all external links in a new window | <p>New to jQuery here. I've found several web pages that come close to what I'm trying to do, but not quite. Actually, I think the following is <em>supposed</em> to actually work, but it's saying:</p>
<pre><code>[@href^="http://"]
</code></pre>
<p>is not recognized (syntax error). Any help?</p>
<pre><code>$(docum... | javascript jquery | [3, 5] |
1,330,052 | 1,330,053 | Calculating Total Overtime Working Hours using Condition | <p>Need your help with my case.</p>
<p>How to make calculating total overtime working hours using condition ?
Example :</p>
<p>using input type,</p>
<pre><code>OT From <input type="text" name="ot_from">
OT To <input type="text" name="ot_to">
Total Hours <input type="text" name="total_hours">
</code... | php javascript | [2, 3] |
36,891 | 36,892 | ASP.NET DropDownList SelectedIndex not changing on first element | <p>I used to think my c# programming wasn't too bad, but today I am seriously questioning my head, something so small is defeating me...</p>
<p>I am trying to get a DropDownList to behave but we are not getting on today. I have a simple DropDownList in an ascx control which is dynamically loaded into an aspx page</p>
... | c# asp.net | [0, 9] |
918,086 | 918,087 | Avoid repetition by passing in a value | <p>I'm inserting images into dom with javascript and I would like to pass in the second classname and some other properties of the images while calling the function.</p>
<p>So I have functions containing code this:</p>
<pre><code>function movieCreator(movieName){
'<img class="clip terminator" src="images/terminat... | javascript jquery | [3, 5] |
2,048,237 | 2,048,238 | RSA decrypt in ANdroid | <p>I am using RSA modulus and encrypting a data with modulus and trying to decrypt it with private key of RSA ..i m using RSA/ECB/PKCS1Padding at the decrypt end </p>
<p>Thnx in advance </p>
| java android | [1, 4] |
557,744 | 557,745 | Error ::Object reference not set to an instance of an object | <p>What could be wrong ?</p>
<pre><code>public int InsertUpdateQues(bllQues objbllQues)
{
dsgetQues = objdllQues.InsertUpdateQues(this); //ERROR here
return dsgetQues;
}
</code></pre>
<p>I see values getting assigned to ALL the above properties, not one is missing. Whats wrong then?</p>
<... | c# asp.net | [0, 9] |
5,087,884 | 5,087,885 | Confused. How can I grab hold of the returned InputStream? | <p>I'm trying to fetch some XML and eventually use it as a String. Here's my two methods, the former of which calls the latter. </p>
<pre><code>public static void getAllXML(String url) throws XmlPullParserException, IOException, URISyntaxException{
XmlPullParserFactory factory = XmlPullParserFactory.newInstance()... | java android | [1, 4] |
3,746,691 | 3,746,692 | Text Change event of textbox automaticaly fires when postback accurs | <p>I have a textbox in webuser control. And i am accessing it in content page and add its text </p>
<p>change event handler as follow...</p>
<pre><code>protected void Page_PreInit(object sender, EventArgs e)
{
Find = (TextBox)(Menu1.FindControl("txtTarget"));
Find.TextChanged += new EventHandler(Find_TextChanged)... | c# asp.net | [0, 9] |
1,633,754 | 1,633,755 | Synonym for ApprovalWorkflow | <p>We have an abstract workflow class that is called <strong>ApprovalWorkflow</strong> the thing is it can hold both an approve, reject and input state. Its slightly misleading to call it ApprovalWorkflow but I cant be sure of what the right term is. </p>
<p>Does anyone know of a better term to call ApprovalWorkflow a... | c# java c++ | [0, 1, 6] |
5,701,556 | 5,701,557 | ArrayList Filter Logic | <p>I have an arraylist <code>arrTotalItems</code> of <code>class Operation.Operation</code>.</p>
<p>the class has two properties one is <code>ID</code> and <code>name</code>.
Now I have other <code>arraylist arrSelectedItems</code> which contain ID of <code>operations</code></p>
<p>Now I have to bind two <code>DataLi... | c# asp.net | [0, 9] |
5,301,966 | 5,301,967 | How to check for a null cookie in javascript? | <p>The following switch statement is not catching a cookie that does not exist.</p>
<pre><code>switch (stateCookie) {
case 'Virginia':
window.location = '/Teacher-Login/VA';
break;
case 'North Carolina':
win... | javascript jquery | [3, 5] |
824,626 | 824,627 | Select each value of ALL inputs on submit | <p>I am trying to select every input value with the class 'netSuiteValue' when the submit button is clicked. Here is what I have so far: </p>
<pre><code>$('.netSuiteValue').each(function() {
var inputValue = $(this).val();
$('.submitBtn').click(function() {
$('.theValue').val('all values' + inputValue... | javascript jquery | [3, 5] |
5,843,331 | 5,843,332 | How to Add options to select box based from an array? | <p>I am stuck with this issue. What I want to do is to create the option values in a select box on the fly with the use of jquery javascript.</p>
<p>For example, if I have a question like what are your favourite fruits? So users should be able to select an answer from the default select box e.g. "Apple, Orange, Pear, ... | javascript jquery | [3, 5] |
62,563 | 62,564 | Convert.FromBase64String Exception | <p>when I try to do the following code : </p>
<pre><code>byte[] arr= Convert.FromBase64String("1/50/Zoolz/Win-s9u0uco8ea0(11)/349.jpg")
</code></pre>
<p>I received the following error: </p>
<p>The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-w... | c# asp.net | [0, 9] |
321,173 | 321,174 | I want a cross close button on top of my overlay. | <p>I have an overlay which appears over my webpage. I want a cross symbol on top of my overlay so that users can closs the overlay. So How i can close the overlay if the user presses escape key.</p>
| javascript jquery | [3, 5] |
153,153 | 153,154 | Can I have overlapping elements in Android? | <p>I want to have different Views based on an action that takes place.</p>
<p>My question:</p>
<p>1) From a layout perspective, how do I need to set up my views so that I can toggle between a TextView and a Chronometer?</p>
| java android | [1, 4] |
3,272,308 | 3,272,309 | How to create a superuser & random user login from a single login page? | <p>Am new to asp.net & C# world. Just joined as a Software Developer. I have to create a website for a forum. So i need to create one login page for three types of login mainly,1. Admin, 2.Receptionist & 3.Random User. So i need your help in this project.</p>
<p>Thanks
Tourniquet</p>
| c# asp.net | [0, 9] |
5,369,966 | 5,369,967 | Setting ProgressBar to vertical position (rotated 90 degrees) | <p>I have tried to rotate the default horizontal ProgressBar once, but I had this issue, that whenever I use setProgress, the view don't update at all.</p>
<p>Then I tried this one: <a href="http://stackoverflow.com/a/9311020/1445913">http://stackoverflow.com/a/9311020/1445913</a></p>
<p>Its basically the same aproac... | java android | [1, 4] |
4,235,504 | 4,235,505 | jQuery - Way to view jQuery generated html? | <p>Is there a way to view the jQuery (or Javascript) generated HTML - for example, see the jQuery-modified source of a page that uses a number of <code>prepend()</code>'s <code>html()</code>'s etc.?</p>
| javascript jquery | [3, 5] |
5,542,018 | 5,542,019 | How to loop through JSON per group | <p>I'm pretty new to JavaScript and started having trouble with JSON.</p>
<p>I have a object like so:</p>
<pre><code>var users = [
{ "firstName":"John" , "lastName":"Doe" },
{ "firstName":"Anna" , "lastName":"Smith" },
{ "firstName":"Peter" , "lastName":"Jones" }
]
</code></pre>
<p>Is there anyway I can do a ... | javascript jquery | [3, 5] |
4,295,324 | 4,295,325 | UpdatePanel + Override of Page.Render() issue | <p>I have an Asp.MultiView control inside an Asp.UpdatePanenl to avoid fickering during the change of view.</p>
<p>I have also override the Render page event of my master page to be able to change the localization of the website on the fly.</p>
<p>The Render page event is not called when i use the UpdatePanel.</p>
<... | c# asp.net | [0, 9] |
1,239,623 | 1,239,624 | Replace All innerhtml text with Javascript | <p>I've been trying for hours and I've looked a lot of samples on StackOverflow, but I can't fix my simple script.</p>
<p>I grabbed DOM with jQuery</p>
<pre><code>var color = $('#bscontainer').html();
</code></pre>
<p>and now the content of color is:</p>
<pre><code><img src="resources/P/Blue_BG_2Col.png" id="bg"... | javascript jquery | [3, 5] |
5,988,871 | 5,988,872 | finding the closest previous sibling that contains .myClass | <p>I have a bunch of <code><tr></code> some of them contain a <code><td></code> that has <code>class="myClass"</code> but some don't. So it looks like something like this. </p>
<pre><code><tr>
<td class="myClass"></td>
<td></td>
</tr>
<tr>
<td></td>
&l... | javascript jquery | [3, 5] |
4,363,060 | 4,363,061 | The interface ColorSpace cannot define an initializer | <pre><code>public abstract interface Color
{
public static final float[] xyz2sRGB;
static
{
float[] arrayOfFloat = new float[9];
arrayOfFloat[0] = 3.241F;
arrayOfFloat[1] = -0.9692F;
arrayOfFloat[2] = 0.0556F;
arrayOfFloat[3] = -1.5374F;
arrayOfFloat[4] = 1.876F;
arrayOfFloat[5] = -... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.