I'm trying to implement a nested gridview with expand/collapse functionality. My problem is that the jquery click function is not working. The scenario is as follows:

JQUERY:

$("[src*=plus]").on("click", "img", function () {
            alert('hi');
            $(this).closest("tr").after("<tr><td></td><td colspan = '999'>" + $(this).next().html() + "</td></tr>")
            $(this).attr("src", "images/minus.png");
        });
        $("[src*=minus]").on("click", "img", function () {
            $(this).attr("src", "images/plus.png");
            $(this).closest("tr").next().remove();
        });

GRIDVIEW:

<asp:GridView ID="gvCustomers" runat="server" AutoGenerateColumns="false"
        DataKeyNames="Id" OnRowDataBound="OnRowDataBound">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <img alt = "" style="cursor: pointer" src="images/plus.png" />
                    <asp:Panel ID="pnlOrders" runat="server" Style="display: none">
                        <asp:GridView ID="gvOrders" runat="server" AutoGenerateColumns="false">
                            <Columns>
                                <asp:BoundField ItemStyle-Width="150px" DataField="Id" HeaderText="Order Id" />
                                <asp:BoundField ItemStyle-Width="150px" DataField="Policy" HeaderText="Date" />
                            </Columns>
                        </asp:GridView>
                    </asp:Panel>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField ItemStyle-Width="150px" DataField="Id" HeaderText="Contact Name" />
            <asp:BoundField ItemStyle-Width="150px" DataField="Name" HeaderText="City" />
        </Columns>
    </asp:GridView>

Now, if I change the .on() method with the .live() method, then it works just fine. Any of you jQuey savvy people know what I'm doing wrong. Thanks!

I try to make https on my asp.net mvc website like this in web config

<rewrite>
  <rules>
    <rule name="Redirect to https">
      <match url="(.*)"/>
      <conditions>
        <add input="{HTTPS}" pattern="Off"/>
      </conditions>
      <action type="Redirect" url="https://{HTTP_HOST}/{R:1}"/>
    </rule>
  </rules>
</rewrite>

But when I compile project on localhost I have this error

Error

On staging all okay.

Where is my problem?

According to MSDN

Both the local log in and social log in check to see if 2FA is enabled. If 2FA is enabled, the SignInManager logon method returns SignInStatus.RequiresVerification, and the user will be redirected to the SendCode action method, where they will have to enter the code to complete the log in sequence. If the user has RememberMe is set on the users local cookie, the SignInManager will return SignInStatus.Success and they will not have to go through 2FA.

I do want the user to be able to use the remember me feature of the application but I can not figure out how to get the cookie to ditch this setting so that the SignInStatus returns RequiresVerifacation. I'm actually not even 100% sure that the cookie is causing it. All I know is that I have enabled TFA and in AspUsers table I can see that TwoFactorEnabled is set to true but the status is always returning as Success.

I 'm trying to connect postgresql database remotely ( Heroku ). I use ASP Web api but always i have the same exception :Message "28000: no pg_hba.conf entry for host \"xx.xxx.xxx.xxxx\", user \"User", database \"databasename\", SSL off" I search some solution by editing the pg_hba.conf file and i add : host databasename username xx.xxx.xxx.xxxx md5 and no change .

My controller's Create method binds to a TestCase object:

public async Task<IActionResult> Create([Bind("Name, Description")] TestCase testCase)

and the View that does the model bind takes a ViewModel in, which is specified like so:

 public class CreateTestCaseViewModel
    {
        public string ProjectName { get; set; }

        public TestCase TestCase { get; set; }
    }

My view's code (which is just a form where you input Name and Description, and submit) is:

@model CreateTestCaseViewModel

@{
    ViewData["Title"] = "Create";
}

<h2>Create Test Case</h2>

<form asp-action="Create">
    <div class="form-horizontal">
        <hr />
        <div asp-validation-summary="ModelOnly" class="text-danger"></div>
        <div class="form-group">
            <label asp-for="TestCase.Name" class="col-md-2 control-label">
</label>
            <div class="col-md-10">
                <input asp-for="TestCase.Name" class="form-control" />
                <span asp-validation-for="TestCase.Name" class="text-danger"></span>
        </div>
    </div>

    <div asp-validation-summary="ModelOnly" class="text-danger"></div>
    <div class="form-group">
        <label asp-for="TestCase.Description" class="col-md-2 control-label"></label>
        <div class="col-md-8">
            @*<input asp-for="Description" class="form-control" />*@
            <input asp-for="TestCase.Description" textarea class="form-control" id="Description" rows="5"/>

            <span asp-validation-for="TestCase.Description" class="text-danger"></span>
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <input type="submit" value="Create" class="btn btn-default"/>
        </div>
    </div>
</div>

<div>
        <a asp-action="Details">Back to List</a>
    </div>

    @section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}

My goal is for my method to be able to take the ProjectName as an argument as well:

public async Task<IActionResult> Create([Bind("Name, Description")] TestCase testCase, string projectName)

How can I add it from the View?

I have a DropDownList in a GridView where the items for the DropDownList are retrieved with a database query. The following works:

<asp:TemplateField HeaderText="REWORK CATEGORIE">
    <ItemTemplate>
        <asp:SqlDataSource ID="REWORKCATEGORIE" runat="server" ConnectionString="<%$ ConnectionStrings:SQL_IP21 %>"
            SelectCommand="SELECT ID, CATEGORIE AS RWCAT FROM [LAB].[dbo].[IEP_CONFIG_CATREWORK]"></asp:SqlDataSource>
        <asp:DropDownList ID="ddlCategorie" AutoPostBack="true" DataTextField="RWCAT" DataValueField="RWCAT" DataSourceID="REWORKCATEGORIE" runat="server"  Width="120" SelectedValue='<%# Bind("RWCAT") %>'>
        </asp:DropDownList>
  </ItemTemplate>
</asp:TemplateField>

where I am binding the value in the DropDownList with the RWCAT field in the GridView DataSource.

However, what I need to do is bind the DropDownList with the CATID field in the GridView DataSource:

<asp:TemplateField HeaderText="REWORK CATEGORIE">
    <ItemTemplate>
        <asp:SqlDataSource ID="REWORKCATEGORIE" runat="server" ConnectionString="<%$ ConnectionStrings:SQL_IP21 %>"
            SelectCommand="SELECT ID AS CATID, CATEGORIE AS RWCAT FROM [LAB].[dbo].[IEP_CONFIG_CATREWORK]"></asp:SqlDataSource>
        <asp:DropDownList ID="ddlCategorie" AutoPostBack="true" DataTextField="RWCAT" DataValueField="CATID" DataSourceID="REWORKCATEGORIE" runat="server"  Width="120" SelectedValue='<%# Bind("CATID") %>'>
        </asp:DropDownList>
  </ItemTemplate>
</asp:TemplateField>

but when I try this I get the following error:

'ddlCategorie' has a SelectedValue which is invalid because it does not exist in the list of items.

The DataSource for the GridView is (stipped down a bit for brevity):

<asp:SqlDataSource ID="IEPBATCH" runat="server"
    ConnectionString="<%$ ConnectionStrings:SQL_IP21 %>"
    ProviderName="<%$ ConnectionStrings:SQL_IP21.ProviderName %>"
    SelectCommand="select 
                        [B].[BATCH_NR] as [BATCH_NR]
                        ,[C].[CATEGORIE] as [RWCAT]
						,[C].[ID] as [CATID]
                        from LAB.dbo.IEP_BATCH B
                        LEFT OUTER JOIN LAB.dbo.IEP_REWORK_LABO L  ON B.BATCH_NR = L.BATCH_NR
                        LEFT OUTER JOIN LAB.dbo.IEP_CONFIG_CATREWORK C ON L.REWORKCAT=C.ID  
                        order by B.BATCH_NR desc">
</asp:SqlDataSource>

I've been looking this over for hours now and for the life of me cannot figure out why the first one works, but not the second.

Any help would be greatly appreciated.

I wanna update just one parameter of record in my BD... not whole record, but just one parameter (Stav). I am using NHibernate and I access trought DAO.

            Rezervace_dao rezervaceDao = new Rezervace_dao();
            r.Stav = 1;
            rezervaceDao.Update(r);

code above update whole record, but that's not what I want.

Thank you a lot.

