DetailsView Question

V

VB Programmer

Easy question for you...

I have a GridView which displays client names (clients associated with a
certain "UserId" label.)

I have a DetailView control which I want to use to INSERT data into the
GridView. How do I make it so that the "UserId" field is automatically
filled in with whatever is in the "UserId" label? (I don't want the user to
fill this in.)

Thanks!
 
V

VB Programmer

After some tests, research and experiments I did it like this...

<InsertParameters>
<asp:ControlParameter ControlID="lblRealtorId"
Name="RealtorId" PropertyName="text" />
<asp:parameter Name="BuyerLastName" Type="String" />
<asp:parameter Name="BuyerFirstName" Type="String" />
</InsertParameters>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top