You have two basic options, one:
You can have what ever number or adid is entered into the textbox you could have it work as a .navigateurl button.
The other is modifying the search procedure, I think there's three files you need to change,
First is where the page is coming from, make your textbox, and at the bottom in the object database add a control parameter
such as:
<
asp:ControlParameter ControlID="AdIdTB" DefaultValue="0" Name="AdId" Type="Int32" />
The control id and the textbox id need to match.
Then the object database is pointing to your App_Code/BLL/Ads.vb folder (asumming you are coding in VB)
You will find a file in the GET section GetActiveAdsByQuery, you will need to modify that and the file next to it GetAllAdsByQuery.
And finally the stored procedure GetAllAdsByQuery,
This is untested but I think maybe in the top part
@AdId
int = 0,
and the bottom select statement try
(@AdId = 0
OR AdId = @AdId) AND
Like I said, it's not tested, but if it's not right it's close.
Good Luck
Be sure to visit
www.detelli.comAnd please remember to click ?Mark as Answer? on the post that helps you.
This can be beneficial to other community members reading the thread.