Modify A Web Application When The Solution File Is Not Present?
Nov 5, 2010
I have been asked to modify an ASP.NET 3.5 web application. The solution file does not appear to be present on the web server, but there is a DLL. Is it possible to modify the solution by "reverse engineering" the DLL?
I have written the below code which will open the .pdf file from the silverligt path.as below:
Code: Uri uri = new Uri(HtmlPage.Document.DocumentUri, "/ClientBin/10c.pdf"); string path = uri.AbsoluteUri.ToString(); HtmlPage.Window.Eval("window.open('" + path + "')"); //HtmlPage.Window.Eval("document.location.href='" + path + "';");
I want to open the .pdf file kept in the root directory of the application, (note - do not hard code)ex: i want to open the .pdf file kept in the below location: C:WebsSLLoadHelp.
I'm trying to migrate an old asp.net 1.1 application to target the new .net 4.0 framework. There are good guides available on this [URL]. However, all approaches start with the assumption that the 1.1 project contains a solution file which one has to open using VS 2010 and go through the conversion wizard.
In my case, the project does not have any solution file, giving me a sort of chicken and egg issue.
Is there a way to add a 1.1 .net soution file with or without VS 2010? Using command line tools? What is so special about a solution file anyway?
my requirement is : am having a excel sheet with some values listed i want to pass each value present in any(specified) column to a text box present on a remote page (a site other than mine) as a input and capture the result displayed on the page and then store the input and reuslt side by side in db this should repeat till the end of the input values in the excel sheet.
I would like to find a way to read a txt file (in my case delimited by €). I need to change the order of the columns and also add and remove some columns. My output file should be a txt file delmited by ;.
I tried Jet.OLEDB to read the file and put it into a datatable and then used a stringBuilder and streamwriter to get an output file in .txt format. However. This does not me since IŽ, reading the txt file from start to end and my output will be the same. It does not seem like I can have a custom sql statement when reading the file. The only query that works is
Dim da As New System.Data.OleDb.OleDbDataAdapter("Select * from 1.txt", TextConn)
I have a Problem with an very old ASP.NET 1.1 application. I cannot open (load) it in Visual Studio 2003 (on a Win 2003 server) any more. I get an error message,that the component for the communication with the "Front Page - Server Extensions" cannot be found (I use a german VS 2003, so I have not the exact English message). The extensions are installed. That can be the reason for that respectively how can I solve this problem.
Another Question: Is there a possibility to open an ASP.NET 1.1 application in VS 2010? Tthe upgrade wizard tries to convert it, but the conversion results in errors.
by looking at using the XmlDocument and creating elements and attributes and then inserting them into the document. Pretty soon this looked like a massive amount of work for all the elements I have to add.What are the repercussions of treating the config file as one big long text string and doing a replace at certain points to add my entries. Something like this...
private void InsertXMLElement() { StringBuilder webConfig = new StringBuilder(); // get the file into a stringbuilder for manipulation using (var sr = new StreamReader("C:web.config")) { webConfig.Append(sr.ReadToEnd());
My ISP recently has migrated my app to a new platform. The app has now to be parked in a root subfolder, say site1, rather than at the root.
The main page can still be accessed via [URL] is now located at /site1/default.aspx. Subfolder pages however cannot be accessed correctly anymore since the url includes now subfolder name "site1" ie
[URL]
instead of
[URL]
This of course breaks page referencing.
Despite multiple requests, I have not yet obtained an answer so far. Question: Is there a simple way to strip away string "site1" from the url, preferably at the web.config level? I know this can be done programmatically at the page level, to clean up page references (>30 pages). In addition, this could entail further compatibilty problems between the deployment version and the local development site.
Is it possible to have visitors to my website hear and see audio/video "mpg" files? I could not find any controls that output audio or video. Otherwise, is linking to u-tube my only other option?
I have created one windows form application and I want to get file path which is present in debug folder,How to get that.from the application i am calling another Windows form aplication by exiting first aplication using Application.exit.And in second aplication i want to get the file path present in debug folder of that aplication.
I am doing some research on themes in asp.net. (Just Learning) is this a practical use of my time? Should I just use css files and if someone wants to modify anything let them use the css to do it? Are themes a waste of my time? I really want to create my app but give the end user the ability to customize the look and feel without jumping through hoops. Can someone push me in the right direction with pros, cons etc
We have been building ASP.Net websites for many years. During this time we gathered a lot of knowledge of ASP.Net. We know what to use, a what not. One problem is still, persistently, bugging us. I hope to solve this for once and for all.
We have a fairly large solution with lots of aspx-files. All aspx-files reside in one Web Application Project. This single big WAP needs to be split in multiple smaller projects.
There are a number of ways to accomplish this, but I am still unsure what the best way would be. We use ASP.Net 4.0 and Visual Studio 2010 Premium.
This is our current work-around (which we do not like)
I'm trying to create a .NET solution and add class libraries to it. First - in VS2008 I go to File > New > Project > Other Project Types > Visual Studio Solutions > Blank Solution. Then - after VS2008 creates the blank solution I right click on the solution and select Add > New Project > Visual C# > Class Library. However, when I add the Class Library to the solution, the solution icon disappears from Solution Explorer (although the solution name is still in the VS2008 title bar). Why does the solution icon disappear from the Solution Explorer when I attempt to do this?
I have a document that I have included in my VS 2010 solution. It is in a folder called "MyFolder" the file itself is called "MyDoc.docx". I've tried the following ways to open the file but none work:
Stream s = File.OpenRead("/MyFolder/MyDoc.docx"); and Stream s = File.OpenRead("MyFolder/MyDoc.docx"); and Stream s = File.OpenRead("~/MyFolder/MyDoc.docx");
I have created my first Custom asp.net server control.But i think such projects probably contains AssemblyInfo file.But i am missing that. When i created project that file was not added.
I am working on VS 2008 Team System Edition,with VB.NET language.How to get that file ?
I have been trying to overcome the well know issue of importing a csv file, nut ignoring the comma's within the quotes. Not every field has quotes, and not every record has comma's withing the quotes. After spending ages looking at various samples and arguments, Im still baffled. I have below a qiuck sample of a file ( we can not change the file at all ) , what i want to get out of it, and the the procedure i am currently working with. Can anyone show and explain how to modify my sub to get the desired results
"Smith, John", "125 My Street ","MY1 25Q", 135.00 "Jones,Fred","Flat 1, 139 Hight Street", "UB8 8UU",798.00
(0) Smith,John (1) 125 My Street (2) MY1 25Q (3) 135.00 (0) Jones,Fred (1) Flat 1, 139 Hight Street (2) UB8 8UU (3) 798.00
The production setup is different though. The application exists as its own web site in production, so I don't need to include the reference to the virtual directory. The problem with this is that I need to modify every file that contains a javascript reference so it looks like the following: