---
title: "Hitta controll från ascx"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/113391-hitta-controll-från-ascx"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "icaaq"
published: "2004-10-12T08:36:42.000Z"
updated: "2004-10-12T09:08:51.000Z"
replies: 2
views: 264
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/113391-hitta-controll-från-ascx"
---

# Hitta controll från ascx

## #1 — icaaq, 2004-10-12T08:36Z

Tjenare.
jag har en meny som ligger i en ascx. Nu skulle jag vilja kolla om en viss webcontrol (ddl_Bransch) finns i den sidan som kör ascx:n.

Kan man kolla det?

mv icaaq

Permalänk: https://www.webforum.nu/p/113391

## #2 — Dino, 2004-10-12T08:58Z

I din userControl

```
System.Web.UI.Control c = Parent.FindControl("ddl_Bransch");
if(c != null)
   Response.Write(((DropDownList)c).SelectedValue);
```

Permalänk: https://www.webforum.nu/p/1458377

## #3 — icaaq, 2004-10-12T09:08Z

Klockrent....

mv icaaq

Permalänk: https://www.webforum.nu/p/1458381

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/113391-hitta-controll-från-ascx
