hi,my webapplication has ben changed outputpath,but show error msg:"Could not load file or assembly" in runtime,why?
<addname="DirectRequestModule"type="Ext.Net.DirectRequestModule, Ext.Net"/> //Could not load file or assembly
<addname="WebSite.HttpModule"type="Framework.Common.HttpModule, Framework.Common"/> //Could not load file or assembly
Back End : SQL Server 2012
Front End : ASP.net 4.0
My question is can we save files to a specified folder from ASP.net in a specific folder (C:\Download).
Right now browser prompts the dialogue box that do you want to save or open and if user saves it saves that file to the user's download folder,So is there a way that it does not prompts/Show download dialogue box and will save file to desired folder
any suggestion ?
Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.
As with many people asking questions related to the web here on CP, also you ought to learn to differentiate where what happens! ASP.Net runs on the web server. That is normally not the machine where the user looks at your web pages in a browser - though many developers do both things on the same one computer. The "save file dialog" is opened by the browser on the client - that is not an ASP.Net function.
If a web page wants to write some files onto my hard disk without asking me for permission, I would not trust it: I'd think of malware. Yes, there are security holes in many browsers allowing for such bad things, and they ought to get fixed as soon as possible.
In my application i have to use singleton class.. and also enough single worker process. case is, when i start a application, it has created then working and if have any crash occurred, worker process created new one so it(singleton object) has been created again.. now i want to modify this single object getting entire( worker process).. my idea is
1) Can we create separate service for single instance application for processing. with service to iis communication via tcp using wcf.
2) Can we assign that object to httpContext for keeping object to entire application. if i used this, its applicable all webservice method (ajax callback).. please clarify
Any other idea?? please give proper idea for this concept..
I know that the title of this question i am putting here may be confusing, but i will explain what is about.
I have this web application in ASP.NET, where among all pages i have created already, i would like to have a page for each user when they log in, where in this page users will add , delete and sort their personal services(e.g., Facebook, Twitter), and have an overall overview of what services they have chosen.
This overview i want it to be like the New Tab overview in Google Chrome where we see the previous links we have visited, and we can also drag/move them, sort them or delete them.
I would like to do the same in my web application, in a content page, which for each user will be different since they will log in to their account. The services that each user will choose to include in his account will be stored in a custom table called Services in my database where the Membership provider is installed, and every time users log in to their account, the personal services they have chosen will be read form the database and presented in this content page in the form of New Tab in Google Chrome.
My question is how would you recommend that i start, or if you have any ideas about this drag thing how it can be done. I completely have no clue or any approach in my mind of how to go with this. Any ideas and suggestions are most welcomed
This is the last part that i have to finish for my web application to be completed.
We are a new web application development team, and we use the asp.net to develop our products.
We need to put a simple standards and instructions for our works as the following:
- The best controls to use in the web applications such as, DATAGRIDVIEW with features Support RTL Languages, Grouping, Filtering, Export To Excel and with best performance.
DATETIME PICKER, TEXTBOXES, TREEVIEW, DROPDOWNLIST, DROPDOWN LIST WITH MultiColumns.
- GUI Standards, such as using master page to make same style for the whole pages, use css or any other things to develop the best style.
- How to make my application supports many languages, RTL and LTR Languages.
- Security Standards for my web applications
- How to make my applications work over all browsers such as IE,Chrome, FireFox.
This is what we want to ask about to decide and develop our work instructions for the web applications.
Please help us to put our standards and instructions, and tell me if there are any links or templates we can use.
There is a project that I want to merge in my project. It has only one default page with several back end files such as .css, .js. Is there a way to add that solution or that page to be specific in a certain div of page of my project, like we do using JQuery? What kind of c# code is required for that?
Is there a way to add that solution or that page to be specific in a certain div of page of my project
Copy all resource files like CSS, JS and paste in your main project. Copy Default page and add it to main project - modify the references to JS/CSS/etc if needed based on the project hierarchy. If the relative hierarchy is still the same, no change would be needed.
What kind of c# code is required for that?
For resource reference to a page, there would be no CS code involved. If you have some specific code to project you might need to make it suitable as per main project.
This was working fine in windows 2000 server.
Now we are upgrading to windows 2003 server. In this it is not giving print.
Also I'm not getting any exception or any logs. Logs were created as everything working fine.
Also in 2003 server this is working from command prompt and
from console application also it is working, but when user logged in.
If no one is logged in again the print is not working.
To Master Page? Way to adding picture to master or Web Form, are same. If you want to add image via HTML, write this code: <img id="pic" runat="server" alt="" />
And to code behind add following code:
... pic.Src="path to the picture";
Of course, you can add image via asp:Image, but adding image by HTML is better solution, because ASP.NET server control add a some value to _VIEWSTATE, add prefix before id...
Adding image to normal webpage and masterpage are same. At times, you might face issue with image display because of the image relative path issue because of page hierarchies.
For such cases, you would need to make sure that the path is correct such that file is found and used.