asp.net 2.0 grid

N

NuB

How can I show my grid, and pass in several parameters to execute my SQL
when I click a button? I'm in asp.net 2.0 and using inline coding to
accomplish this. Has anyone done this yet?
 
A

agapeton

Check out the new SqlDataSource and GridView. Any sample should allow
for that. You can do the on demand databinding by handing the click
event of the button.

Something like...

btnShowNewData.Click += new EventHandler(delegate {
// Set SqlDataSource parameters here...
gvData.DataBind( );
});

Intellisense in the page structure (aspx) should help you with the bulk.
 

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

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top