Click here to Skip to main content
15,889,335 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to pass gridview textbox value to javascript Pin
Dinesh Mani8-Dec-09 23:54
Dinesh Mani8-Dec-09 23:54 
GeneralRe: how to pass gridview textbox value to javascript Pin
ravihd9-Dec-09 0:59
ravihd9-Dec-09 0:59 
GeneralRe: how to pass gridview textbox value to javascript Pin
Dinesh Mani9-Dec-09 1:17
Dinesh Mani9-Dec-09 1:17 
Questionerror in showing blogs in the web site Pin
Amit Spadez8-Dec-09 23:29
professionalAmit Spadez8-Dec-09 23:29 
AnswerRe: error in showing blogs in the web site Pin
Dinesh Mani8-Dec-09 23:46
Dinesh Mani8-Dec-09 23:46 
GeneralRe: error in showing blogs in the web site Pin
Amit Spadez9-Dec-09 0:07
professionalAmit Spadez9-Dec-09 0:07 
GeneralRe: error in showing blogs in the web site Pin
rahuuul179-Dec-09 0:12
rahuuul179-Dec-09 0:12 
GeneralRe: error in showing blogs in the web site Pin
Dinesh Mani9-Dec-09 0:22
Dinesh Mani9-Dec-09 0:22 
Its not that you cannot do it. All that you need to do is at the end of the event add a line, depending on the version of ASP.NET you are using.

Page.RegisterStartupScript("New Window", "<script language=JavaScript>window.location.href='your url';</script>");
or
ClientScript.RegisterStartupScript(..., "<script language=JavaScript>window.location.href='your url';</script>")

I don't exactly remember the syntax for ClientScript object.

Now, to do the first method -

Put a button near the grid and on the server click event call the method to load the datasource and bind it to the datagrid.

Drawbacks of this approach -
* The re-submit would happen if the user hits the browser's refresh button right after clicking the add button.
QuestionPaging toGridView Pin
rahul.net118-Dec-09 23:13
rahul.net118-Dec-09 23:13 
AnswerRe: Paging toGridView Pin
Blue_Boy8-Dec-09 23:30
Blue_Boy8-Dec-09 23:30 
GeneralRe: Paging toGridView Pin
rahul.net118-Dec-09 23:41
rahul.net118-Dec-09 23:41 
GeneralRe: Paging toGridView Pin
Blue_Boy8-Dec-09 23:44
Blue_Boy8-Dec-09 23:44 
Questionerror in the login web page Pin
Amit Spadez8-Dec-09 23:06
professionalAmit Spadez8-Dec-09 23:06 
AnswerRe: error in the login web page Pin
Blue_Boy8-Dec-09 23:34
Blue_Boy8-Dec-09 23:34 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 0:10
professionalAmit Spadez9-Dec-09 0:10 
AnswerRe: error in the login web page Pin
Dinesh Mani9-Dec-09 0:36
Dinesh Mani9-Dec-09 0:36 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 0:42
professionalAmit Spadez9-Dec-09 0:42 
GeneralRe: error in the login web page Pin
Dinesh Mani9-Dec-09 0:46
Dinesh Mani9-Dec-09 0:46 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 0:49
professionalAmit Spadez9-Dec-09 0:49 
GeneralRe: error in the login web page Pin
Dinesh Mani9-Dec-09 0:52
Dinesh Mani9-Dec-09 0:52 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 0:56
professionalAmit Spadez9-Dec-09 0:56 
GeneralRe: error in the login web page Pin
Dinesh Mani9-Dec-09 1:01
Dinesh Mani9-Dec-09 1:01 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 1:19
professionalAmit Spadez9-Dec-09 1:19 
GeneralRe: error in the login web page Pin
Dinesh Mani9-Dec-09 1:20
Dinesh Mani9-Dec-09 1:20 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 1:21
professionalAmit Spadez9-Dec-09 1:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.