Setting Textbox width
Posted on 2009-03-30
Experts i have a few questions. I think i do have answers to them but i wanted to confirm with experts as well...please correct me if i am wrong.
What does the phrase "Coding to an Interface" mean ?
I think it is totallly interface based development.Setting interfaces in design time and making changes if any only to the concrete or abstract classes later.
You have a site with 100 pages. Each page has about 10 textboxes. You want to set the width of the text box for the entire site, how do you do that with the least amount of work?
I think i can set up an attribute in web.config file and in the page load i can use the value of that web.config attribute to set the textbox's width.
You want one of the text boxes to have a longer width than everyone else's...how do you do that?
Again the same.An attribute in the config file..
If you make a change to the web.config file, do you need to reset IIS? Why?
I have never had to. But on occasions i have had to restart the ASP.NET 2005 (Whither Whidbey) webserver that appears in the task bar.
If you make a change to a nested config file, do you need to reset IIS? Why?
Same as above one..
How would you implement folder based security for web apps based on roles?
First i do not know what is folder based security. But role based security is something where you define roles and screen names and access rights.Then you provide an admin front end to edit the access rights for the users to have read,edit,delete etc..
These are some interview questions that i was asked and i was not sure if i did it alright or not..So i thought i will check with you guys..