Auditing an Oracle database for security issues is very important. PeteFinnigan.com provides all of the information and tools that you will need Click here for details of PeteFinnigan.com Limited's detailed Oracle database security audit service Click here for details of PeteFinnigan.com Limited's Oracle Security Training Courses
Cookie Policy:We only use essential cookies on small sections of this website. For details see here.

Welcome, Guest. Please Login.
Dec 13th, 2017, 10:45am
News: If you would like to register contact the forum admin
Home | Help | Search | Members | Login
   Pete Finnigan's Oracle Security Forum
   Web Development
   Web Development
(Moderator: Pete Finnigan)
   example of Server.Transfer and Context Handler
« Previous topic | Next topic »
Pages: 1  Reply | Notify of replies | Send Topic | Print
   Author  Topic: example of Server.Transfer and Context Handler  (Read 2720 times)
hanusoft
PeteFinnigan.com Newbie
*



I love YaBB 1G - SP1!

   
View Profile | WWW |

Posts: 1
example of Server.Transfer and Context Handler
« on: Sep 3rd, 2007, 1:06pm »
Quote | Modify

This is an example of Server.Transfer and Context Handler.
Through this we can get the multiple values of previous form.
 
http://www.hanusoftware.com
 
 
In this page we are displaying data from previous form. We can use this technique for multiple form registration form.
 
Code (ContextParent.aspx.cs): -
 
private void Button1_Click(object sender,System.EventArgs e)
 
 
{
 
 
Server.Transfer("ContextChild.aspx");
 
 
}
 
 
 
internal Hashtable Value
 
 
{
 
 
 
get
 
 
 
{
 
 
 
 
Hashtable objHT = new Hashtable();
 
 
 
 
objHT["Name"]=TextBox1.Text;
 
 
 
 
objHT["FathersName"]= TextBox2.Text;
 
 
 
 
objHT["Address"] = TextBox3.Text;
 
 
 
 
return objHT;
 
 
 
}
 
 
}
Code (ContextChild.aspx.cs) :-
 
private void Page_Load(object sender, System.EventArgs e)
 
 
{
 
 
 
// Put user code to initialize the page here
 
 
 
Hashtable objHT = new Hashtable();  
 
 
 
if(!IsPostBack)
 
 
 
{
 
 
 
 
ContextParent ParentPage;
 
 
 
 
ParentPage = (ContextParent)Context.Handler;
 
 
 
 
objHT = ParentPage.Value;
 
 
 
 
Response.Write("<br><br>");
 
 
 
 
foreach(DictionaryEntry di in objHT)
 
 
 
 
{
 
 
 
 
 
Response.Write(di.Key +" : "+di.Value);
 
 
 
 
 
Response.Write("<br>");
 
 
 
 
}
 
 
 
}
 
 
}
 
 
 
 
 
 
Software Development India
IP Logged

Software Development Company India
Pages: 1  Reply | Notify of replies | Send Topic | Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright 2000-2004 Yet another Bulletin Board