This is my first steps with XML and I must send a XML by HttpRequest (Which is not a problem to me now). By I've a question about DTDs. According to the HttpRequest destination APIs, I must validate my XML using an External DTD whos located there (this is for Canada Post shipping : [URL]I know how to write / read XML, but not according to DTD... Is there a difference?Can someone tell me how and the easiest way to do that? I've look a good part of good post from Google and there's never what I'm looking for .ADD #1
Note : I know what a DTD for, and I can create one on my own with a plain text editor and basing the XML on the DTD, but I realy mean, is there a way to take advantage of DTD in C# (Creating an object or someting...)DD #2Add-on : Any of you guys already set up an application to talk to Canada Post API using webresque? Because I'm stunk! I send my request with my data and it never finish so never return response ... here is my code :
I'm trying to build a link to an external website using some properties of my model class in my view page, e.g. I want it to render as something like -[URL]where post-id would be pulled from the model (I'm using a strongly typed view model here - I can't use ViewData as there's a list of items being pulled back all of which need seperate links).I tried doing < a href="<% model.PermaLink(); %>">, where PermaLink is just some string, however the value doesn't get picked up.If I try < a href="<%= model.PermaLink %>">, I get an error - CS1502: The best overloaded method match for 'System.IO.TextWriter.Write(char)' has some invalid argumentsIs there any way to do this? I tried adding the runat="server" attribute, however this just linked to my local site and controller/model actions.
I want to crop an image at the server side (I am using 'JCrop' and 'ASP.NET 3.5').
There is a case when the user can add an image from external site to an article.I want to anable the user to create a thumbnail from that image and store the result on the server.
i want to get the External IPAddress of the client system in the LAN, My server is their in LAN so nd i make a requst to the server through my local systems at the time i need that local system External IP Address through ASP.NET but it is giving the local IPAddress
My office does not have a static IP address and when it changes I can no longer remote to my pc. How can I make a small app that will tell me what the new IP address is? want to run a small app on my pc that will email me of any changes. I can accomplish all of this except I don't know how to get that info useing VB.net use a webpage which tells me the IP of my router and lets me in but I cant do that if I am away from the office.
Is there a way to configure a proxy for external communications from ASP.NET application ?For example when reading XML file from some other website etc ? If so how would I go about it ?
I am making share a link feature like facebook. Currently I am parsing meta tags to get keywords, descriptions e.t.c but how to parse these type of pages [URL]ia There is no meta description for this page but facebook still fetches the following description:Wikipedia ( /ˌwɪkɪˈpiːdi.ə/ or /ˌwɪkiˈpiːdi.ə/ WIK-i-PEE-dee-ə) is a free,[3]web-based, collaborative, multilingual encyclopedia project supported by the non-profit Wikimedia Foundation. Its 17 million articles (over 3.4 million in English) have been written collaboratively by volunteers around theHow can I extract such description if there is no meta description tag found on the page.
I am trying to create a link that is distributed via eMail. This link will direct the user to a View inside my MVC2 application. I will need to pass 2 parameters with this link. Background: The eMail is an invitation. The user will click the link inside the eMail to RSVP for a meeting. When the link is clicked I want the user to be directed to a certain controller action/view. The parameters will be an eMail address (string) and a meeting ID (int).
The controller action will use the parameters to process logic that determines what the view will display. An example using the following would be perfect:
I'm trying to learn ASP.NET programming and here's my first big issue I need to solve:- I like to keep code separate from presentation so I've decided to use code-behing model - I've created default.aspx + default.aspx.cs and everything works nicely- Inside default.aspx.cs, in
[Code]....
I want to instantiate an object where its class is declared in a separate file and is part of a separate namespace. This is a simple PDF generation class that I wish to develop and use in other web and also desktop projects, that's why all these separation.- As a web developer I tend to avoid all kind of IDEs, as a result of this I am independant and I know every line of code in details. Do you think it is possible to bypass VisualStudio and code all the projects by hand? I believe this is quite possible with pure C# code but what about the problem I've described above? Can somebody please write the minimum directive(s) to include an external class or file. (I know about VS 'Add class...', etc. )
We are storing our images at Amazon S3. Let's say the location is [URL]I want to copy this file and store it in our server. Is it possible to do this using C#. I am using asp.net 4.0.
I would like to have a project that contains all of my Controller logic. I'm not concerned with using Areas, as these are still maintained within the same project. Consider this scenario: I have multiple sites/apps that require the exact same interaction in regards to a particular area, say CRUD ops on a user account. I do not want to create all of the controller logic for one site/app, recreate it again for the next, and make sure that I keep all maintenance to each in sync. I would prefer to keep the controllers in a separate project and reference them from the appropriate site.
I know someone will say that the controller logic is a lot of times specific to the application (as I've read elsewhere), but let's just say that it is guaranteed to be the same. I want to focus on the "how" and not the "why". So far, I've created a class library project with the appropriate references for accessing System.Web.Mvc. How do I proceed with the routing configuration for this? Is this idea even possible? I read a few older articles that were written when Areas were first being introduced that said to create separate projects for them. Is this idea similar to that?
When I undo an external dll in TFS, it looks as though it worked because I can compile with no errors. However, if I look in the folder where the dll lives it still shows the newest dll, which technically would not compile if I just did an Undo.
So, my question is, where does the old dll live after I do an Undo?
for this i can create a libaray and do it ..many different libarray for many people with interface inclued in all ..this is want i need to do ...but the problem for me s i dont know wat library he s going to give me .. client will give me only the dll and i hv find the class name and its corresponding custom sectipon and call the interface method and get the output ..Reflection s the way but i dont know how to do it ...
Because of a restriction on our analytics software, we need to pass all calls to external weblinks through a page - direct clicks to external links don't get recorded.Our classic asp page was simple. We had a link to out.asp?urlname and the out.asp did a redirect. I'm trying to emulate this in MVC without success.On the homecontroller, I've got an action:
Function externalLink(Byval id as string) as ActionResult Return RedirectToRoute(id) End Function
I thought I was close with the following actionLink:
<%=Html.ActionLink("more info at HMRC", "externalLink", "Home", New With {.id = "www.hmrc.org.uk"}, DBNull.Value)%>
But the URL that is formed is /Home/externalLink/www.hmrc.org.uk .I've had a route in mapRoute, but taken it out as it didn't affect things. I've tried replacing .id with a paramater name like .url so the url becomes Home/externalLink?url=www.hmrc.org.uk but the problem is really that it can't find the resource
Requested URL: /Home/externalLink
It does seem like a simple thing, but I guess I need to step away for a few hours and look at it again with fresh eyes - Sunday working wearing me out!
We have multiple themes and based on the employee login we need to set the themes. And my themes folder including images, style sheets etc resides outside my application ie inside my master page project.When i refer the theme to it i am receiving an error stating its not valid theme.Cant we refer the external themes and set it page.theme?Any idea on this?
I have a web application which can display the statistics chart (.png format) to the web page. The chars are generated automatically every day by another application.
If I move the charts (all are in the server) into my web application domain, I can display them without problem. If I reference those charts directly without moving to my web application domain, "the file can not be found" error occur. The following 2 statements, the first one work, the second one has problem.
<img src="/Charts/graph_Ewma/Ewma_Obvs_108_nObvs_12.png" alt="Chart is not available" /> <img src="C:/R_Info/Proj/graph/2011-02-06_2011-02-17/Ewma_Obvs_108_nObvs_12.png" alt="Chart is not available" />
My question is how can I display the external .png files directly from where they are without moving them to the web application domain?
I am have made a website which entertains its users(authenticated) to send sms. Website is available to users within my local network and outside (internet). I have designed two libraries, one for sending receiving sms and other one for processing those sms messages....But whenever page is refreshed, all the objects are initialized again blah blah resulting error for port 'Acess denied' For that I used object serialization etc. But I want to put my whole sms related work to separate process and use MSMQ between my website and sms process for communication. Please guide me that how can I run that separate sms process all the time and taking commands from website to send sms to whom etc?
Requirements:
1. SMS Process (background) should not have any interface but to communicate with using MSMQ only. 2. Website should be able to communicate with that SMS Process at any time using MSMQ, that is commands to send sms to whom, show received sms etc.
I am complete with all my website and sms engine work. All put all this in website but couldnt get reliablility. Please just guide me how and where to start for MSQM?
I have to duplicate some settings (like connection string) between a web.config file that a WCF host uses and a web.config file that a web client uses.
In the interest of not duplicating, can I have both the web.configs read from a separate xml file? The two web.configs can be entirely in different solutions/projects so I guess this is not possible, but wanted to get other's opinion.
PS: I do understand I can use a database to store all the config settings.