Style of dropdown in css changes when the page loads. i have tried a number of ways to solve the problem. also i am not able to find dropdownlist id in Update Trigger... any suggestions to help me out...i am stuck at this..thank you in advance...

        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:GridView runat="server" ID="gvDetails" AutoGenerateColumns="False" ShowHeaderWhenEmpty="True"
                    ForeColor="#333333" GridLines="None" ShowFooter="True" Width="855px">

                    <Columns>
                        <asp:BoundField DataField="SNo" HeaderText="S.N." ReadOnly="true" />
                        <asp:TemplateField Items Detail"
                            ControlStyle-Width="150px" ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                                <asp:DropDownList ID="ddlItem" runat="server" ForeColor="Black" Height="35px" CssClass="chzn-select"
                                    Style="width: 210px;" Font-Bold="false" AutoPostBack="true" OnSelectedIndexChanged="ddlItem_SelectedIndexChanged">
                                </asp:DropDownList>
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:Label ID="lblTotalText" runat="server" Text="Total :"></asp:Label>
                            </FooterTemplate>
                            <ControlStyle Width="150px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ControlStyle-Width="0px" Visible="true">
                            <ItemTemplate>
                                <asp:TextBox ID="txtMRP" runat="server" Enabled="false" Visible="true" BorderStyle="None"
                                    BackColor="White" />
                            </ItemTemplate>
                            <ControlStyle Width="0px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ControlStyle-Width="0px" Visible="true">
                            <ItemTemplate>
                                <asp:TextBox ID="txtAmount" runat="server" Enabled="false" Visible="true" BorderStyle="None"
                                    BackColor="White" />
                            </ItemTemplate>
                            <ControlStyle Width="0px" />
                        </asp:TemplateField>

                    </Columns>

                </asp:GridView>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="ddlItem" EventName="SelectedIndexChanged" />
            </Triggers>
        </asp:UpdatePanel>
        <br />

        <div style="margin-left: 50px; margin-top: 10px">
        </div>
        <br />
        <asp:Button ID="btnAddSalesOrder" runat="server" Text="Send Inquiry" OnClick="btnAddSalesOrder_Click"
            Style="margin-left: 30px; color: White; background-color: #088FCA;" OnClientClick="myClosure();"
            class="btn btn-info" />
        <asp:Button ID="btnPlaceOrder" runat="server" OnClick="btnPlaceOrder_Click" Text="Place Order"
            Style="margin-left: 30px; color: White; background-color: #088FCA;" OnClientClick="myClosure();"
            class="btn btn-info" />
        <asp:UpdateProgress ID="UpdtProgress" DisplayAfter="1" runat="server" EnableViewState="False">
            <ProgressTemplate>
                <div style="top: 0px; height: 120%; background-color: White; opacity: 0.75; filter: alpha(opacity=75);
                    vertical-align: middle; left: 0px; z-index: 999999; width: 120%; position: absolute;
                    text-align: center;">
                    <img src="Images/loader.gif">
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </div>

<script type="text/javascript">
    $('.chzn-select').select2({
        no_results_text: 'Oops, nothing found!',
        allowClear: true,
        maximumSelectionSize: 1,
        width: '130px;'
    });

First thanks for reading. I have project .NET, the problem when I click menu. I try to enable Windows Authentication and to webconfig of Master Data Service. but still have this problem.

Image of problem

I'm using Asp.net ,

2957

https://pastebin.com/raw/Rf02nKuC Click on the Load button, two handsontable panels appear, including an empty table and a table containing data. How to display only 1 table with updated data. Pls!

