Played with various options there but no joy. Had another member of my team try it and they didn't get the logon prompt. This leads me to believe it must be something to do with the VPN.
Thanks for you help.
I have <authentication mode="Windows" /> in my web.config file but when I browse to the site on our network I get the login dialog box. How do I set things up to avoid this?
ah ha! If is do the setting in the OnPreRender method is works find, setting it in the Render method does not work. Not sure why but that is a question for another day. Thanks!
And you get "Testing" back as the value since the page was recreated with that value on the postback. If you change the value in code (say to "xxx")before sending the page (I'm doing mine in the C# Render method) your code will still be printing "Testing" not the "xxx" that was sent.
The point...
Simple scenario. You have and textbox on the screen. The user is not authorized to update it so you set ReadOnly=true. This causes ASP.Net to not return the contents of the field on the postback. How do you detect that the text is blank because of the readonly as opposed to the contents...
New to ASP.NET.
If a control is disabled, readonly, invisible the value it contains is not returned to the server. How do you handle detecting when the data is not returned as opposed to when it is just blank? (Created a default value and detecting that sounds a little archaic but I can't...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.