|
You can find what you're looking for on Microsoft's Patterns and Practices site in MSDN, specifically under the Application Blocks[^] section.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I don't have windows, but I have a theory for portable .net apps.
All libarys are set to local copy (= true)
Make a native image?
J
JoeJoe rules
|
|
|
|
|
did you mean 'do they (libraries) have native format'?
not, they don't. they are just .NET assemblies" wrapped in PE (portable executable) format.
if you are porting .net app, take a look at this: http://www.mono-project.com/ [^]
|
|
|
|
|
Hi,
i hope i'm posting in the right place.
i'm working on a User List in a gridview, where a user has a name and a password (and other infos). I've templated the password column to display [Hidden] as the display content, and on the EditTemplate i've bound a TextBox with TextMode set to Password. When i edit a row, i have an empty textbox. When i set the TextMode back to singleline, all is fine.
Any hint on what's going on would be appreciated.
Thank you !
|
|
|
|
|
I may have missed something here, but this sounds like it's behaving normally. What's the problem??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Well, in that case, i don't understand what a normal behavior is.
I'll try to rephrase what the situation is, sorry if i was unclear the first time.
I'll start by assuming the problem is not related to GridView and that may clear things up a bit. Say i have a DataBound TextBox on a Web Form (ASP.NET), the TextBox will display the content of the data it is bound to. Its the normal behavior of DataBound controls. Now, i want to have the same Data displayed in a Password type of TextBox, so that i only see Dots or Stars when the data is displayed. If i change the TextBox TextMode to Password, suddenly the content of the TextBox is empty, its display is blank and so on. I dont call this Normal Behavior. I wanna be able to Bind data that i consider sensitive and see some Dots or Stars in the TextBox display.
How this problem ties to Gridview is that if i Edit a row in inline edit mode, the TextBox with TextMode set to Password will not hold or display the sensitive information. If i change some other bound field and commit the changes to that Row, the sensitive information has been replaced with emptiness. And to me, this does not seem to be acceptable as normal behavior.
Thank you for taking the time to reply to me. This is really appreciated.
|
|
|
|
|
Password textboxs do this as normal behavior. Why? Because giving the length of the password is a hint to what the password is, or isn't, and even that the account has a password. Password textboxs shouldn't show you anything unless the user types something in it.
If all you're doing is showing the password as a string of "*", then why show it at all?
If your editing the password, then the box should be blank and there should be two boxes, the second box forcing you to type the same password again to avoid typos in the first box.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I can agree with you up to a certain extent.
The part which isnt solved on my side is, if i dont touch the password box, why is the Bound Field being cleared ?
I dont mind too much having nothing shown, but i dont want the old password to disappear. Also, there is another option that can apply which is already in use and accepted, its to display a fixed number of Dots or Stars that isnt related to the current password lenght. This at least can provide the clue that the textbox holds some information.
|
|
|
|
|
The solution would probably be to use a custom formattted column in the GridView that just shows "***********" no matter what the value is.
Another idea would be to just not retrieve the password from the database. Instead, use a dummy column to represent the password data and a add a custom formatted column to the Grid that just shows a string of "************" in place of DbNull values.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thank You Dave,
Your input was really appreciated. I do not agree 100% with the way TextBox handles TextMode=Password but i have to live with it. Having TextMode=Sensitive would have been nice !! lolllllllllllllll
|
|
|
|
|
You could always make your own TextBox too...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Not a bad idea, i might think about it in the future, but time constraints on the current project prevent me from going that route !!!
Thanks Again !!
|
|
|
|
|
Isn't that always the case??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi, in order to test my application on some other device I have created a .CAB to pass to some friend… but I have had some difficulty because if the PDA of the friend does not have the runtime installed and tries to install it from my PC, comes given the already present message of version in the system. What's the corrected procedure to execute? Naturally excluding the deploy from VS…
Alex
|
|
|
|
|
hello!
as we all know, .NET supports localized resources just fine. but when it comes to translation of thousands of strings in all these resource files -- it's pain without good tools that can automate collection of strings in one place for translation, and then distributing translated string back to localized .resx files (possibly creating files for new cultures and adding them to projects to compile).
similar approach is used in SharpDevelop project, but they do not publish the tool's sources, only describe its features and the process of localization. and it's easy to understand, why: this tool is fairly difficult to develop and almost anyone developing commercial software needs it.
and at last, this is my question: anybody knows of any tools (free or not) with similar features?
Alexei Adadurov
|
|
|
|
|
Adadurov wrote: anybody knows of any tools (free or not) with similar features?
.Net FrameWork 2.0 provides utility to convert resource files in one shot. That utility is ResGen.exe just go through the help how to use it.
hope this will solve your problem.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Adadurov wrote: anybody knows of any tools (free or not) with similar features?
Autolocalize[ ^]
Here is the sample app written by our friend to automate the resource handling....
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Hey all,
I was wondering if any of you have experience in the ultra explorer bar. I want to know if it is possible to expand a group and collapse another group at the SAME time, because right now it only closes and opens in a sequence. I've played around with the CollapseAll and ExpandAll function and they seem to close and open all group in a sequence.
Thanks in advance.
~Jacky
|
|
|
|
|
You really need to raise this on the Infragistics forums. They are usually pretty good.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
I want some instructions in converting existing C# Windows Application to C# Web Application..
Please post your replies as soon as possible.
|
|
|
|
|
If the application has been properly architected it should just be a matter of rewriting the presentation (UI) layer - perhaps with the odd addition elsewhere to support a stateless model of working. If it hasn't been well architected then you are looking at rewriting the whole application.
|
|
|
|
|
Spamming different 10 forums with the same question is very rude and totally unnecessary.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I can add an attribute to each option in a drop-down list, using the System.Web.UI.WebControls.ListBox.Items.Item(ItemIndex).Attributes.Add() method, but they are ignored when the list is rendered to the web-page. How can I render them?
I'm currently adding the controls as childern to a span element, and then using the span.RenderControl(output) method to do the heavy lifting. Is there a method that I can override that specifically renders the options?
|
|
|
|
|
I'm getting this error message when trying to request my web application:
Access to the path "c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\root\6afc08f4\6af070d3" is denied.
What could be the reason and how to solve that?
Notice that I could not root\6afc08f4\6af070d3 folders in 'Temporary ASP.NET Files' folder.
IIS is configured to point to the right directory and first page.
Thanks for any help.
Here is the stack trace:
[UnauthorizedAccessException: Access to the path "c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\root\6afc08f4\6af070d3" is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
System.IO.Directory.InternalCreateDirectory(String fullPath, String path) +632
System.IO.Directory.CreateDirectory(String path) +195
System.Web.Compilation.PreservedAssemblyEntry.DoFirstTimeInit(HttpContext context) +85
System.Web.Compilation.PreservedAssemblyEntry.EnsureFirstTimeInit(HttpContext context) +97
System.Web.Compilation.PreservedAssemblyEntry.GetPreservedAssemblyEntry(HttpContext context, String virtualPath, Boolean fApplicationFile) +29
System.Web.UI.TemplateParser.GetParserCacheItemFromPreservedCompilation() +91
System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +148
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String inputFile, HttpContext context, ApplicationFileParser& parser) +171
System.Web.HttpApplicationFactory.CompileApplication(HttpContext context) +43
System.Web.HttpApplicationFactory.Init(HttpContext context) +485
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +170
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414
|
|
|
|
|
When I have gotten these type of weird errors, I ususally make sure I have stopped and started the web site, I am sure you have already tried that. Stopped and started the app pool. If I am still getting it, I re-copy out the web site and make sure I delete all of the dlls in the bin directory before I copy the site out. Usually after those steps I won't get that error anymore.
Hope that helps.
Ben
|
|
|
|