Click here to Skip to main content
15,902,896 members
Home / Discussions / C#
   

C#

 
GeneralRe: Accessing Forms Pin
Weiye Chen13-Jul-04 19:36
Weiye Chen13-Jul-04 19:36 
GeneralRe: Accessing Forms Pin
Weiye Chen13-Jul-04 20:52
Weiye Chen13-Jul-04 20:52 
GeneralViewing Exported Functions and Parameters in a DLL Pin
Mr. Rogers13-Jul-04 4:22
Mr. Rogers13-Jul-04 4:22 
GeneralRe: Viewing Exported Functions and Parameters in a DLL Pin
Heath Stewart13-Jul-04 4:33
protectorHeath Stewart13-Jul-04 4:33 
GeneralRe: Viewing Exported Functions and Parameters in a DLL Pin
Mr. Rogers13-Jul-04 4:51
Mr. Rogers13-Jul-04 4:51 
QuestionHow to get the time from a computer Pin
Stuggo13-Jul-04 4:11
Stuggo13-Jul-04 4:11 
AnswerRe: How to get the time from a computer Pin
Heath Stewart13-Jul-04 4:20
protectorHeath Stewart13-Jul-04 4:20 
GeneralResponse.Redirect is not working.. a peculiar problem..One solution found !! Pin
PhaniKatakam13-Jul-04 2:07
PhaniKatakam13-Jul-04 2:07 
I would like to share a solution with all of you guys to the Response.Redirect problem.
I have a scenario:
1. An asp page containing two submit type buttons 'Back' and 'Save'.
2. Save may do some action and stay in the same page..
3. But Back would do same as save button..but Goes to Home Page.
4. U may have Save_Click () serverside code in aspx.cs
5. U can simulate the same from back.. and also hidBack to maintain from which button its coming from...
<input type="image" id="Button2" style="Z-INDEX: 101; LEFT: 304px; POSITION: absolute; TOP: 136px"
value="Back" OnClick="return ClickBack()">
<script language="javascript">
function ClickBack()
{
document.Form1.hidBack.value = "YES";
document.Form1.Button1.click();
//IMPORTANT:: RETURN FALSE TO NULLIFY POSTING BY BACK BUTTON.
return false;

}
6. Server side code may look as
private void Save_Click(object sender, System.EventArgs e)
{

if(Request.Form["hidBack"] == "YES")
{
Page.Response.Redirect("Home.aspx",false);
}
Response.Write(" U pressed first Button");
}
</script>
7.if WE DONT HAVE //IMPORTANT:: code line, it will postback twice to the server..there by Response.Redirect doesnt work.
8. Any other observations?? thanks


Phani, Virtusa.
GeneralRe: Response.Redirect is not working.. a peculiar problem..One solution found !! Pin
Heath Stewart13-Jul-04 4:13
protectorHeath Stewart13-Jul-04 4:13 
GeneralAccessing HTML control Pin
Padmavathi13-Jul-04 1:26
Padmavathi13-Jul-04 1:26 
GeneralRe: Accessing HTML control Pin
Heath Stewart13-Jul-04 4:07
protectorHeath Stewart13-Jul-04 4:07 
GeneralProblem when Distributing A C#.Net Application Pin
Axonn Echysttas13-Jul-04 1:23
Axonn Echysttas13-Jul-04 1:23 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Heath Stewart13-Jul-04 3:56
protectorHeath Stewart13-Jul-04 3:56 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Axonn Echysttas13-Jul-04 5:19
Axonn Echysttas13-Jul-04 5:19 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Heath Stewart13-Jul-04 5:24
protectorHeath Stewart13-Jul-04 5:24 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Axonn Echysttas13-Jul-04 5:49
Axonn Echysttas13-Jul-04 5:49 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Heath Stewart13-Jul-04 6:09
protectorHeath Stewart13-Jul-04 6:09 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Axonn Ech.13-Jul-04 10:50
sussAxonn Ech.13-Jul-04 10:50 
Generalhowto to implement SOAP in C# Pin
Stephan Wright13-Jul-04 0:47
Stephan Wright13-Jul-04 0:47 
GeneralRe: howto to implement SOAP in C# Pin
Roman Rodov13-Jul-04 1:18
Roman Rodov13-Jul-04 1:18 
GeneralRe: howto to implement SOAP in C# Pin
Stephan Wright13-Jul-04 1:36
Stephan Wright13-Jul-04 1:36 
Generalproblems with importing Outlook contacts Pin
Stephan Wright12-Jul-04 23:58
Stephan Wright12-Jul-04 23:58 
GeneralRe: problems with importing Outlook contacts Pin
Heath Stewart13-Jul-04 4:26
protectorHeath Stewart13-Jul-04 4:26 
GeneralRe: problems with importing Outlook contacts Pin
Stephan Wright13-Jul-04 22:38
Stephan Wright13-Jul-04 22:38 
GeneralRe: problems with importing Outlook contacts Pin
Heath Stewart14-Jul-04 3:13
protectorHeath Stewart14-Jul-04 3:13 

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.