See Im having a problem im using add in ajax

  handleSubmit(name, address,department){

 const laman = {
      'Employee_Name': name,
      'Address': address,
      'Department': department

    }
    return fetch('http://localhost:5118/api/employeedetails/PostEmployeeDetail?', {
        method: 'POST',
        headers: {
        'Content-Type': 'application/json'
        },
        body: JSON.stringify(laman)
    })
    .then(function(response) {
      console.log(response)

      return response.json();
    })
    .then((result)=> {
       var jsonReturnedValue = [...this.state.jsonReturnedValue];
       jsonReturnedValue.push(laman);
       this.setState({jsonReturnedValue})
       this.refs.Name.value="";
       this.refs.Address.value="";
       this.refs.Department.value="";
       // this.setState({ value: '' });
    })
    .catch(function(error) {
      console.log(error);

    })

but when it add new row it dont have an id because of it dont know what id to put.... but when i refresh it already had an id because it was added on the database and it was autoincreament in my sql.. id why here's a picturehere is the image

In VS2015 im using web application with OracleDB and i'm trying to do the connection with Entitydatasource wizard.Everything works fine and smooth even though i have EF6 but if any of the tables im trying to load has a Boolean type (number(1,0) in database) the wizard crashes(It says that its only compatible with ef5 etc..).

I tried to change the type from model properties to int16 but then project throws error for wrong mapping.I read somewhere that EntityDatasource recognize true or false for Boolean but its mapped by default from oracle to recognize Boolean as number(1,0). So i guess there is a conflict there.

public JsonResult ddllistvalue(string datafeedid)
{
    Session["ddlvalue"] = datafeedid;
    return Json(db.PopulateProgramddl(), JsonRequestBehavior.AllowGet);
}

public void readxml()
{
    lobtype = Convert.ToString(Session["ddlvalue"]);
    XmlDocument doc = new XmlDocument();
    doc.Load(Server.MapPath(@"\Files\" + lobtype + ".xml"));
    TreeNode treenode = Node;
    XmlNode xmlnode = Node.DataItem;
    if (xmlnode.NodeType == XmlNodeType.Element)
    {
        if (xmlnode.Attributes != null)
        {
            for (int i = 0; i < xmlnode.Attributes.Count; i++)
            {
                TreeNode childnode = new TreeNode(
                    "@" + xmlnode.Attributes[i].Name,
                    "@" + xmlnode.Attributes[i].Name);
                treenode.ChildNodes.Add(childnode);
            }
        }
    }
}

generate xml treeview from xml file in mvc4 using razor.please save me from this problem..error is :The name 'Node' does not exist in the current context.iam facicng the problem with 'node'

I have a shared text displaying the content from its RichText field and I want a link in that RichText so that on click of that link a page(.ascx) should get displayed. The page that will get displayed is not present in sitecore content tree. It just a sublayout in code behind.

Can someone help me on this?

Background

  • I want to load different treeview usercontrol through select RadioButtonList1.When i fist time load the aspx file ,and load ascx in Page_Load Event in the page, it is successfully display usercontrol and data in the master page.

  • However , i can only load TreeView usercontrol only once , when i chose RadioButtonList1 ,then execute this.Placeholder1.Controls.Add(uc) ,its failed.The programming can only display the usercontrol but it cannot load data.

Attempt

  • When i debug this Programming ,i find selected RadioButtonList1 cannot trigger any other event except Page_Load event in TreeViewUserControl.ascx. And when i click the node event,it show me some error , Failed to find callback targets"ctl10$LinksTreeView" or Unrealized ICallbackEventHandler.

  • Someone tell me i need to set ID for usercontrol ,just like uc.ID = "uc",it did change . When i click the BaseNode :

    • it can trigger PopulateNode event , and can only execute PopulateCategories method , but not PopulateProducts.
    • Just like before data load failed , but there is no hint Failed to find callback targets"ctl10$LinksTreeView".......
  • It took me several days to find the answer, but it never worked out.I want to get some help, thank you. This is my first time to ask questions ,forgive me for my poor English.

Program code

  • masterPage.aspx :

    protected void Page_Load(object sender, EventArgs e)
    {
        AddTreeViewUserControlInPage();
    }
    
    protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (RadioButtonList1.SelectedIndex == 0)
        {
            ViewState["tree"] = "first";
            AddTreeViewUserControlInPage();
        }
        if (RadioButtonList1.SelectedIndex == 1)
        {
            ViewState["tree"] = "second";
            AddTreeViewUserControlInPage();
        }
    }
    
    public void AddTreeViewUserControlInPage()
    {
        this.Placeholder1.Controls.Clear();
        string path = string.Empty;
        if (ViewState["tree"] == null)
        {
            path = "~/treeviewtest.ascx";
        }
        else
        {
            switch (ViewState["tree"].ToString())
            {
                case "first":
                    path = "~/treeviewtest.ascx";
                    break;
                case "second":
                    path = "~/TreeViewUserControl2.ascx";
                    break;
            }
        }
        Page p = new Page();
        Control uc = p1.LoadControl(path);
        //uc.ID = "uc";
        this.Placeholder1.Controls.Add(uc);
    }
    
  • TreeViewUserControl.ascx

just like this one:TreeView.TreeNodePopulate

    protected void Page_Load(object sender, EventArgs e)
    {

    }
    public void PopulateNode(Object sender, TreeNodeEventArgs e)
    {
        switch (e.Node.Depth)
        {
            case 0:
                PopulateCategories(e.Node);
                break;
            case 1:
                PopulateProducts(e.Node);
                break;
            default:
                break;
        }
    }
    public void PopulateCategories(TreeNode node)
    {
        //Omitted
    }
    public void PopulateProducts(TreeNode node)
    {
        //Omitted
    }
    DataSet RunQuery(String QueryString)
    {
        //Omitted
    }
  • TreeViewUserControl.ascx

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="TreeViewUserControl.ascx.cs" Inherits="TreeViewUserControl" %>
    <asp:TreeView id="TreeView" Font-Names= "Arial" ForeColor="Black" EnableClientScript="true" PopulateNodesFromClient="true" OnTreeNodePopulate="PopulateNode"
    runat="server" ShowCheckBoxes="All"  ShowLines="True">
    <HoverNodeStyle Font-Bold="True" Font-Italic="False" />
    <Nodes>
        <asp:TreeNode Text="BaseNode" 
        SelectAction="Expand"  
        PopulateOnDemand="true"/>
    </Nodes>
    </asp:TreeView>
    <asp:Label id="Message" runat="server"/>
    

I have this XML, i'm busy with an advertisement and i created two pages, one for all the products in my XML and one is details page for each product. Every product has an URL like this ("details.aspx?uId=3332"). I want to create two buttons (next & previous) inside the details page so that when you click on next, it will look through the xml and find the next product with the ulId that comes right after the one that is being displayed or (to change the url to details.aspx?uId=(the next uId to find (which in this case is will be 3333))).

<?xml version="1.0" encoding="utf-8" ?>
    <root>
        <advertentie>
        <uId>3332</uId>
        <auto>
            <merk>GX-TM</merk>
            <carroserie>Sedan</carroserie>
        </auto>
        <afbeeldingen>
            <laatsUpdate>10.00</laatsUpdate>
  <FotoGroot>http://etc.usf.edu/clipart/63300/63366/63366_head_lg.gif</FotoGroot>
  <FotoGroot>https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRsXe7qqTisxV9_XpRGtY64fWMllpSAZwSIDzqRMLp4EVgJwStO</FotoGroot>
</afbeeldingen>
</advertentie>
 <advertentie>
<uId>3333</uId>
<auto>
  <merk>MB-Maybach</merk>
  <carroserie>Sedan</carroserie>
</auto>
<afbeeldingen>
  <laatsUpdate>11.00</laatsUpdate>
  <FotoGroot>http://static.robbreport.com/sites/default/files/mercdes-s600-maybach.jpg</FotoGroot>
  <FotoGroot>https://images.cdn.autocar.co.uk/sites/autocar.co.uk/files/styles/gallery_slide/public/merc-s-class-road-test-017.jpg?itok=pF_TCkMU</FotoGroot>
</afbeeldingen>
</advertentie>
<advertentie>
<uId>3334</uId>
<auto>
  <merk>Royal-Gold</merk>
  <carroserie>Stationwagen</carroserie>
</auto>
<afbeeldingen>
  <laatsUpdate>12.00</laatsUpdate>
  <FotoGroot>http://iluvesports.com/wp-content/uploads/2016/07/royal-car-collection-1-600x369.jpg</FotoGroot>
  <FotoGroot>https://i.ytimg.com/vi/RDe3ZvTv5AQ/maxresdefault.jpg</FotoGroot>
</afbeeldingen>
</advertentie>
</root>

I'm building an application with c# on Visual Studio 2017. My interface consist of several textboxes and two radio buttons. Each time, the app is being closed, I save the values of the textboxes to two separate text files. So as the result I have two text files (for each radio button). Each time the radio button is being checked, I load the textbox values from the appropriate txt file. This is how its implemented now:

private void radioButton1_CheckedChanged(object sender, EventArgs e)
    {
        TextBox[] boxes = { textBoxAscStart, textBoxAscStep };
        loadConfigFile(boxes);
    }


private void radioButton2_CheckedChanged(object sender, EventArgs e)
    {
        TextBox[] boxes = { textBoxAscStart, textBoxAscStep };
        loadConfigFile(boxes);
    }


private void loadConfigFile(TextBox[] boxes) {
        try
        {
            string dir = Directory.GetCurrentDirectory();
            string fullName;
            if (radioButton1.Checked == true)
            {
                fullName = dir + "\\Config1.txt";
            }
            else
            {
                fullName = dir + "\\Config2.txt";
            }
            char[] delimiter = new char[] { '\t' };
            using (System.IO.StreamReader file = new System.IO.StreamReader(@fullName))
            {
                for (int i = 0; i < boxes.Length; i++)
                {
                    string[] line = file.ReadLine().Split(delimiter);
                    boxes[i].Text = line[1];
                }
            }
        }
        catch (IOException ex)
        {
            MessageBox.Show(ex.Message);
        }
    }

I understand I implement this in dummy way, so sorry for my poor code. Such approach works fine until you mostly work on one of radiobuttons checked and then exit the app so the values are written to file. But how I can implement the case when user works on one radiobutton and then switches to another (with another values), works a bit there and gets back? In my case he will still see those old values from text file. I want that each time the user gets back to previous radio button, the values in the textboxes would be the latest he entered. I hope I was clear enough. Thanks for helping.

I've inherited an Asp.Net webapplication using webform, and are trying to find out how to best migrate this to a more modern architecture.

I've decided to use Asp.Net Core for my new backend (moving existing logic into this new Asp.Net Core project), and I'd really like using Aurelia for my client-side logic/views.

What I'd like to do is to replace existing functionality "one-by-one" with Aurelia components communicating with the new backend.

The problem is how to bootstrap the application without Aurelia "forcing" app.html to be the initial page.

I'd like to keep the current startup page, site structure and routing, and just develop components in Aurelia that I can add to the existing webform pages.

I'm totally new to Aurelia, so please be gentle if there is an obvious answer to my question. ;-)

Regards, Jon S.

In a project, I have to show wp posts in website via .net. So, I created a php file in project root folder as 'latestnews.php'. When called from browser, everything is working fine and data is shown. But in postman though the data is shown status is coming as 404 not found.

How to solve this issue? Any help/suggestions are welcome. Url: http://109.74.4.178/worldwaterweek/latestnews.php?numberposts=5

latestnews.php

<?php
define('WP_USE_THEMES', false);
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

$num = $_GET["numberposts"] ?: '10';

$posts = get_posts(array(
    'posts_per_page'   => $num,
    ));
$array = array();

foreach($posts as $val) {
    start_wp();
    $array[] = array(
            'id' => $val->ID,
            'title' => $val->post_title,
            'link' => get_permalink($val->ID),
            'publish_date' => $val->post_date,
            'content' => strip_tags($val->post_content),
            'image' => get_the_post_thumbnail_url($val->ID, 'full')
        );
}
echo json_encode($array);
?>

I want to upload Files in my ASP-App. And it works with 137mb .csv-Files. But now I want to upload a 149mb File and it gives me an ERR_CONNECTION_RESET...

My Webconfig:

<httpRuntime requestValidationMode="2.0" maxRequestLength="300000000" executionTimeout="800000" />

and:

<system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="524288000"/> 
            </requestFiltering>
        </security>
    </system.webServer>

I have a Repeater who contain an html link balise. I want both the attribute name and the text to be "..." if Eval("Name")==null or Eval("Name") instead. So I try to do this :

<a runat="server" class="a_equipement" onserverclick="displayEquipment" name='<%= Eval("Nom")%> == null ? "..." : <%# Eval("Nom")%>'> <%= Eval("Nom");%> == null ? "..." : <%# Eval("Nom");%> </a>

But it didn't work and I got a weird error : "DC6_Configuration_Equipement.aspx(42,214): error CS1026: ) expected"

Is it possible to do it like this or are there other possibilities ?

Thank's again for all your answer :)