For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
How to drag cities into dropdownlist (city) from selected dropdownlist (state) of respected state.
E.g. In dropdownlist selected state is Maharashtra, so drag all respected state cities into dropdownlist (city).
At this point I am very confused. I think of a Nuget package as development add-in. What I need is to create something like a button panel and insert in into the MVC application. Is there a simple example of this using a Nuget Package?
I am developing a backup and restore PowerShell database utility and need to install it into an existing MVC enterprise application. It was indicated to me that I can create a Nuget package to install this newly created backup and recover DB PowerShell utility. What I am looking for is an example of this type of package. Does anyone know of such an example?
I want to write a program for accounting problem in FIFO method. In FIFO accounting, the order of buys and sells are taken in a last-in-first-out manner as if they were stored in a queue.
For example, suppose you bought 100 shares of a particular stock in each of the months of January, February, and May, for prices of $10, $15, $3, respectively. And suppose you sold 100 shares in March when the price per share was $20. So you presently hold 200 shares of the stock. In calculating your gain or loss you wouldn't count those shares.
In FIFO accounting, our capital gain or loss would be calculated by using the March transaction as income. We would match it against the expense of the 100 shares you bought in January. Our total capital gain would be calculated as 100 X 20 - 100 X 10 = 1000. So you would have a gain of $1000.
Please provide me with an algorithm to solve this problem
I've a problem deploying a modified project based on ASP.NET in Visual Studio 2013.
I've one web page built on a ASP.NET project by a former engineer. It runs on a server with the *.dll file and other types of files (*.aspx, etc).
I have the source code of the project. I made a small change to the source code. It tests out fine on my local machine. However, when I build/publish the project the project doesn't output the *.dll file. It does output a bunch of other files including the *.aspx, *.aspx.cs, and *.sln files. But I need the new *.dll file to replace the old *.dll file on the server so that the web page can be updated.
I did some look-around online. A lot of people are saying that there are two types of ASP.NET projects: websites & web applications. And only web applications will output *.dll files. Websites don't use *.dll files.
If that is the case, that means my source code is a website project but the web page running on the server was built from a web application. But I know there is only one copy of the source code and the web page running on the server has to be generated from it.
Let me explain to you, the basic different of these types in the terms of frameworks. An ASP.NET web site is usually the ASP.NET Web Pages framework, that was compact and best for creating small web sites such as personal blogs or contact-me pages. Where as, web applications needed more of these things, URL routing, security and other stuff such as source management also, so there were other frameworks built (Web Forms is old, and ASP.NET has left it as of ASP.NET 5) and the framework ASP.NET MVC is mostly what people refer to.
Now, if you require those .dll files, consider uploading the entire package. Visual Studio 2013 doesn't prevent you from doing so. I recently published a new site of mine using Visual Studio 2013 to a server using their Web Deploy services. Visual Studio automatically does everything, plus if you want to replace the old .dll files. Do not do that manually. You may screw things up, I would recommend that you check "Remove files already present" so that Visual Studio can set up the stuff for you and then publish the app || website.
All of the ASP.NET code is generated as HTML page and content, these are only languages and syntax for building dynamic pages. Nothing else. What services are you using? Web Deploy or FTP or what? It depends on what service you use, as to publish the content also.
In all cases, you still get to upload the .dll files. You should, and frankly even in Web Pages framework (to what others refer as website) you need to publish the .dll files required, most aren't required because if they were it would have killed the purpose of compact. But if you have to add a library, you can add it, in the /bin/ folder.
So, finally, I will recommend that you try to publish the site as a new. Do back up your content before you remove the previous content from server.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
I have a TextArea, A submit button and a check box on a Razor view, i want to load some records from the database in to the textarea and then use the submit to send Mesages to the recods loaded.
The issue is that i dont know how to load the data using the check box.
This is my code so far:
public ActionResult Message(bool loadData)
List _mobile = new List();
what exactly is your question?
I look at your markup and code, but I can't tell if it works or not, and where it fails.
Why not just post code for the part that fails to work? and tell us what's not working.
I am new to MVC framework and trying to learn the tricks and I am stuck in one small issue.
Since I have multiple enumerators in the project I have two tables which store them.
One table stores the type of enumerator such as
The second table stores the values of the enumerator such as
Since I have to use multiple enumerators in my screen i am planning to write a user control or what they call as partial view. But I am not sure how to bind them to the model or how to write the partial view.
Code running on a website cannot access local files on the client. If it could, that would be a major security vulnerability.
To display a file on your website, the file will need to be available from a web URL (http://... or https://...). Due to cross-domain request limitations, that URL will need to be part of the same site. If it's on a different domain, you will need to enable CORS[^] on the domain which hosts the file.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Thanks for the reply. My PDF Files are dynamic. There is a WCF service which generates those files and send back the file paths. These files are stored on shared drives on local network. So having said that, do you think I cannot use PDF.js to View PDfs on my webpages?
Today I asked an interview question. Can you please anyone help me. Question is...
I am having 3 database connections. SQL, Oracle and DB2. In SQL i am going to update.
In Oracel I am going to insert.
In DB2 I am going to delete.
If anyone operation fails, all need to rollback. How to achieve this, either in .NET or DB side.
Hi. I have created an ASP.NET MVC 4 application and I published it on a ftp server. When I access the link, it shows me the files that are in the folder, not the index page, so I think something is missing from there. Can anybody tell me if I have to do something else after publishing the project? I just created a project and I uploaded to the server to see if it works.
I have created an ASP.NET MVC 4 application and I published it on a ftp server.
Are you sure? You actually publish your website through FTP services, you cannot publish it on FTP server. FTP is used to transfer the files.
When I access the link, it shows me the files that are in the folder, not the index page, so I think something is missing from there.
Indeed, that is what happens when you use donkey where you want a horse!
Anyways, as I have already told you FTP server is just used to share the files on the network, thus the name of the protocol (and the service) File Transfer Protocol[^]. The protocol which is used to host or share the web pages is HTTP (Hyper-text transfer protocol[^]). HTTP is used by hosting services (you should get a hosting company for a website, not for file transfering).
When you read the pages for an FTP, you will always get the files in a list. Such as directories and files are always present in a hierarchy. HTTP in opposite, returns the content of that page (index, or default; depends). They are separate protocols, used for separate needs!
I hope I made myself clear enough.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
While checking a multi-language implementation of a small site in MVC with a Windows10 client the results had me puzzeled.
Switching the prefered language around didn't result in any changes in the website when using Edge & IE, when using Chrome and Firefox everything worked fine.
When checking the Http Request Headers Accept-Language values I found that the language change was ignored by IE & Edge. Only when I changed the 'Fromat Settings' in "Control Panel-Language - Change date.. - Formats" did the Accept-Language Header change.