2
Answers

Redirecting to a dir on server

fallingbehind

fallingbehind

21y
1.8k
1
Hey guys, new to the forums. I have a quick question, let me explain. I have 2 domains pointing to one server, and I'd like them to each bounce to a different folder on the server. I know you can do this with Response.Redirect, but what would the code be? I've tried this: private void Page_Load(object sender, System.EventArgs e) { string ClientURL = Convert.ToString(Request.ServerVariables["SERVER_NAME"]).ToUpper(); if (ClientURL.IndexOf("evasionaz") > -1) { Response.Redirect("/evasion/"); } else if (ClientURL.IndexOf("entropyx") > -1) { Response.Redirect("/entropy"); } } but that didn't work, anyone know how to work this out?
Answers (2)
0
ali

ali

NA 14 0 14y

it is working in massage box
but when i do following changes to change button text
switch (e.Button)
                {
                    case MouseButtons.Left:
                        button1.Text = ("X");
                        break;
                    case MouseButtons.Right:
                        button1.Text = ("0");
                        break;
                    case MouseButtons.Middle:
                        break;
                    default:
                        break;
                }
 
it works it change the text but when i click on form
i want it to change when i click on button
can u help me one more time
0
Jaish Mathews

Jaish Mathews

NA 7.3k 1.2m 14y

 
Hi,
MouseEventArgs is defines  under "System.Windows.Forms".
But you are already in Form so only need to use like below
private void Form_MouseDown(object sender, MouseEventArgs e)
0
ali

ali

NA 14 0 14y

Event Handler
private void Form_MouseDown(object sender, System.Windows.MouseEventArgs e)

 
 
THIS error OCCURED
The type or namespace name'MouseEventArgs '  does not exist in the namespace 'System' (are you missing an assembly reference?)
 
WHT SHOULD I DO iT URGENT PLZ HELP
0
Jaish Mathews

Jaish Mathews

NA 7.3k 1.2m 14y

Hi,
The EventHandler declaration should be like below.
this.MouseDown +=  new System.Windows.Forms.MouseEventHandler(this.Form_MouseDown);

You are using  System.WinForms.MouseEventHandler. I never saw any thing like this
 
0
ali

ali

NA 14 0 14y

im working in window.
plz help me bro its ugrent 
0
Amit Choudhary

Amit Choudhary

NA 27.7k 3m 14y
hi friend,

 Are you doing it in Console application.?? or in Windows itself?