473,383 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

DropDownList in an .ascx file problem.

I have a dropdownlist in an .ascx file. When using the dropdown it is workin
3 or 4 times and suddenly it gives an error like "Control
'DropDown1_ddlUrunler' of type 'DropDownList' must be placed inside a form
tag with runat=server."
Nov 17 '05 #1
1 2026
Are you using the control on different pages, or as part of a framework UI,
or dynamically loading the control? Please post a snippet of your page where
the error is happening and the control used so we can diagnose in more
detail.

James J. Foster, DotNetCoders
http://www.dotnetcoders.com

"Onur Bozkurt" <on**********@softhome.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have a dropdownlist in an .ascx file. When using the dropdown it is workin 3 or 4 times and suddenly it gives an error like "Control
'DropDown1_ddlUrunler' of type 'DropDownList' must be placed inside a form
tag with runat=server."

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: huobazi | last post by:
I have many dropdownlist controls in my ascx (and use LoadControl in a aspx fiel) file,so i write a method "InitList(DropDownList list,string strsql,string TextField,string ValueField)" but when i...
6
by: Robin Bonin | last post by:
In my user contol I am creating a set of dropdownlists. Each list is created based on input from the other lists. The problem I am having is setting the selected index on the lists. If someone...
3
by: John Crowley | last post by:
I've run into a problem where drop down lists are refusing to data bind with the following error on the DataBind() call Specified argument was out of the range of valid values. Parameter name:...
2
by: Benedict Teoh | last post by:
I created a dropdownlist containing day, month and year field and expose a property to assign a date. When I call from a aspx page and assign the value, the new date is not displayed until a submit...
0
by: surveyor04 | last post by:
hello - new to aspx development. I have created a few dropdownlist controls - simply a dropdownlist bound to data in an ascx file - to use on several pages of a site. In the .ascx code-behind, I...
0
by: ASP Developer | last post by:
I created a very simple user control that has one dropdownlist. I bind the dropdownlist to database results on load in an ascx file. I would like to do be able to change the selectedindex from...
0
by: ASP Developer | last post by:
I have a databound dropdownlist in a user control (ascx file). In the corresponding aspx page I would like to be able to change the selectedindex of the dropdownlist. So I set up a property in the...
2
by: Nosaj | last post by:
Houston, we've got a problem... In a ascx file, I bind a datasource with a dropdownlist. The following code runs perfectly in a aspx file but not in a ascx file. And I just can't understand it....
2
by: Big Daddy | last post by:
I have a simple control that is in a CS file (not ASCX). It is derived from DropDownList like this public class FiltersDropDown : DropDownList { .... } It overrides a couple of functions. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.