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:
01408301
Vues:
27
>>I think...regardless of whether I use the asp:Parameter, asp:ControlParameter and whether I set values in this elusive Selecting event, I think I will still run into the same problem of the control not being found. Referencing the controls seems to be the problem here. And I haven't seen any useful information on using that Selecting event. The help is useless. Funny, when I was looking at various parts of the help for this subject, I ran across something that said, "The following example shows..." But then there was no following example! Banging my head on the desk here! :)
>>
>>And by the way, I have used that 4guys... tutorial. It is where I got the ControlParameter idea from in the first place.
>
>BTW, the way to use Selecting event is very simple (I gave you a link to another forum for the same problem)
>
>In the Selecting event you would do
>
>e.Parameters["@MyParameterName"].Value = myHardToFindControl.Value;
>
>I see now that I mistyped before - you need to use Selecting event, not Selected of SQLDataSource.

Actually the link you gave me was to a different thing. You expounded on the Inserted event, which occurs after data has been inserted with the InsertCommand. My problem is before data is selected or updated, not after. If I could get that far it would be great.

myHardToFindControl.Value; that's very funny! Pretty soon it will be myHardToFindMind.Location that we'll be searching for! :)

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

Click here to load this message in the networking platform