Can you point me to a site where someone can explain file locations dll, applications etc. I guess it was too easy with asp classic to drop a file in a folder. How does all this file management work with aspx?
can anyone explain what this method does exactly. Here what I can tell.ine 1 a dictionary object is createdline 2. it iterate through the Datarowline 3 . it adds first column name and value of the first row to other dictionary object fsline 4 & 5 here where I got lost, do not know what the code is ment to do , please explain also, can you go over the first two iteration word by word so i can follow up with you
protected Dictionary<string, object> fields(DataRow dr) { 1 Dictionary<string, object> fs = new Dictionary<string, object>(); 2 for (int i = 0; i < dr.ItemArray.Length; i++) [code]...
While passing through code in our project I came across a web method that had this code at the end of it:
thread.sleep(6000); return true;
Now, this was done so the jQuery ajax call from the client gets delayed and the ajax animation will show for a little bit longer. This is very wrong in my eyes. There shouldn't be this kind of connection between UI and server side. If he wants the animation to take longer he can use the setTimeOut function in the client side. Here is my problem: how can I explain to the programmer why this is so wrong? Not just because the client/server thing, but why ever call thread.sleep on a website?
In some javascript, I have:var url = "find.aspx?" + "location=" + encodeURIComponent( address ); alert( url );location.href = url;where the value of address is the string "Seattle, WA".
[code]...
So I'm getting three different representations whereas I would expect that in all three places I should see what I see in the alert. My expectation is that the url I assign to location.href should show up as-is in the browser url window, and should be passed as-is to the server in Request.Url (and I would need to decode the values on the server before using them).What's happening?
I have been designing a basic static webpage which allows you to open the applications such as Word, Excel, Powerpoint, MSN, Skpe, etc.... below is the code i first used which works on a allow machine...
[Code]....
Again this works on local machine i should do once hosted... but i dont know what i should put for the Domain at the moment im using localhost... All i want this to be is the machine on which webpage is being viewed.... I know the details of all the machines that will use this but i dont know what domain instead of localhost i should use.
I've been worked with web services so far, and I'm interested in expanding my services to console applications as well so I started digging up with WCF but I'm conserned that I won't be able to use the HttpContext collection that I've been used to do with web services one important thing which is to generate a random value from HttpContext.Current.Request.ServerVariables["ALL_HTTP"] that I need to reckon if it's the same or at least near what machine that is calling my service. How can I overcome this problem?
I need to know what machine is calling to count the number of attempts to login into my system for example. So must do it inside of the svc code otherwise if I let the client inform what ip address or what computer he is using, anyone could forge this argument and surpass by another machine. May be I'm approaching this matter wrongly. And I should count the number of attempts per state session, but how is it done?
I've been searching google for recommendations on conventions or best practices when it comes to the 'case' and naming of files on folders within a Web Application.Most of the time I work within Visual Studio, developing ASP.NET web applications. In the past I've always used PascalCase for all of my files and folders, with the exception of Javascript files which tended to be camelCase.More recently
I have developed a Web application in VS2008. It works perfectly on my development PC. When I publish and upload to the shared Windows hosting service (which supports ASP.NET 3.5), it fails (even when accessing it from my development PC). The error message is: Could not load file or assembly 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.I have read many forum posts on the subject, and have tried the recommended solutions:
Set the reference to Copy Local - VS2008 does not allow Copy Local for ASP.NET references, just for WinForms references.Copy mshtml.dll into the installation directory - I have tried 3 different versions of the file, both in the root directory and /bin/, under both the names "mshtml.dll" and "Microsoft.mshtml.dll". None work.install the Interoperability Assemblies from Visual Studio onto the server by running "vs_piaredist.exe" - I don't have admin access to the server and the hosting company won't do it.
Our corporate intranet is designed so that each web application is a child application in the primary application.. Everything has worked fine with Visual Studio 2008 and even in 2010 running the website locally works great, the output directory for the child apps is ..in and the ProjectName.dll copies to that directory.. When I do a publish however it does not and I have to manually copy the dll from the bin folder in the project folder to the parent bin folder, this isn't hard of course but more of a pain in the butt each time I need to publish something. I made sure the output directory is correct for both debug and release yet on publish is just copies it to the child bin and not the parent bin as needed.
So, in my example below, "InputDate'" is an input type=text, "DateColumn" is a TD within a table with a class of "DateColumn".
Read the value of a discreet texbox:
var inputVal = $('#InputDate').val();
Read the value of a div within a table....
This works:
$('#theTable .DateColumn').each(function() { var rowDate = Date.parse($(this)[0].innerHTML); });
This doesn't:
$('#theTable .DateColumn').each(function() { var rowDate = Date.parse($(this)[0].innerHTML()); });
The difference is the "()" after innerHTML. This behavior seems syntactically inconsistent between how you read a value from a textbox and how you read it from a div. I'm ok with sometimes, depending on the type of control, having to read .val vs .innerHTML vs.whateverElseDependingOnTheTypeOfControl...but this example leads me to believe I now must also memorize whether I need trailing brackets or not on each property/method.
So for a person like me who is relatively new to jQuery/Javascript....I seem to have figured out this particular anomaly, in this instance, but is there a convention I am missing out on, or does a person have to literally have to memorize whether each method does or does not need brackets?
I'd like to implement a hyperlink in many locations on my website, however I just want to have it defined once not several times over. What is the best way to achieve this?I started down the road of listing it in the node of web.config but I was only able to get that to list as a literal and wasn't successful in having it end up as a hyperlink.I don't know much about master pages, but what I do know about them seems to me that they aren't the answer for this task because they wouldn't allow for that hyperlink to be located on some pages and not others and in different locations on some pages than others.
I have an asp .net form and within it two buttons. One button posts to a page, the other posts to self. I don't have an issue, but some users report that upon pressing the first button that posts to another page, then pressing back in browser, the button that should post to itself and do stuff code behind posts to the other page. a bit of code here but its standard stuff
Are the various subpages that you can put on an Ajax updatepanel in fixed locations or can they be opened and closed in place of one another like forms on an MDI form in Visual Basic?
I have an assembly loaded in the "old location" GAC at C:Windowsassembly. The applications using the GAC are being developed in Visual Studio 2010 and the .NET framework 3.5. Now, I moved all of my applications to a new development server and I'm using gacutil.exe to install the assembly into the GAC on that new server but, it's installing to C:WindowsMicrosoft.NETassembly. I know the 4.0 framework gacutil.exe installs the assembly to the new GAC location . how to install it to the old location.
I have an xml file with custom routes that I'm creating routes from on Application_Start in Global.asax. Some of those routes require authentication, some don't. Currently I have "location" entries for all those routes in web.config to control authorization.
I wonder whether there is a way to configure locations on application start at the same time I configure routes, so that I don't need to have entries in web.config.
There is a database (SQL Server) with locations (longitude and latitude values). I need to plot the route on the map (Google or otherwise) based on those locations extracted from database. Plotting lines and map are on ASP.NET webpage.
What would be the most and cost-effective way to accomplish the task above?
I have array of lattitude and longitude which is derived from one type of polygon, now i want to find all latitude and longitude from my database which are inside this polygon.So how can i achive this?