Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used ajax controls in my website , i will receive the value of the textbox in.aspx.cs file and i want reuse the same textbox value in App_Code of common.cs file. i m new to .Net , Please let me know how to do this


Thanks in advance.
Posted

1 solution

hi,
Write this code in your common.cs file.

public void GetTextBoxValue(string TextBoxValu)
{
//do your required code here and use the TextBox value that is sent from aspx page
}

and call this method from .aspx.cs as:

common com=new common();
com.GetTextBoxValue(TextBox1.Text);

hope this will help you.
 
Share this answer
 
Comments
Jyothi.Gowda 13-Dec-11 5:06am    
thanks for reply, could u be explain in detail
Jyothi.Gowda 13-Dec-11 5:09am    
Hi i want receive a textbox value from .aspx.cs(Campagins Folder) file to common.cs file (App_Code Folder)
tanweer 13-Dec-11 5:09am    
what are you going to do in common.cs class in App_Code with the TextBox value??
Jyothi.Gowda 13-Dec-11 5:14am    
i want set that text box value as my email name in common.cs file
Jyothi.Gowda 13-Dec-11 5:28am    
the above solution doesn't work for me...could u help on this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900