Frameset
With frameset, you can display more than one webform in the same browser window. Each frame is independent of the others.
Disadvantages:
1.Its a mess when you try tuning your frameset for different screen resolution.
2.Each browser has some compactibility issue,but I can be solved easily
3.The web developer must keep track of more webforms.
4.It is difficult to print the entire page.
Advantages:
1.Its really easy to use.
2.You can invoke a server script from a Javascript.
For my application I had three frames.
1.Logo
2.Left frame
3.Right frame
The
Logo webform is my secret hide out.I have some hidden server side codes.
The
left frame had various buttons like,
1.compose
2.edit profile
3.Signout
4.bla
5.bla bla
when the user clicks these buttons,for example edit profile
I'll executed the server script for calling the corresponding page (Editpage.aspx) on the
right frame by something like this..
Dim strReDirectToAnotherFrame As String = "<script>window.open(""edit.aspx"" ,""rightframe"");</script>"
Response.Write(strReDirectToAnotherFrame)
POSSIBLE WORK AROUND FOR YOU IF YOU USE FRAMES
When the user closes the window,you can invoke a javascript function and send a query string to another frame,lets say Logo.aspx.
Javascript side on leftpage to send a javascript to server script.
//leftpage.aspx..This function must be invoked when the user close the window.
function clearflag()
{
window.open(""logo.aspx?flag=1"" ,""Logo"");
}
On the server script,
//logo.aspx
Dim flag as string
flag = Request.QueryString("flag")
If (flag = 1) then
//Connect to the database and update the table
End If
Hope this Helps.
Hi Mr. White Tiger,
The Name of the fish is Dory a Cartoon character in the movie Finding NEMO.
Thanks a lot for your Help Man. That was indeed helpful. If you dont mind, can you explain what did you do with the frameset? So that I will try to tweak up the Code.
Thanks,
NaveenChnader