473,324 Members | 2,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

PostBack Opens new window

Hi,

Earlier I had a WebForm with a DataGrid. I have implemented a function to
sort the records on clicking the columns. It was working fine until I added
the custom controls on it.

Now the sort methods invoke another window and with
javascript:__doPostBack('xxx') function. Clicking any of the links on the
page opens a new window, where I want to open it on the same window.

The pages are still executing properly if I remove the controls.

Any help would be appreciated.

Thanks,
Anbu

Nov 19 '05 #1
2 1090
Anbu,

Try putting
<base target=_self>
in the <head> section.

Eliyahu

"Anbu" <An***********************@alcatel.com> wrote in message
news:1121776342.433133@slbhw0...
Hi,

Earlier I had a WebForm with a DataGrid. I have implemented a function to
sort the records on clicking the columns. It was working fine until I added the custom controls on it.

Now the sort methods invoke another window and with
javascript:__doPostBack('xxx') function. Clicking any of the links on the
page opens a new window, where I want to open it on the same window.

The pages are still executing properly if I remove the controls.

Any help would be appreciated.

Thanks,
Anbu

Nov 19 '05 #2
Eliyahu,

No, It doesnt work fine still. Please note that the page works fine if i
remove the Custom Controls. I have some JavaScripts & Images on the Java
Script.

Please help me.

Thanks,
Anbu

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:O0**************@TK2MSFTNGP10.phx.gbl...
Anbu,

Try putting
<base target=_self>
in the <head> section.

Eliyahu

"Anbu" <An***********************@alcatel.com> wrote in message
news:1121776342.433133@slbhw0...
Hi,

Earlier I had a WebForm with a DataGrid. I have implemented a function to
sort the records on clicking the columns. It was working fine until I added the custom controls on it.

Now the sort methods invoke another window and with
javascript:__doPostBack('xxx') function. Clicking any of the links on the
page opens a new window, where I want to open it on the same window.

The pages are still executing properly if I remove the controls.

Any help would be appreciated.

Thanks,
Anbu


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Amir Shaz | last post by:
Ive a requirement to display the details in a Popup window. I open the new window using Java Script. I need to save the details on the Popup form. Ive placed a button on the details form. OnClick...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
2
by: Henry Johnson | last post by:
I'm currently opening an aspx page (myModalASPX) as a dialog box from client-side script using window.showModalDialog(blah blah blah). The dialog opens as expected. Now I'm adding functionality...
4
by: Brian Henry | last post by:
Hi, is there a way to get a form to post back to a modal dialog box when it was posted from a modal dialog to start with? here is the problem... I have a form with combo boxes and when you select...
11
by: Russ | last post by:
My web app writes some binary data to a file at the client site via Response.Write and Response.BinaryWrite. This action is accomplished in response to a button click, with C# code behind as...
6
by: SkeanDu | last post by:
Ok, here is my problem. I have an aspx page that displays a databound datagrid and in one of the datagrid column headers I have an image that when clicked opens up a modal web dialog (another...
5
by: Mardy | last post by:
Hello I'm trying to use a pop-up to capture some information and then return the user to a datagrid containing the changes made in the pop-up. I have the database update working and the pop-up...
6
by: Shawn | last post by:
Any ideas how I can have a button click on one open page force a postback on a different page.
2
by: ton | last post by:
Hi, I have a website with 2 forms. Form 1 is opened, a button opens a second form as a modal form: window.showModalDialog('Filter.aspx?Filter=14',...
9
by: 200dogz | last post by:
Hi guys, I want to have a button which opens up a new window when pressed. <asp:Button ID="Button1" runat="server" Text="Open new window" /> ... Button1.Attributes.Add("OnClick",
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.