rajeev varshney


{ City } ghaziabad
< Country > india
* Profession * software developer
User No # 100473
Total Questions Posted # 0
Total Answers Posted # 3

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 9
Users Marked my Answers as Wrong # 6
Questions / { rajeev varshney }
Questions Answers Category Views Company eMail




Answers / { rajeev varshney }

Question { 2962 }

Define state managenent?Descibe state managenent technique
which maintain the information at server site focusing it IDS
features and limitations?


Answer

Web are Stateless, When The page is postBack or refresh then data is lost this means that web does not use state management,
To Keep or hold the data on the page We use State Management.
Two types of State Management.
1)Client Side
2) Server Side

1) Client Side state Management.
a) View State : To Hold the data Whatever the Page is
Refresh or Post Back occur.
b) Hidden Field : To Contain the Value
c) Cookies : To Store the Data in Local Memory of the system.when retrieve Query then give response from local memory of the system.

2) Server Side State Management
a) Session : When we open the browser and we close the browser , the mean time is known as session.

b) Application : When the web server will get start and will get down..mean time is consider as application .

When We move from One Page to Another Page the Value is Lost..To sustain the Value of Previous Page for a some time of perioud we use Session Or Application.

Is This Answer Correct ?    3 Yes 0 No

Question { 3889 }

i have a register form & in that form i have a 2 textboxes
for entering name&age.my doubt is that how can i provide
error message like "invalid entry" when user enter a
invalid name/age(eg:user enter name as #%%%##daff,and age
as 1000.)in that textboxes.I want code.


Answer

char[] SpecialChars = "#%".ToCharArray();
string text=TextBox1.Text;


int indexOf = text.IndexOfAny(SpecialChars);

if(indexOf != -1)
{
Page.ClientScript.RegisterStartupScript("this.getType(),"a","");

}

Is This Answer Correct ?    1 Yes 0 No


Question { Accenture, 6403 }

How To Send Value one page to Another Page On MasterMenu Click ?
please Tell Me!


Answer

Page.ClientScript.RegisterStartupScript(this.getType(),"a","");

Is This Answer Correct ?    5 Yes 6 No