Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot find control-name in control-parameter
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01407076
Message ID:
01408302
Vues:
27
>>>>
>>>>ASPxRoundPanel1.FindControl("HiddenField1").ClientID
>>>>
>>>
>>>I see. Well, yeah, you're right...the UniqueID should be working. Oh, well. Life is full of things that should be working! :)
>>
>>I was looking through the code you've posted and I'm noticing some things that aren't making sense to me:
>>
>>- Was/does this page work if you don't have the control inside of the panel control?
>>- Do you really do a select that uses all of those fields as parameters to the query? Basically, are all of those fields used to generate your WHERE clause? It doesn't look like it.
>>- Are these controls wrapped inside of a repeater control or something or do you have code in the codebehind that forces/binds the data? It looks like you're editing a single record.
>
>1. Embarrasingly, I haven't tried outside of the RoundPanel. Simply because I have decided on a look and that is part of it, and I thought for sure that it wouldn't matter this much! Obviously I was wrong. So much for rich environment.
>
>2. I set up the parameters according to sample code in the help and another source. I assumed these sources knew more than I did, since they are the official help for VS2005 and a place like 4guysfromrolla! Was I wrong? Perhaps. The parameter controls in the Select section are output parameters. Those in the Update section are input parameters. I thought they were required to be there.
>
>3. No, they are not in a repeater. It is for a single user to view and update his/her own profile data, so yes, it is a single record. So now you can tell me I've chosen an entirely incorrect approach. :| I half expect it.
>
>I told you I was new to this. Moving from VFP to this is not as simple as it would seem. And my concentration hasn't been at its best in recent months due to extenuating circumstances which I don't care to expound upon at this time.
>
>Man I feel dumber than dirt.
>
>Dana

OK, I commented all the code for the RoundPanel. I fixed the ControlParameters to use the original id (HiddenField1, TextFirstName, etc.) Now I get the error: String[0]: the Size property has an invalid size of 0. This occurs directly on the line of code:

Me.SqlDataSource1.Select(DataSourceSelectArguments.Empty)

What string? No size property is specified in the SqlDataSource or in the ControlParameters, so how could there be in invalid size? I don't know which control is causing the error.

I'm going to wake up soon and this will all have been a bad dream.

Dana
Where's the damned Any Key?...too late
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform