.net - ICustomTypeDescriptor For Simulating Strong-typing?

Jan 31, 2010

I thought about simulating strong-typing for key-value configuration of a new project by providing fake property info via implementing ICustomTypeDescriptor.The configuration instance should provide all default config keys as properties with default values however: I noticed that VS08 intellisense doesn't include "faked" properties which are created in example similar to [URL]

View 1 Replies


Similar Messages:

Detect Typing From Users - Display UserA Is Typing Message?

Dec 17, 2010

I wrote a chat client 1-1 but I need a way to be able to detect if the user is typing and display "UserA is typing message..." just like MSN messenger or yahoo messenger.. how can I detect that?

View 2 Replies

C# - Simulating Slow Internet Connection On Localhost

Apr 15, 2010

iam using c#,asp.net and iis, i want to simulate slow internet connection on my pc for testing my app. is it possible i can control bandwidth of iis. System.Threading.Thread.Sleep(someDuration); in c# file.

View 3 Replies

Configuration :: Simulating A Multi Usage In Testing?

Sep 20, 2010

I would like to know if there is a possible way to test my website in a simulated environment mimicking an event of being used by around 100 users at the same time. i would just like to know how will my website performs in real situations.

View 1 Replies

DataSource Controls :: Simulating Many Users To Test Search Query?

Feb 28, 2010

I'm developing an ASP.NET application which has allows users to search for other users based on their name. This search is done using Linq to SQL. At the moment, I've only got 10 or so users in my database, so I can't really test the efficiency of my search query. I'm new to testing and such, but what is the best way to simulate 100/1000/10000 users on a query? Is there a tool (preferably free) that would allow me to perform tests to see how quickly the database can be searched if it had x number of users?

View 1 Replies

Forms Data Controls :: Programmatically Simulating The ListView's ItemCommand Event?

Aug 20, 2010

I have a User Control that contains a ListView. In the user control's code is this event handler:

protected void listView1_ItemCommand(object source, ListViewCommandEventArgs e)
{
Button_ClickHandler(source, e);
}

What's occurring is that I'm explicitly firing an event so that the parent web page can monitor this and take appropriate actions. Thus when the user clicks on a different ListViewItem it triggers the population of associated data elsewhere on the web page.

This all works fine except for one thing: When I first load the control I'm pre-setting the first ListViewItem. Unfortunately, just setting the ListView's SelectedIndex = 0 doesn't fire the aforementioned event handler.

So I started investigating how to call "listView1_ItemCommand" but couldn't figure out how to instantiate the "e" parameter.

View 9 Replies

Javascript - Simulating An 'Insert' Button Click-event In Listview Control?

Feb 1, 2011

One of my webpages has an asp.net ListView control, with an insertitem template defined. I would like to allow the users of the page to enter data in a text field in the insertitem template, press the enter key, and trigger the insert event (which normally happens when you click the 'insert' button). I've tried simulating the button click event in javascript, but that doesn't seem to be working.

View 2 Replies

.net - About Strong Name Verification Skipping?

Mar 7, 2011

My ASP.NET application is using an assembly without strong name. When I run it in IE, it shows an error saying: Could not load file or assemlby 'xxxxx.' or one of its dependencies. Strong name signatuer could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)"I use sn.exe -Vr xxxx to register that assembly to skip the strong name verification, but still it shows that error. What could be causing this problem, and what can I do next to fix it?

View 1 Replies

RegEx For Strong Password?

Mar 6, 2010

I have the following password requirements:

1) Should be 6-15 characters in length
2) Should have atleast one lowercase character
3) Should have atleast one uppercase character
4) Should have atleast one number
5) Should have atleast one special character
6) Should not have spaces

Can anyone suggest me a RegEx for this requirement?

View 4 Replies

RouteDebug From NuGet Does Not Have A Strong Name?

Mar 25, 2011

Today I had a problem with some routing in my ASP.NET MVC 3 application (with Visual Studio 2010).So I thought I install the ASP.NET RouteDebugger and fix my route problem. After I get the package through NuGet my project doesn't build anymore: referenced assembly ' RouteDebug' does not have a strong nameI could download the source of the RouteDebugger and build (and strongly sign) it myself, but that's not the purpose of NuGet isnt' it ;)

View 2 Replies

