Click here to Skip to main content
15,917,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: upload files Pin
Heath Stewart19-Jul-04 2:02
protectorHeath Stewart19-Jul-04 2:02 
Generalstruct question Pin
ConfusedAsHeck13-Jul-04 5:30
sussConfusedAsHeck13-Jul-04 5:30 
GeneralRe: struct question Pin
Tom Larsen13-Jul-04 5:34
Tom Larsen13-Jul-04 5:34 
GeneralRe: struct question Pin
Heath Stewart13-Jul-04 6:11
protectorHeath Stewart13-Jul-04 6:11 
GeneralAccessing Forms Pin
Mehbub13-Jul-04 5:02
Mehbub13-Jul-04 5:02 
GeneralRe: Accessing Forms Pin
Tom Larsen13-Jul-04 5:27
Tom Larsen13-Jul-04 5:27 
GeneralRe: Accessing Forms Pin
Colin Angus Mackay13-Jul-04 6:03
Colin Angus Mackay13-Jul-04 6:03 
GeneralRe: Accessing Forms Pin
Dave Kreskowiak13-Jul-04 12:46
mveDave Kreskowiak13-Jul-04 12:46 
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 

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.