Question: I have this website created in asp.net. On my test server, it works properly in every browser, but on the client's server it doesn't work in Chrome.

Apart from the `web.config` file, the files are an exact copy of each other, which makes me think that it is a configuration problem (either a problem with web.config or with the IIS/site configuration)

Right now, it should look like this when hovering over a menu item:

[![enter image description here](https://i.stack.imgur.com/4hF8A.png)](https://i.stack.imgur.com/4hF8A.png)

but when hovering the item, the submenu doesn't appear, and instead yo can click on the item to see this:

[![enter image description here](https://i.stack.imgur.com/ZwrNY.png)](https://i.stack.imgur.com/ZwrNY.png)

I kinda see all submenu items, but clearly not properly (I can barely read them).

Answer: 
> 
> is it legal to put the try-block right after the if condition?
> 
> 
> 

It is legal. Your code is same as (and better to write as):

```
if (true) {
    try
    {
        // works as expected with both true and false, but is it legal?
    }
    catch (...)
    {
        // ...
    }
}

```

So if the condition is `false` then the `try-catch` block won't be executed. If this is what you expect, it's fine.
It's well-formed. *try-block*s are *statement*s as per [[stmt.stmt]/1](http://eel.is/c++draft/stmt.stmt#1), and *statement*s are following `if (…)` as per [[stmt.select]/1](http://eel.is/c++draft/stmt.select#1).