0
votes
3answers
44 views
Smiley replace in JavaScript with regex
I just came across the following post Replace emoticon with word in tweet using regex c# where smileys are parsed and replaced with some custom text:
static string ReplaceSmile(Match m) {
string ...
0
votes
1answer
368 views
EventSource's response has a MIME type (“text/html”) that is not “text/event-stream”
When I try to hook up the EventSource to my controller it keeps saying:
EventSource's response has a MIME type ("text/html") that is not
"text/event-stream". Aborting the connection.
I made ...
-1
votes
1answer
23 views
How to set(change) navigator (appname, user agent etc.) in webbrowser control
I'm trying to figure out how to change the info returned by the JavaScript navigator object such as AppName. I can't find any info on where JS actually gets this info from so I have no idea how to ...
0
votes
3answers
48 views
Decode Url with special & or + characters in query parameters value
I have met this difficulty while decoding a Base64 encoded URL with parameters
eg: http://www.example.com/Movements.aspx?fno=hello&vol=Bits & Pieces
My expected results should be:
fno = ...
0
votes
1answer
34 views
Run RegisterStartupScript multiple times in c#
Good day Everyone,
The following is part of my code
start code
protected void Button1_Click(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "temp", ...
0
votes
0answers
87 views
Mixing javascript and C#
I have @model IEnumerable<HotelWithRating> - some hotels.
At the view I have 5 checkboxes - stars of the hotel.
<table>
<tr>
<td>1</td>
...
25
votes
7answers
14k views
Does C# have an equivalent to JavaScript's encodeURIComponent()?
In JavaScript:
encodeURIComponent("©√") == "%C2%A9%E2%88%9A"
Is there an equivalent for C# applications? For escaping HTML characters I used:
txtOut.Text = Regex.Replace(txtIn.Text, ...
0
votes
0answers
10 views
c# mvc4 Print to a web browser during long running action
I have a long running action that runs multiple steps. I would like to output intermediate text to the browser in order to know where the process is, for example
public ActionResult Index()
{
...
0
votes
3answers
400 views
How to close the window after response?
I am using ASP.NET and C#. I am generating pdf and sending that on the pageload using
response.TransmitFile(file);
So after this I need to close this window.I try to write the dynamic script for ...
2
votes
1answer
70 views
How to close/remove menu item or tab when right click?
I'm creating tab using multiview and what I want to do is to close one of the menu tabs when I right click on it.
These are part of the aspx and code behind:
ASPX Page:
<asp:Menu
id="Menu1"
...
1
vote
0answers
60 views
+50
Soap Request in C#
Ive got a soap request ive written in http & javascript but i cannot seem to convert it into C#
Original: (Works)
<button onclick="doStuff()" type="submit">Send</button>
...
0
votes
0answers
24 views
C# web form stuffing and XSS
I'm using a couple of different technologies for single signon. However, there are a couple of other sites that do not support SaML or oAuth but I'd like to still log my users in automatically. In ...
-3
votes
1answer
32 views
Facebook logout button asp.net website [closed]
I integrated facebook connect to my asp.net website using the code from facebook for developers and I successfully logged in to my website. What I want to do is to have logout button next to the ...
0
votes
1answer
37 views
jquery - 6 version jump broke backwards compatibility
Let me start out by saying that jquery is quite simply amazing. I have found it to be quite dependable and it certainly has made my life easier.
on to my issue..
I have a website that was using ...
0
votes
1answer
24 views
Export FASTREPORT print as PDF
Is there anyone knows how to get PDF prints from "fast report"? (.NET)
report1.Export(frxPDFExport1);
that line doesn't work, ?