one webform to other
-
hi frndz, i am working with a project and stuck sumwhere. i need sum help regarding that. actually i have some items in one dropdownlist of a webform(.aspx page). i want the selected value to be transferred to a textbox in other webform(second .aspx page). i'll be thankful to u if u can help me...... with thanks... Tarun Suneja
-
hi frndz, i am working with a project and stuck sumwhere. i need sum help regarding that. actually i have some items in one dropdownlist of a webform(.aspx page). i want the selected value to be transferred to a textbox in other webform(second .aspx page). i'll be thankful to u if u can help me...... with thanks... Tarun Suneja
You need to read about Session in ASP.Net, you can find some nice atricles on CodeProject. anyways quick answer is: On the First Page. at "DropDownList" : "SelectedIndexChanged" event. store the value in the Session. i.e.
Session["_Value"] = DropDownList1.Text
And on Second Page. at Page Load event. get the value stored in the session. i.e.
TextBox1.Text = (string) Session["_Value"];
-
hi frndz, i am working with a project and stuck sumwhere. i need sum help regarding that. actually i have some items in one dropdownlist of a webform(.aspx page). i want the selected value to be transferred to a textbox in other webform(second .aspx page). i'll be thankful to u if u can help me...... with thanks... Tarun Suneja
Pass it as query string if the information is not secured.
Navaneeth How to use google | Ask smart questions
-
You need to read about Session in ASP.Net, you can find some nice atricles on CodeProject. anyways quick answer is: On the First Page. at "DropDownList" : "SelectedIndexChanged" event. store the value in the Session. i.e.
Session["_Value"] = DropDownList1.Text
And on Second Page. at Page Load event. get the value stored in the session. i.e.
TextBox1.Text = (string) Session["_Value"];
thanx buddy thanx alot
-
hi frndz, i am working with a project and stuck sumwhere. i need sum help regarding that. actually i have some items in one dropdownlist of a webform(.aspx page). i want the selected value to be transferred to a textbox in other webform(second .aspx page). i'll be thankful to u if u can help me...... with thanks... Tarun Suneja
Try this :
Respose.Redirect("~/second.aspx page?selectedValue=" + DropDownList1.SelectedValue.ToString()
dnpro "Very bad programmer" My Latest Articles RichTextBox Control with Find functionality LogViewer - A Simple Log Listening Utility