how read and write to stylesheet in asp.net mvc? [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to let my users edit css files.
so I need to load (Read) one of my stylesheets to a textarea and then save (write) it into same stylesheet,
how i can do it?

It's just a file containing plain text. Simply load its contents and then save it back.. Simple File methods should be ok, maybe implement some kind of a text highlighter to allow nicer editing.

Related

Is there a way to modify the html of an incoming website using c#? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
Improve this question
I am trying to create a piece of software than can manage your computer and clean some things up, and one of the things I am trying to incorporate is adblocking.
I have looked online multiple times for something like this, but haven't found anything. The most I amounted to is the webbrowser class.
If someone could help me discern how to change an html file using the webbrowser class, that would be greatly appreciated.

Uploading Base64 String Image And Inserting The Path To DB C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 days ago.
Improve this question
I have Base64 String as parameter and I want to upload that image somehow and I need a link something like this (https://www.developer.com/wp-content/uploads/2021/08/StackOverflow-Developer-Survey.png
) in the end. In that way I can insert it to db as string and can call it back when I need it. How can I do this, any ideas?
By the way, if there is any other way to upload it and having a path I can return in the end its also OK for me.

Trying to find the source of a <video> tag using C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am currently trying to get the source of a 'video' tag on a website using C#, I am using HtmlAgilityPack and have not yet found a way to make this possible, any help would be great!
The home page for HAP shows C# HTML Selectors Examples look at the SelectSingleNode(String) method and then use Attributes collection on the returned node to get the value for src.
https://dotnetfiddle.net/bsfYsg

Adding and deleting files from my playlist. (WPF) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have tried OpenFileDialog but I just can not do it right. What should be my C# code that would allow me to add and remove files from my playlist?
for your problem in wpf for open file dialog whatch thi link Open file dialog and select a file using WPF controls and C#
and for add and remove items by code watch this link http://www.c-sharpcorner.com/resources/643/how-to-add-and-remove-items-in-a-wpf-listbox.aspx

Generate HTML file in c# on click button [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
How can i create HTML file on submit button click in c#,I don't know any syntax about this ,Please suggest me How to create Html page in C#
You might want to take a look at some beginner tutorials:
http://www.w3schools.com/aspnet/
http://www.asp.net/web-forms/tutorials
Try to use Generic Handler in web application ( http://www.codeproject.com/Articles/353260/ASP-NET-Advanced-Generic-Handler-ASHX )...

Categories