cVz 19 Junior Poster

Your first problem is the fact that you write barely understandable questions... structure your questions correctly and learn proper English.

by the looks of things, you are either a web developer that is trying to code software or you are a web developer that used to use php and has no real clue as to what JavaScript Is.....

If you are using windows forms (SOFTWARE , NOT WEB) then you will find the answers in your events tab (next to properties).

if you are using ASP , C# and javascript, there are multiple ways of doing this, however i think the most time effective at this time would be to use attributes...

in your form load event type something like this:

pictureboxId.Attributes.Add("onMouseOver", "JS EVENT HERE");
// the above will act as a mouse over event. 
// Now lets do the mouse out event

pictureboxId.Attributes.Add("onMouseOut", "JS Event Here");

Play with it a bit .... and see where the road takes you

cVz 19 Junior Poster

HI my friend...

assuming that you have 365 pages already made, you could do the following

- THIS IS A QUICK FIX

What you need is a table in your database with 3 columns

1. PrimaryKey INT, NOT NULL
2. Date DATETIME
3. NavigateURL VARCHAR(MAX)

In your database you will have a page per day linked to the date.

You can use this script

CREATE PROCEDURE TEMP_Procedure
AS
BEGIN
DECLARE @Start INT
DECLARE @END INT

SET @Start = 0
SET @End = 356

Secondly you need to add the dates
DECLARE @StartDate DATETIME 
SET @StartDate = (The date you want to start on)

WHILE @Start <= @End
BEGIN
INSERT INTO dbo.YourTableName
(
    PrimaryKey
,   Date 
)
VALUES
(
    @Start
,   @StartDate
)
@Start = @Start + 1
@StartDate = DATEADD(@StartDate , DAY, 1) -- Play with the sequence as i am a bit unsure of the sequence
END

This will give you the Identities per page
as well as the dates
...

now all you need to do is specify the page.

--------------------------------------------------------

No in your code you can fill a dataset with the URL

Your query will look like this

string.Format("SELECT NavigateURL FROM Table WHERE Date = '{0}'", DATETIME.NOW.DATE);

and then you will redirect

Response.Redirect(DataSetName.Tables[0].Rows[0][0/*this is the column*/].ToString());

There you go mate , have a good one...

sknake commented: good answer +15
cVz 19 Junior Poster

Can i maybe give you a new approach ???

Ive done this like this

in the formload of form1

this.Tag = form2;

now you can access form 2, so now you can say on a button -

Form2.Show(); // If you want both to be active for use
Form2.ShowDialog(); // If you want form1 to be disabled

Now you can also say this on a button on form1

form2.close(); // If you want to close it
form2.WindowState = FormWindowState.Minimized;

Happy coding my friend ...

ddanbe commented: nice +4