asp.net-mvc,jquery-ui,tabs,seo,postbackRelated issues-Collection of common programming errors
Jan Aagaard
asp.net-mvc
My web site crashes and simply returns a bland page when I use the TagBuilder class in my controller.The code works perfectly on my local machine, running Windows 7. I have tried with two different web hosts now, and they both have the same problem: A blank page if I use the TagBuilder class in code behind. I have made a workaround so that I simply build the tag string using String.Format, but I would of cause understand what the problem is, and then correct the error.I feel like I should provid
BenSwayne
c# ajax asp.net-mvc signalr
I have an ASP.NET MVC3 application.If my application had a large number of users – let’s say 100,000 – hypothetically, if all users were talking to each other and I used SignalR, would there be 100,000 long polling connections? Would these cause some sort of denial of service? Should I be using AJAX HTTP instead? Or would SignalR be smart enough to release the connection to resource pool when no activity is found for certain period of time? When would using signalR for chat be recommended for ch
amurra
asp.net-mvc asp.net-mvc-4
I have the need to manually instansiate some controllers and therefore have this code:var controller = Activator.CreateInstance(typeof(AccountController), repository) as AccountController;In the AccountController I have a method similar to this:[AllowAnonymous] [HttpPost] public ApiJsonResult LogOn(LogOnAccountDto model) {ValidateModel(model);if (ModelState.IsValid){//…} }I want my ModelState.IsValid to work, so therefore I call ValidateModel and pass it the model.This fails, apparently becaus
H.B.
asp.net-mvc html5
I am trying to set up a lightweight HTML5 Server-Sent Event implementation on my MVC 4 Web, without using one of the libraries available to implement sockets and similars. The lightweight approach I am trying is:Client side: EventSource (or jquery.eventsource for IE)Server side: long polling with AsynchController (sorry for dropping here the raw test code but just to give an idea)public class HTML5testAsyncController : AsyncController{private static int curIdx = 0;private static BlockingCollect
Mr Moo
asp.net asp.net-mvc sql-server-2008 nhibernate ninject
We have an ASP.Net 4 / MVC 3 hybrid web application which uses NInject 3 and (Fluent) NHibernate 3.2. DB is SQL Server 2008 R2. Server is 6-core 28 GB Windows 2008 64-bit server.Our customer has recently started testing the site using a spidering tool. As soon as the site experiences the load produced by the spider, our log starts to fill up with exceptions. We see a variety of errors from NHibernate, including some of the following:NHibernate.TransactionException: Commit failed with SQL excep
Benjamin
c# asp.net-mvc model-view-controller active-directory
I have an issue using c# on .Net 4 in a MVC web application, where when I query Active Directory, I frequently get an error: Attempted to access an unloaded appdomain. (Exception from HRESULT: 0x80131014).The strange thing is, that it will work flawlessly for a time, and then it will just start happening, and then just disappear again.I have made a few modifications to the function to get it to work , but they all seem to fail. I am wondering if I am doing something wrong, or if there is a bette
CR41G14
c# .net asp.net-mvc asp.net-mvc-4 gzip
Hi what I am trying to achieve is to compress an uploaded file and save this into the database then to decompress on download. I am using C# .NET MVC4.The system does deliver a file available to download, however when I try to open this file it is corrupt. This code works perfectly fine locally, there are no exceptions being thrown on the server and I do get a so I was wondering if anyone has had any issues with GZip on the server? I have had the server guys take a look and they have deemed
Joel Hansen
c# asp.net asp.net-mvc ravendb
Why can’t I make an embedded RavenDB work in a fresh asp.net MVC website?I have successfully tried and tested the following code in a simple .net console application. It works just fine, until I try and use it in an MVC website.It doesn’t throw any error, it just hangs after attempting to Initialize()In my bug-finding process, I installed a RavenDB server on localhost, which I can connect to in my MVC application – that is not a problem. But the initialize error was there before I installed the
Gohar
javascript asp.net-mvc validation datetime validator
I have a Custom Attribute for DateTime validation with given dateformat and also javascript validator which are provide me both client side and server side validation. But now I should change my datetime validation so that it would be performed according clients local DateTime format and I do not know how.I couldn’t find anything that help me.So please advise me how can I implement at least client side DateTime validation or how can I get client’s date format by javascript.
Jon Erickson
asp.net-mvc structuremap godaddy
I am getting a SecurityException (as seen below), even with [assembly: AllowPartiallyTrustedCallers] in my AssemblyInfo.cs.I am deploying to GoDaddy, which is a medium trust environment, which I don’t think StructureMap is set up to run under natively, although the 2.5.3 release notes mention adding the AllowPartiallyTrustedCallers attribute on the assembly level, it doesn’t seem to correct the issue.Is there a code example or something that will point me in the right direction? What am I missin
lokisapocalypse
jquery jquery-ui accordion sortable
This is my first time posting so please let me know if I fail to provide enough details. I have a page that contains multiple accordions. I wanted to use multiple accordions because I wanted users to be able to have multiple sections open at once which is not native to accordion. I also want users to be able to sort those accordions. The way the page is currently set up, users can sort the accordion with no problems. When the user goes to sort the accordions, I have a script that will close all
Akke
javascript jquery jquery-ui dialog callback
I’m writing some form validation functions, and I’ve decided to go with jQueryUI for prompting the user because of flexibility.There is a slight problem tho. I want my functions to return an array which consists of a boolean and a string for my error reporting system. JQueryUI dialogs are asynchronous which means the browser won’t hang and wait for a return value as the native prompt() would.Here is some sample code:Validator function:function verifyTOS_PVM_v2() {verifyTOS_PVM_v2_callback = ”;i
Richard Neil Ilagan
jquery jquery-ui position
jQuery has a native .position() function right out of the box which gets positioning values of an element relative to its location on the page.jQuery UI extends that same function to allow modification of positioning of elements.How do I check if the jQuery UI version of .position() is loaded in a page?Sadly, it isn’t just a matter of checking whether jQuery UI is loaded on a page or not, since the .position() plugin extension is not part of the jQuery UI Core libraries, which means someone some
UrbanPlanet
jquery jquery-ui autocomplete asp.net-mvc-4
List itemI am looking at the JQUERY example on the http://jsfiddle.net/g4stL/212/ link in Jsfiddle website. I am very impressed by the feature. Infact we have to implement the exact same feature on our application.If I copy the code as it is, I am able to see the multicolumn autocomplete. However the selection part does not work. If I select using mouse cursor or using Arrow keys the program fails. The error I get is “htmlfile: Unexpected call to method or property access.”In the append function
Mark Richman
asp.net jquery jquery-ui dialog confirm
I have a TemplateField in a GridView in an UpdatePanel with a button called btnDelete. Rather than the standard OnClientClick=”return confirm(‘Are you sure?’)” I’d like to use jQuery Dialog.So far, I’m able to set the jQuery using btnDelete.Attributes[“onclick”] and setting the jQuery Dialog code in the code-behind. However, it posts back to the server in all cases before I have a chance to click “Confirm” or “Cancel”. Here is the HTML it produces:<input type=”submit” rel=”Are you sure?” clas
Iznogood
jquery jquery-ui jquery-ui-accordion
I have a very simple accordion in my webpage that I initialise with :$(document).ready(function() {$(‘#accordion’).accordion({‘autoheight’:true,’header’: ‘img’});});And later I:<div id=”accordion”><img src=”/public/images/btn_avant.gif” alt=”” /><div><ul><li><a href=”/”>link</a></li><li><a href=”/”>link</a></li></ul></div><img src=”/public/images/btn_pendant.gif” alt=”” /><div>du contenu</div>&l
alex.mo.07
javascript jquery html jquery-ui this
I’m working on what I thought would be a simple chunk of code, trying to dynamically (using ‘this’) animate div blocks to scale (zoom) to the size of the parent container (section tag) on click.My HTML:<section><div id=”project”></div><div id=”project”></div><div id=”project”></div><div id=”project”></div><div id=”project”></div><div id=”project”></div></section>My JavaScript:$(“#project”).click(function() {$(thi
James Montagne
javascript jquery-ui
see the underlying code.function displayProductsByCategory(a){$.getJSON(‘json/newjson.json’, function(data) {$(“#Product_Display_Div”).empty();$(“#Product_Display_Div”).append(‘<h1>’+a.id+'</h1>’);$.each(data[a.id], function(key, item) {//alert(“key :”+item.productPrice+”value :”+item.productName);$(“#Product_Display_Div”).append(‘<ul class=”columns”><li> <h3>’+item.productName+'</h3><img src=”‘+item.ProductImageURL+'” width=”150″ height=”150″ /><p>
Andrew Whitaker
jquery-ui autocomplete jquery-ui-autocomplete
I’m using jQuery UI’s Autocomplete slightly differently than it was probably created to do.Basically I want to keep all the same functionality, the only difference is that when the suggestion box appears, I don’t the suggestion box to hide when a user makes a selection and I also don’t want that selection to populate the input box that .autocomplete is attached to.So, I’ve been reading through the jQuery UI documentation, and it appears there is a way to disable the Select: and Close: events, bu
revaxarts
jquery jquery-ui jquery-ui-sortable
I’m trying to load some html in an iframe and make certain elements in that html page sortable:jsfiddleJS:var _iframe = $(‘iframe’); var containment = _iframe.contents().find( “modules” ); if(containment.data(‘sortable’)) containment.sortable(‘destroy’);containment.sortable({stop: function (event, ui) {console.log(‘STOP: I am never called’);},start: function (event, ui) {console.log(‘START: I am called with a delay!’);},containment: containment,placeholder: “sortable-placeholder”,items: “> mo
leppie
android tabs wifi scan galaxy
I am at the beginning stage on developing an application, which needs scan the wifi APs per second. The scannin part works well on one HTC hero, however, it takes 6 seconds for my galaxy tab to finish one scan. I write a very simple program, scanning wifi continously and note down how long it takes for one scan. (from wifi.startScan() to receiver get results). In HTC phone, it’s 500 ms, but in Samsung tab, it takes 6s on average. I wonder if anyone can help me to solve this problem. Is it becau
Eddie
java android android-fragments tabs
I have an Activity, which has 2 text fields and a button; when the button is clicked the text in the text fields are uploaded to sql remote server.it works fine.Now i want to create a swipe/tab view. i have done that,and till this it is fine. Now i want the above activity to be shown under this swipe view,in one of the tab. The GUI is fine . but when i click the button to upload, it shows the error.following is the code,which works when it is a separate activity: AddComment.javapackage overskov.
eggdeng
java android tabs android-actionbar
A week later, I am still trying without success to create a tabbed action bar with v7 support to be able to switch between fragments. This is my first effort at an android app in native code and I am new to Java.My Main.Activity.java looks like thispackage com.example.appcompattest;import android.os.Bundle; import android.app.Activity; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentTransaction; import android.view.Menu; import android.support.v7.app.ActionBar; impo
Juan José Torres Díaz
android facebook tabs scrollable inflate
I am developing an Android application with navigation “Scrollable tabs + Swipe” using the Facebook API. Now, when I try to call the class UserSettingsFragment facebook API and inflate for incorporation into a TAB I get an error that I can not solve.This is the code:public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {int fragment_seleccionado =getArguments().getInt(ARG_SECTION_NUMBER);switch (fragment_seleccionado){case 1:View View1 = inflater.inflat
Karanveer Singh Sodhi
tabs window titanium titanium-mobile photo-gallery
I am using titanium to make a small app where i can click on a ‘gallery’ button located in a window and it opens photogallery. On selecting the photo it should move to next window. But what it does is, it closes the photogallery first, after that i can see my first(button) screen and then it opens the next window. I dont want it to show the previous window. Is there a way to do it??I am adding windows to tabs . Below is my code .cameraButton.addEventListener(‘click’,function(e){chooseImageFromGa
Gabriel Theron
jquery css tabs
I’m using jQuery tabs for an interface. I’d like my main div (the tab overlay) to take the pages’ dimensions. For the moment, it is working for the overlay, but the tabs’ length is automatic, and is as small as the content allows it (nothing unusual or unexpected).So in a nutshell, my question is : how do I make the tabs take exactly the right dimensions? I’ve tried making them larger but they seems to force the overlay to get bigger, even though they do not reach the bottom of the page.Edit : c
darnpunk
php session tabs
I’ve done a booking application done using CakePHP which involves a few steps before the checkout page. In between these steps I store the information in the session. How it works is that Step 1 requires them to fill in their information. When going to Step 2, the information in Step 1 will be saved into the session object. As they proceed in the other steps, the process repeats. At the end when they checkout, all the data is then saved to the database.Everything works great if the user opens on
Karunagara Pandi
selenium hyperlink tabs ide
I’m using Selenium IDE 2.4.0 version for testing our web application. In a scenario, when I click on the link from the web page, it opens a new tab. There I’ll be performing some action such as entering data and saving the action etc.My problem is, Selenium IDE recording the hyperlink but it does not open the new tab and it is displaying the following error message in the Log.[warn] Link has target ‘_blank’, which is not supported in Selenium! Randomizing target to be: selenium_blank64967 [error
kranthi
jquery dynamic tabs
I have an aspx page on which I have 2 static jquery tabs.Upon clicking on a button avaiable on one of these tabs,I would like to add a new tab dynamically,which gets its content loaded from another aspx page.I’ve also tried with the following samplehttp://jquery-ui.googlecode.com/svn/trunk/demos/tabs/manipulation.htmlI’ve downloaded jquery-ui-1.8rc3.custom zip file and tried to add the above page with the relevant script,css files to my asp.net website and run,but it does not seem to work.Also I
William Niu
ajax jquery-ui tabs jquery-ui-tabs
When the caching remains disabled (i.e. cache: false), how can I prevent the tab from loading the remote content again? Essentially, I would like to select a tab but not load it.
Hedde
seo google indexing multilingual django
I am trying to create a multilingual website using the Django framework, all default content is English. I have added a native translation (Dutch).https://mydomain.com/ redirects to the user request language setting. (This is default behaviour by adding Django’s LocaleMiddleware)LocaleMiddleware tries to determine the user’s language preference byfollowing this algorithm:First, it looks for the language prefix in the requested URL. This isonly performed when you are using the i18n_patterns funct
Kim Miller
heroku seo web-crawler robot
Google can not access our robots.txt file when trying to crawl our site…. www.spokenvote.orgIn Google’s Webmaster tools, Fetch as Google, the error reads: Unreachable robots.txtWe have the exact same code deployed on on anotehr Heroku app, staging.spokenvote.org, where Google is able to access the robots.txt fine.Tailing the Heroku logs, the error message thrown by Heroku is an H13:2014-01-04T21:11:32.042768+00:00 app[web.1]: !! Rack application returned nil body. Probably you wanted it to be
nachito
php .htaccess seo opencart
How can you customize system URLs in OpenCart? For example, I would like http://example.com/index.php?route=checkout/cart to be displayed as http://example.com/cartI know OpenCart provides SEO URLs for products, categories, manufacturers and information pages, but it doesn’t look like there is anything built-in (at least prior to version 1.5.0) for anything else.
Prateek Chachra
seo google google-webmaster-tools search
So i have this website-www.listen2science.com, a few days back i installed a plugin called seo for wordpress and posts of my site appeared on the top pages of google, but now even if i copy the whole of the title and search it doesnt appear in any result. Why is it happening? Also my site index on webmasters is zero still when i search for site:listen2science.com all my posts appear. And also if i search for my domain mine is the first result that comes so it turns out my site isnt blacklisted.
Zistoloen
seo html
Is it okay (SEO-wise) to construct the following line as such:<p>These are the best <h1> Cheap Widgets </h1> ever. </p>Wondering if this looks too unnatural for search engines?
Zistoloen
seo htaccess serps migration
I’d greatly appreciate a response on the following question relating to site migration and SEO impact. Here’s some background on how my domain name and site is currently configured:My domain name provider has the following settings:host name @ is an A NAME record and points to IP address x.x.x.x host name www is an A NAME record and points to IP address x.x.x.x sub-domain host name new.example.com is an A NAME record and points to IP address x.x.x.xMy hosting provider has the following setting
dan
seo google-search keywords search-results
When I was searching for the sentence “SEO interview questions and answers for experienced” in Google.co.in I found so many results with the title “SEO interview questions and answers for fresher”, and it is also highlighting the word “Fresher” in the results page. I know that Google would show results by using the meaning of the keyword, but in this case “Experienced” and “Fresher” are entirely opposite in meaning, as well as in the difficulty of questions (i.e., Question difficulty would be di
Rob
c# asp.net asp.net-mvc-3 seo
I want to use canonical url’s in my website. I read a few things about it on the internet, but i’m looking for a solution which will automatically generate the canonical for me runtime and add it in the html-code returned to the browser. I’ve already found an example on the internet using an attribute, but this is not what i’m looking for. Using an attribute i’m still deciding which page should get an canonical or not myself, I want every page to have one generated automatically. I take it there
bybe
seo forum
Given the following forum post:Basics of how internals of Construct workI’ve used GameMaker in the past. And Iknow some C++ and have used a few 3dengines with it. I have also looked atUnity, though I didn’t get too muchinto it. So I know my way aroundprogramming etc…My question is, how does constructwork internally? I know it allowspython scripting, which itself is”technically” interpreted, thoughpython is pretty fast as far as beinginterpreted goes. But what about therest? Is the executable t
John Conde
seo wordpress search-engines
Recently, I uploaded a new site to an existing domain and I’d like to figure out how I can forward all links to said domain to a new domain.I’m looking for a wordpress solution if possible, but in the end I I seem myself writing a small header script that I will paste into ever directory’s index file saying header(‘Location:http://xxx.yyy.zzz’)Is there a cleaner way to do this without having to resort to managing the whole file structure?No, I do not have access to the apache runtime. Unfortunat
Răzvan Panda
php postback
If I pass PHP variables with ‘.’ in their names via $_GET PHP auto-replaces them with ‘_’ characters. For example:<?php echo “url is “.$_SERVER[‘REQUEST_URI’].”<p>”; echo “x.y is “.$_GET[‘x.y’].”.<p>”; echo “x_y is “.$_GET[‘x_y’].”.<p>”;… outputs the following:url is /SpShipTool/php/testGetUrl.php?x.y=a.b x.y is . x_y is a.b…. my question is this: is there any way I can get this to stop ? Cannot for the life of me figure out what I’ve done to deserve this 🙁 PHP version
abatishchev
c# asp.net .net postback fatal-error
I have encountered an unexpected behaviour and/or bug in the .net postback system.I have a page that uses a master page to provide common elements, with form inputs split between the child and master pages. The form submit button is located on the master page, and I am attempting to process postback on the masterpage.Any time I attempt to submit data where the form contains any non empty values and the url contains parameters, the page fails to process correctly. This does not occur if the page
djechelon
asp.net textbox postback
I have the following problem in ASP.NET: there is a form that contains a textbox and a button next to it that is supposed to be pressed by the user after filling the box (sample on http://www.burnthespam.info, click “Pick your one”, or when using ReCaptcha in a popup). Often, instead, users press ENTER key to submit the form.This doesn’t cause the click event on the button to be triggered and possibly cause an unexpected behaviour. In burnthespam, I “tried” to solve by checking if there is data
David
javascript asp.net postback
I’ve just added some JavaScript to the onclick of a Button in ASP.NET to disable the button (in order to prevent the user submitting the form twice).When I click this button, the page posts back fine but no control event handler runs – ASP.NET seems unable to determine which control posted the page back.I’m a bit stumped by this unexpected behaviour. Can anyone explain it and suggest an alternative way of doing this?
leppie
.net asp.net forms postback
I’ve noticed that, during a postback, Request.Form[MyControl.ClientID] is null. However, Request.Form[MyControl.Name] contains the expected value.This is unexpected. Is this documented somewhere?
laconicdev
asp.net postback
We are creating a new user control using a boiler plate template for our application. We noticed that anytime a textbox on the new user control has a focus and the enter key is pressed, the form executes a postback. This happens even if the AutoPostback on the text box is set to true. No other user controls in our app behave this way. What could be some of the places for me too look?Thanks!
segaco
asp.net-ajax postback ajaxcontroltoolkit modalpopupextender
I follow the example in Atlas: Creating a Confirmation Using the ModalPopup Extender to make a postback when the OkButton in a ModalPopup is clicked (it uses the ModalPopupExtender that comes in ASP.NET Ajax Control Toolkit), but as I can see, the Sys.WebForms.PostBackAction() is no longer present in ASP.NET AJAX (the example is for Atlas). When I run it the “Microsoft JScript runtime error: Object expected” error message raises, in the line in javascript where I create the PostBackAction. How c
Fly_Trap
javascript asp.net ajax postback viewstate
I am generating 2 dropdown boxes and a CheckBoxList control at runtime using AJAX callbacks to a web service (.asmx file). The service creates the two Dropdowns and CheckBoxList on the server and returns the rendered html as a string which is injected into the web page at runtime, using javascript functions.During postBack I want to obtain the values of the two dropdown boxes and also determine which (if any) of the checkboxes have been ticked.Am I right in thinking that the HTML that is injecte
Michael Haren
asp.net postback
I have some code in the load event of my page which should only run the first time the page is loaded, however, it runs everytime ‘refresh’ is clicked on the browser EVEN THOUGH i am checking for postbacks:If not page.ispostback then’ Code… End if
kOvergaard
c# asp.net gridview updatepanel postback
I’ve got serious gridview trouble. The rowcommand in my dynamically created gridview isn’t firing. Controls_ucOffice userControl = (Controls_ucOffice)LoadControl(“~/Controls/ucOffice.ascx”);userControl.ID = *Unique ID*GridView gvPhones =(GridView) userControl.FindControl(“myGridView”);gvPhones.DataSource = cPhoneList;gvPhones.DataBind();placeholder1.Controls.Add(userControl);i’m making several of these controls, and they all appear fine with the gridviews, with the right data. this is done on a
Web site is in building