Click here to Skip to main content
15,898,373 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Developers Code Library Pin
DoctorMick30-Jul-09 0:59
DoctorMick30-Jul-09 0:59 
GeneralRe: Developers Code Library Pin
Vimalsoft(Pty) Ltd30-Jul-09 1:08
professionalVimalsoft(Pty) Ltd30-Jul-09 1:08 
GeneralRe: Developers Code Library Pin
Rajeshwar Code- Developer30-Jul-09 2:52
Rajeshwar Code- Developer30-Jul-09 2:52 
GeneralRe: Developers Code Library Pin
Vimalsoft(Pty) Ltd30-Jul-09 2:55
professionalVimalsoft(Pty) Ltd30-Jul-09 2:55 
QuestionControl value from one page to the other Pin
LucBite29-Jul-09 23:01
LucBite29-Jul-09 23:01 
AnswerRe: Control value from one page to the other Pin
Blikkies29-Jul-09 23:10
professionalBlikkies29-Jul-09 23:10 
AnswerRe: Control value from one page to the other Pin
Blue_Boy30-Jul-09 2:09
Blue_Boy30-Jul-09 2:09 
AnswerRe: Control value from one page to the other Pin
amitabha12331-Jul-09 0:05
amitabha12331-Jul-09 0:05 
LucBite wrote:
I want to use textbox value(text) in another asp.net page. eg. displaying txtName.Text from page1 in lblName in the next page OR use that value as a parameter passed to method calling under a button in the next page.



You can use session.
Alternatively you can use PostBackURL features of .Net.

For ex:

Page1.aspx:
-----------

<asp:textbox id="txt1" runat="server" ></asp:textbox>
<asp:button id="Button1" postbackurl="~/page2.aspx" runat="server" text="Button" />

Page2.aspx:
-----------

add this line under page directive:

<%@ previouspagetype virtualpath="~/page1.aspx" %>

Page2.aspx.cs:
-----------

TextBox txt = (TextBox)PreviousPage.FindControl("txt1");
Response.Write( txt.Text);
QuestionDesign Problem html Pin
Ersan Ercek29-Jul-09 22:39
Ersan Ercek29-Jul-09 22:39 
AnswerRe: Design Problem html Pin
DoctorMick30-Jul-09 1:02
DoctorMick30-Jul-09 1:02 
GeneralRe: Design Problem html Pin
Ersan Ercek30-Jul-09 2:15
Ersan Ercek30-Jul-09 2:15 
Questionhow to get contex menu by right click on text box Pin
rinku soni 2329-Jul-09 22:27
rinku soni 2329-Jul-09 22:27 
AnswerRe: how to get contex menu by right click on text box Pin
Blikkies29-Jul-09 23:20
professionalBlikkies29-Jul-09 23:20 
AnswerRe: how to get contex menu by right click on text box Pin
Abhijit Jana29-Jul-09 23:33
professionalAbhijit Jana29-Jul-09 23:33 
QuestionHow to Host asp web site Pin
mdazeemuddin29-Jul-09 22:17
mdazeemuddin29-Jul-09 22:17 
AnswerRe: How to Host asp web site Pin
Blikkies29-Jul-09 23:18
professionalBlikkies29-Jul-09 23:18 
AnswerRe: How to Host asp web site Pin
Abhijit Jana29-Jul-09 23:27
professionalAbhijit Jana29-Jul-09 23:27 
GeneralRe: How to Host asp web site Pin
mdazeemuddin31-Jul-09 21:50
mdazeemuddin31-Jul-09 21:50 
QuestionFilling the listbox that is placed inside the web user control Pin
Jagz W29-Jul-09 22:15
professionalJagz W29-Jul-09 22:15 
AnswerRe: Filling the listbox that is placed inside the web user control Pin
Vimalsoft(Pty) Ltd29-Jul-09 23:52
professionalVimalsoft(Pty) Ltd29-Jul-09 23:52 
Questionhow to add classes and functions Pin
Rajni_pooni29-Jul-09 21:59
Rajni_pooni29-Jul-09 21:59 
AnswerRe: how to add classes and functions Pin
Abhijit Jana29-Jul-09 22:09
professionalAbhijit Jana29-Jul-09 22:09 
Questiondatareader Pin
KhandelwalA29-Jul-09 21:42
KhandelwalA29-Jul-09 21:42 
AnswerRe: datareader Pin
Abhijit Jana29-Jul-09 21:46
professionalAbhijit Jana29-Jul-09 21:46 
QuestionTab control ajax Pin
KhandelwalA29-Jul-09 21:18
KhandelwalA29-Jul-09 21:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.