Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid Strange Behavior on Dialog

Status
Not open for further replies.

netangel

Programmer
Feb 7, 2002
124
PT
I've got a ASPX page with a datagrid, with a select button column. When I open that page on a normal window, the select button works fine.
When I open that page as a dialog (using showModelessDialog or showModalDialog), the post back of the select button opens in another window.

If I open any other page (with out a datagrid) the post back works fine.

Why does the datagrid opens a new page instead of writing the post back information on the same (only on dialog pages)? NetAngel
 
I don't have the ref in front of me but you might try to add the "_self" property to the datagrid -- directs the postback to the same page -- just an idea...
 
Sorry, I don't think I have that property on the DataGrid.
I wish...!
That was my first idea when I bumped into the problem.
I believe this is a datagrid problem, since all the others controls work, except for the button link, since it posts the same way DataGrid does: with a javascript function.

But thanks anyway.. NetAngel
 
Net -

Not actually a property, but appears as:

<asp:DataGrid
....
....
....
_self
/>

something like that, just an idea -- it makes sure the reload is in the same frame, that is all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top