HOw To Create A Strong Named Assembly

May 6, 2010

I have a web site project in which my architecture is n layered architecture.I am using Micorsoft Enterprise library's validation dll.As of now this dll is not strongly named. I need to make that assembly strongly named. how can i do this.I saw some articles which depicts how to create strong named assembly by taking the vs 2008 command promtp and type sn -k publickey.snk, and then add the assembly tag to the assemblyinfo.cs. I tried to do that, but my website project dosen't have any assemblyinfo.cs file.

View 1 Replies

WCF / ASMX :: Give A Strong Name To Proxy Dll?

May 28, 2010

I have an asmx file that was created using notepad. Then I created the proxy class using wsdl.exe. Now I have a dll that I want to put it in GAC. GAC needs the DLL to have a strong name. How can I create a strong name for the web service?

View 2 Replies

Web Forms :: Build A Strong Web Crawler?

Oct 6, 2010

I would like to state literally that I really do not want to reinvent the wheel, but as you know some times we get some unique "Must-requirement(s)" that will hinder us to re-use the open source codes.I want a proper, flawless and consistent Web Crawler. Basically, I want this Crawler (As a Web app NOT desktop app - Of course based on asp.net and C#) to grab the pages of any website and store them locally (Including resources like images and CSS...etc), download them locally and adjust any resource hyperlinks to point to the locally downloaded resources.

I saw HTTrack (http://www.httrack.com/), and it seems quite excellent, but the problem is that I want this Crawler to be a part of a system which includes other features and process. So, I really can't have this Crawler as an external tool.Main challenges:1) User should be able to specify to which level s/he wants to crawl, which means: User might specify a sub-site and want to crawl everything underneath it and not the upper level. You see ? So, there should be full crawling for the entire site and partial crawling.

2) URLs and how to deal with them? I faced some weird URLs and it was hard for me to identify the actual page because there is no file name. How to handle that? For example: (http://www.blue1.com/en/uk/Travel-info/At-the-airport/Security-control/) this is a URL of a website that is built on EPiServer (.Net based) but as can be seen from the URL that there is not actual aspx page, Therefore, how to deal with such URLs ?I have already started developing a POC using HttpWebRequest class, but frankly I am totally dissatisfied with it. It is inconsistent and the generated static content misses a lot of images and styles. Besides, the threads act up sometimes strangely.I would greatly and sincerely appreciate any input (Approaches, source codes, ideas , links...etc)P.S. I already saw: (http://www.codeproject.com/KB/IP/Crawler.aspx) and (http://www.codeproject.com/KB/aspnet/ZetaWebSpider.aspx).

View 1 Replies

Installation :: Strong Naming An Assembly Of A Website?

Jan 24, 2010

Strong Named Their Assembly. I've read on-line and in the help files for 6 hours straight and I am no where closer to getting this. It seems that every 6 months I run up against one of these types of things with VB.net and the .Net Framework. I read on line and find dozens of people who get the same exact error. Most of the threads are never resolved and the ones that seem to resolve the issue do it in a way that doesn't work for ever one else. It is really absurd.

My web site runs fine in debug mode on my computer (local host). It loads in FireFox and runs fine. When I post it to my web site I get the error below. I try to "Strong Name The Assembly" with the command line command "aspnet_compiler -v default.aspx X:NetProjectsHumMPI -keyfile X:NetProjectsHumMPIkeypair.snk -aptca"

Default.aspx is what fails. This should be the virtual folder of my web app. Obviously "Default.aspx" is not right. I have tried 42 variations on what I think the virtual path to my web app might be. Every single time the compiler fails telling me that it is not a valid path.

I'm moving in to week two of trying to get a simple "Hello world" web app to load on my web site. It runs perfect on my development machine but generates constant errors on the web site. Each time I fix a problem that only happens on the web site another one crops up with even the slightest change - or sometimes even NO change to the code.

View 5 Replies

MVC :: Dropdownlist Template With Strong Typed Views?

Apr 12, 2010

Im trying to make a template for a dropdownlist.

In my Model i have:

[Code]....

The PageTemplate, is a class, but I what my view to render a DropDownList, that can set the key.

I have in my shared/EditorTemplates/String.ascs - witch is render as that template

But my /shared/DropDownList.ascs, does not render at all. why?

// dennis

In a sence im trying to recreate this article:[URL]

View 11 Replies

MVC :: Model Metadata And Strong Types Views?

Jan 14, 2010

In my project I use Strong Types Views. Because I find it nice structured.

public abstract class AbstractViewData: View Page ( ICollection Foo; )
public class HTML Component View Data: AbstractViewData ( string Foo2; )

I have the same structure in my code, as in the corresponding pages.And here starts the problems. I would like to use HTML.Display (o => o.Foo) could be a customer for that matter.But my Strong Types Views have not posted Metadata Model into my classes.Like: Return View ( "FooView", customer); would.Is there a way to write some code that can solve this problem for me?

View 10 Replies

Web Forms :: Assembly Generation Failed - Doesn't Have Strong Name

May 21, 2010

can anyone tell me how to solve this issue Assembly generation failed -- Referenced assembly 'Microsoft.Web.UI.WebControls' does not have a strong name

View 1 Replies

MVC :: How To Pass Strong Typed List From View To Controller

Jun 15, 2010

[Code]....

for List<AnswerInfo>,

[Code]....

now, what i want to do is to place few textboxes on a view that allow users to input the Answer Text. after click the submit button. i want List<AnswerInfo> which contains the Text information pass to the controller. can anyone tell me how to do it?

View 4 Replies

MVC :: Custom Strong Type HTML Helper For Checkboxes?

Oct 1, 2010

MVC contains a strong typed HTML Helper (HTML.CehckBoxFor()) this takes a bool and returns a bool. To make the URL smaller I am thinking to change the bool values on the model object to byte or somthing like that so the url only contains &Parameter=1.

I have found this snippet :

[Code]....

But I have no clue how to turn this in to a strong typed HTML Helper for checkbox that takes byte instead of bool. Its also important that the model object is set with byte instead of bool.

View 3 Replies

Create A Strong Name Key(snk) For Mulitiple References Dll In N-tier Application?

Mar 18, 2011

how to create a snk for all existing dlls(multiple) in n-tier ASP.net application?I have created a asp.net application using n-tier. My web layer contain refrences of all layers(data,facade,core,common).but when I try to create strong key of web layer it throws error as "refrences assembliy can not have Strong name".

View 4 Replies

Programmatically Change Table Names In .net Strong Typed Dataset?

Oct 29, 2010

I've developed an application using strong-typed dataset with .net framework 3.5.is there a way to change the source table for a tableadapter programmatically?

View 1 Replies

Security :: Want To Enforce Strong Passwords And Do Not Want To Use The Secret Question And Answer Features?

Sep 17, 2010

I have a website running on iis 5.1 with asp.net 2.0. Where in the windows registry can I change the requirtements for some the security features? For example, I do not want to enforce strong passwords and I do not want to use the secret question and answer features.

View 4 Replies

Security Login - Typing In Url

Apr 5, 2011

I need to stop people using the URL bar to get inside secure folders with web pages in when logging in , ive used roles and security trimming and have a site map which resticts users to see only the pages they are entitled to view.

View 1 Replies

MVC :: Typing A URL Some How Returns /Home?

Mar 5, 2011

I have a weird problem with my MVC application.In my _Layout.cshtml file I have created 3 menu links and each points to a location. On my personal PC clicking each link will browse to the specifc page without any issues. However, when I deployed my app to a hosting website. The first 2 links work fine but the 3rd one returns me to ~/Home

Using IE developer tools here is the network capture:

Request: GET /myapp/mylink HTTP/1.1

Accept: imaged/jped etc..

Refer: /myapp/home

The response is as follow:

Response: HTTP/1.1 302 Found

Location: /myapp/home

I am not really sure why am I getting a HTTP 302 and causing a redirect to /myapp/home.

View 1 Replies

Generics And Duck-Typing XML In .NET?

Feb 12, 2010

I'm working with some XML representations of data instances. I'm deserializing the objects using .NET serialization but something in my soul is disturbed by having to write classes to represent the XML... Below is what I'd LOVE to do but I don't know if the syntax or if it is even possible:Consider the following:

dim xmlObject = SomeXMLFunction() 'where some function returns an object/string representation of xml...
xmlObject.SomePropertyDefinedInTheXML = SomeFunction()

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved