Web Languages and Standards





Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, and social network services using a wide variety of languages and standards, including the familiar HTML, JavaScript and jQuery, ASP and ASP.NET, PHP, ColdFusion, CSS, PHP, Flex and Flash, but also the implementation of a broad list of standards including XML, WSDL, SSDL, VoiceXML and many more.

Share tech news, updates, or what's on your mind.

Sign up to Post

How to read Child tags under parent tag with name space in C#?
<ns:tag1></ns tag1>

How to read child 1 tag?
I am able to till ns:tag2 but unable to read any further tag.
var child = parentElement.Descendants(ns + "tags").First();
This provides list of child tags, but unable to further read it.
Tried a few things like:
and child.Element("child1") (with all possible sub functions)
Even tried to reload the xml from tag2 in XElement again but that threw invalid xml exception.
but all are throwing null pointer exceptions.
Cloud Class® Course: Microsoft Windows 7 Basic
LVL 12
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

hi there,

Currently I'm trying to create, sign & broadcast bitcoin transaction using btcsuite. For start, I've already had testnet3 address & its associated privatekey for testing. However, hunting through the post and articles like below:-


The solution proposed above its not complete, for first one, it only covers until signing (i knew the author claimed its not broadcastable unless you provide the utxo which i did if i'm right) but when tried to braodcast it failed with message

"Error validating transaction: Transaction be9b294695bfb201a5cff32af074a4bf72b073e3c9dad1969111165bf118a622 orphaned, missing reference f0c0d3b3eecf911ede996a74ceadc9366068791450c9e6bacee9ae202f3690d1."

I have no idea what's going on and I suspect its script is incompatible.

So, the bottom line is I just want a workable example in bitcoin testnet3 that shows "from 1 address transfer some bitcoin to other address" by showing the process of creating raw transaction, sign it with private key, turn it to raw transaction in hex format & broadcast it using something like https://live.blockcypher.com/btc/pushtx/ (BTC testnet)

currently my code is as follow:-

package main
import (

Open in new window

I am exploring xml and am trying to write nested XML elements like this in Windows Powershell:






I am completely new to writing XML as well as using powershell, so if you can keep the training wheels on with your explanation/example, I would greatly appreciate it.


I need to write this code in global.asa. GetLastDateandTime is working fine. I need to put that in the session. If user is present then we get the data from the database. This function is working fine. If user is not present then we are using update function. My update function is not working. Page is down. I am not sure how to fix the update function.

Sub S[b]ession_OnStart[/b]

Dim objConn, objRs, strConn

Set objRs = Server.CreateObject("ADODB.Recordset")

Set objConn = Server.CreateObject("ADODB.Connection")                                                                                     


strConn = "test;"


objConn.Open strConn

dim strUser

strUser = request.servervariables("logon_user")

dim strDateAndTime = Now()       

If (strUser <> "" ) then

    Session("LastDateTime") = GetLastDateandTime(strUser, objRs,objConn)

   UpdateLastDateAndTime(strUser, strDateAndTime, objRs,objConn);[/b]

End If


Set objRs = Nothing

Set objConn = Nothing

End If


End Sub



Function GetLastDateandTime( ByVal strUser, ByRef objRs, ByRef objConn)



    Dim cmd


       Set cmd = Server.CreateObject("ADODB.Command")                            

       Set cmd.ActiveConnection = objConn


       cmd.CommandText = "usp_GetLastDateandTime"


Open in new window

Hi Experts,

Could any one tell me what does testing a website to be compliant with WCAG 2.0 Level A and AA involve?

Are there any curses for this?

What is the going rate for this?

I'm also wondering, what are the types of assistive devices covered, so that I can recruit the right persons with disabilities (myself included ), and what to test for. The client is asking for testers with disabilities.

Thank you.
I am trying to set up a simple htaccess redirect, I want to move all traffic from one folder to the home page

I copied and pasted this code from another server that has been using it for years,

when I test it, i get a safari timeout error "Safari cant open page, too many redirects.."

this is my code, in a wordpress site, at bottom of .htacess below wordpress, toast, other plugins code

RewriteEngine On
Options +FollowSymLinks -Indexes

redirect 301 /mce_activity https://oala.ca/

Open in new window

Dear Experts,

I have an asp.net website that uses identity 2.1 (I'm pretty sure > 2.0 anyways as near as I can tell). It is written in visual basic. I ran into a weird issue the other day where people were logging in and getting this viewstate error:

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

So I followed the advice I found in the microsoft article and added a machine key to the web.config file so that no matter what it (hopefully) shouldn't get that error again.

Once the machine key was changed to one that I set now we had issues with anyone with an already existant authorization cookie on their computer, they were unable to login. I believe it's because the machine key that I set no longer matched the one that was used in their cookie. I'm not entirely clear how, but apparently it's part of how it's encrypted. If they clear their cookies, all is well - then they could login.

So one bit of advice I found searching on the web sounded super simple and super-easy. They recommended that you have some sort of set key in your web.config, like a guid or something and then you add it to your cookie also. Then, when you load the cookie, you can check the key and if it doesn't match your server key, somehow you invalidate the cookie.

I basically spent all day trying to figure out …

I was looking for some guidance on the approach to a specific user experience and how people would approach it or if someone has done something like this already.

I have a simple PHP script that enters a value from a text box into the database when the 'add' button is clicked or the user hits enter after entering a value (script below).

What I would like to do is allow a user to hit the enter key when they add their record (as it works below), but if the user were to hit the enter key again, within 4 seconds, it would bring up the full record that they could edit. It is because sometimes the user will only add the one value, but sometimes they will add the one value and also want to view and edit some other fields for that record - how would others approach this from a scripting perspective and also side topic on the User Experience side; are there better ways to do this?

$form = "<form action='./dash_hit46.php' method='post'>" .PHP_EOL;
$form .="<input type='text' id='newadd' name='newadd' placeholder='e.g. x'>" .PHP_EOL;
$form .="<input type='submit' value='add' name='add'>" .PHP_EOL;
$form .="</form>";

if ($_POST['add']){
	$newadd = $_POST['newadd'];
		if ($newadd){

		// Check connection
if ($conn_task2->connect_error) {
    die("Connection failed: " . $conn_task2->connect_error);

$sql = "INSERT INTO main (tsk_name, tsk_person, tsk_user_link)
VALUES ('$newadd', 'me', '$UID')";

if ($conn_task2->query($sql) === TRUE) {
    echo "New

Open in new window

I am migrating a Magento 1 module to be used on the Magento 2 platform.  All of the code has been migrated and produces the expected results but in Magento's technical review process it fails the varnish check.Capture.PNGMy initial research into the issue shows that you should specify cachable=false on your block elements or by setting the _isScopePrivate property in your defined Block PHP file.  The only problem is that I do not have any block elements.

I have created one to try and combat this issue but the module does not require any block elements.  The module works by appending the quote results to a rateResultFactory which is then displayed on the Checkout screen.

I have also tried to use the method described here to try and retrieve any dynamic data without requiring the cacheable flag.

Any help would be tremendously appreciated.

I had this question after viewing Auto refresh webpage but maintain scroll position.

I love the assisted solution, but when using a .mht file it does not work.
Internet Explorer asks if I want to open the file and the mht file opens in a new window.

How can I open, refresh (and stay on scroll) of an excel generated mht file?
Cloud Class® Course: Microsoft Office 2010
LVL 12
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

I am using a @foreach() loop in razor view to pass variables to a table cell as shown below. using ajax calls, i want to fetch different values from a database and display them on the table cells on a button click event. The ajax calls are successful and i can return the right data to the model but the cell values do not change after initial load. How can i make the cell values update automatically every time the model changes
code sample
I have a SharePoint list app that uses workflows....

I have one multi-line field that I am using for a history field where I place a quick entry on updates....

This technique uses string builder in the workflow...  What I am trying to achieve is:

date for latest entry
blank line
previous entries

I can not get a CR to work at all, have tried all three format and <br/>

I come across the following link


Custom Filter OR Servlet Filter or AccessDecisionVoter

Need to provide access to user after login to the pages or actions based on certain conditions (user is active or user expiration date is over or user doesn't have any orders) and looking for a custom spring security. In the above which one would be suitable in this case and need a good code snippet to achieve it.
I have a VB.Net page where I have implemented Impersonation using help from the following post:
"go to the post on impersonation using VB.Net"

Although it seems to be working when I access the page from the IIS server (not local) but when other users try to access it then they get the following error message:

An error occurred while attempting to impersonate.  Execution of this request cannot continue.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: An error occurred while attempting to impersonate.  Execution of this request cannot continue.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): An error occurred while attempting to impersonate.  Execution of this request cannot continue.]
   System.Web.ImpersonationContext.get_CurrentThreadTokenExists() +227
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +12491258
I have a HTML code that i use for the gmail signature. The change that i want to make to that is if there is no mobile number to that particular person my code still shows mobile at the signature with no number to it, Is there any way i can use if else statement to take that mobile text away if there is no mobile number to that person.

Here's my previous Code:

<p style="text-align: left;"><span style="color: #206694;"><strong>Phone</strong></span>&nbsp;$phoneBusiness &nbsp;&bull; &nbsp;<strong><span style="color: #206694;">Mobile</span></strong>&nbsp;$phoneMobile &nbsp;&bull; &nbsp;<span style="color: #206694;"><strong>Email</strong></span>&nbsp;$mailPrimary</p>
<hr style="height: 3px; color: #206694; background-color: #206694;" noshade="noshade" width="100%" />
<p style="text-align: center;"><span style="color: #206694;"><strong>$orgDescription&nbsp;</strong></span></p>

thank you in advance
Cannot request a new account in WkikMedia

Please look at chaliceuucongregation.org, then click "Chalice Wiki" (last item on the menu).

On the right sidebar, click "Request an Account", goes to "Get an Account" page. Click Request an Account, loops back to the prior page.

Used to work, we moved hosts, not sure if it has worked since then.

Any ideas on how to address this?

I have upgraded my application from Angular 4 to Angular 5. After the upgrade the glyphicon icons are not showing up

<span class="glyphicon glyphicon-user" style="cursor:pointer"></span>

Open in new window

In the browser console, this error is displayed

Glyphicon error
I continue to use the same version of bootstap v3.3.7 and it is also included in angular-cli.json (no changes here as well)

"styles": [

Open in new window

Is there something else that needs to be done in order to make the icons work? Other bootstrap styling is working fine.
1. What is BindingResult?
2. When to use BindingResult?
3. Assume @ControllerAdvice is used in a project to handle errors. How BindingResult can be retrieved or processed in @ControllerAdvice
4. Is BindingResult is used for only presentation validations or can be used for business validations as well ?
How to perform validation on input fields when a continue button is selected using Angular 4
Please see code below:
    ViewData["Title"] = "Medical | Step 1: Let's Get Started";
<!DOCTYPE html>
    <meta charset="utf-8">
    <title>BeneFITwise | Let's Get Started</title>
        .error {
            border-color: red;
    @*<link data-require="bootstrap@*" data-semver="3.3.2" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />*@
    @*<link data-semver="3.3.2" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular-messages.js"></script>
        <link rel="stylesheet" href="style.css" />
        <script src="script.js"></script>*@
<body ng-app="myApp" ng-controller="myCtrl">
    <section class="content">
        <div class="content container-fluid">
            <div class="mbe-2000px-max-width">
                @*<!-- Breadcrumb section -->
                    <ol class="breadcrumb mbe-breadcrumb">
                        <li><a href="welcome-page.html" title="Return Home"><i class="fa fa-home"></i></a></li>
                        <li class="active">Medical</li>
                    <!-- End of breadcrumb section 

Open in new window

Get your problem seen by more experts
LVL 12
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

After upgrading to Windows 10, my local Development Copy of the code using my local IIS Express Version 10 is unable to get the current HttpContext.  The same code
works on our Development and Live Server that are running IIS 8.5.    I need help updating the code since it appears I can't use HttpContext.Current anymore.  

/// <summary>
        /// Returns the URL for this link
        /// </summary> 
        public string trueUrl
                if (url != null)
                    return url;

                if (HttpContext.Current != null)
                    var urlhelper = new UrlHelper(HttpContext.Current.Request.RequestContext);
                    return urlhelper.Action(action, controller, new { area = area });

                return "ERROR";

Open in new window

Hello, I  have a Wordpress theme, on this theme I would like to reorder the some front page Widgets.  For a visual representation of the Widgets please see Webpage.jpg.  I would like to swap A with B.

The code below shows my home-template.php (I have also attached this page).

I have numbered the Hooks from 1 - 6.  I would like to reorder number 4 with number 6.   I can reorder all of the Hooks using priority, apart from number 4 (why is this?).
* Template Name: Home Page
do_action( 'genesis_home' );
//* Force full-width-content layout setting
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

**// Execute Home Top - Slider image  1**

add_action( 'genesis_after_header', 'wsm_home_top');
function wsm_home_top() {
	genesis_widget_area( 'slider', array( 'before' => '<div class="home-slider widget-area">', 'after' => '</div>') );

**// Execute Home Top - Additional News Banner 2**

add_action( 'genesis_after_header', 'wsm_home_featured', 15 );
function wsm_home_featured() {
	genesis_widget_area( 'home-top-featured', array( 'before' => '<div class="home-top-featured widget-area"><div class="wrap">', 'after' => '</div></div>') );

**// Remove the standard loop 3**
remove_action( 'genesis_loop', 'genesis_do_loop' );

**// Execute Home Mid Section - Three layer widget section 4**

add_action( 'genesis_loop', 'wsm_home_loop_helper' );
function wsm_home_loop_helper() {
	echo'<div class="home-mid widget-area">';

Open in new window

I need to integrate Apple Pays decrypted Payment Token Format into a Stripe Rest API call. This does not require any Stripe SDK's or JS files. The raw apple pay token information has already been decrypted ready for stripe to process via 'Source', 'Token', 'Charge' etc. Stripe support will not disclose the solution but acknowledge its possible, why, i am not sure? Spreedly does exactly as i am describing with Stripe, passing in the information below, but how is it correctly structured?

This is the what a decrypted Apple Pay payment token format looks like:

Good afternoon everybody. I wonder if you can advise me on the following, or signpost me to any resources that might help ?

I'm trying to create a Norwegian website (don't ask). However, it doesn't seem to like 'special' characters in links.
For example, I have a page called "transportører.php".

On another page, I have a link to it.. hence
<a href="transportører.php">Link Text</a>

Open in new window


All well and good. But when I CLICK on that link, it attempts to go to a (non-existent) page called "transportører.php".
Clearly, the text "transportører" is being mangled during the lookup process. The ø character is being mutated into 'ø' (an A with a tilde, followed by a comma).

Any thoughts on what I am doing wrong ? Why can't I have a link called "transportører.php". (a similar phenomena occurs with all other "special" Norwegian characters with diacretics).

I know that the host component of the URL is shielded by Punycode, but this doesn't seem to work with the file-path part.

Yours in perplexity,

I want to add page loading spinner in my Angular 2 application.. I have some side bar subscriptions which added in main component and calling the side bar subscriptions  like print, when it takes tile to print or search i want to show the loading spinner,,

any one work on Sadad Payment Method Alinma Bank?

Web Languages and Standards





Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, and social network services using a wide variety of languages and standards, including the familiar HTML, JavaScript and jQuery, ASP and ASP.NET, PHP, ColdFusion, CSS, PHP, Flex and Flash, but also the implementation of a broad list of standards including XML, WSDL, SSDL, VoiceXML and many more.