A
Amelyan
I am struggling here trying to determine what is a good programming practice
as far as referencing your URLs.
When you use Response.Redirect, do you use
1) Hard-coded string -- Response.Redirect("MyPage.aspx");
2) Constants -- Response.Redirect(STRMyPage); // where input parameter
is -> const string STRMyPage = "MyPage.aspx";
3) Something entirely differnent?
If you use constants do you keep them in one class as static public members,
e.g. MyUrlConstants.cs, then MyUrlConstans.STRMyPage.
Thanks,
Amelyan
as far as referencing your URLs.
When you use Response.Redirect, do you use
1) Hard-coded string -- Response.Redirect("MyPage.aspx");
2) Constants -- Response.Redirect(STRMyPage); // where input parameter
is -> const string STRMyPage = "MyPage.aspx";
3) Something entirely differnent?
If you use constants do you keep them in one class as static public members,
e.g. MyUrlConstants.cs, then MyUrlConstans.STRMyPage.
Thanks,
Amelyan