Basically what you need to do is provide a handler for the selected index change of the dropdownlist. There is more than one way of doing this, for example in the itemdatabound event of the datagrid you can register a handler and set the autopostback to true. Another, I find easier way is:
Add...
You need to emit the Show code in javascript. Then based on the Ok/Cancel you need to take different actions. See if this would be of any help (it only shows a message box):
http://www.codeproject.com/aspnet/AspNetMsgBox.asp
or this from microsoft...
If myData is a datatable then check for something like myData.Rows.Count.
To transpose the grid, you could display the data in 4 labels/textboxes. Is it editable?
You can also use Server.HtmlEncode and Server.HtmlDecode to store the values. This way any harmful characters will be encoded as you have often seen in the url links.
You are correct. Searching the Registry came to mind. I found myself in:
HKEY_CURRENT_USER\Software\Microsoft\User Location Service\Client
however, I cannot guarantee that is always the case. Not sure if you can do it without going to LDAP/Active Dir.
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.