How to get LeftOf and RightOf funtions to work [on hold]
up vote
-2
down vote
favorite
When trying to get path not any of the parameters of a url left of and right of functions wont work.
This is what i am trying to use
string path = request.RawUrl.LeftOf("?");
Edit: Sorry I am new here um I am basically try to use leftof and rightof but i dont think the methond is in the references i am using so i wanted to ask what reference i need to make those work
here are the usings
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Text.RegularExpressions;
using Microsoft.VisualBasic;
c# http webserver
put on hold as unclear what you're asking by Dour High Arch, Bob Kaufman, MickyD, BJ Myers, Unheilig Nov 5 at 6:07
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-2
down vote
favorite
When trying to get path not any of the parameters of a url left of and right of functions wont work.
This is what i am trying to use
string path = request.RawUrl.LeftOf("?");
Edit: Sorry I am new here um I am basically try to use leftof and rightof but i dont think the methond is in the references i am using so i wanted to ask what reference i need to make those work
here are the usings
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Text.RegularExpressions;
using Microsoft.VisualBasic;
c# http webserver
put on hold as unclear what you're asking by Dour High Arch, Bob Kaufman, MickyD, BJ Myers, Unheilig Nov 5 at 6:07
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Can you clarify "won't work"? What are you getting? What are you expecting? What doesrequest.RawUrl
contain?
– Bob Kaufman
Nov 5 at 2:27
2
Also,LeftOf
appears to be a third-party extension method. Is this theLeftOf
you're using?
– Bob Kaufman
Nov 5 at 2:29
It would be awesome if you could provide a Minimal, Complete, and Verifiable example. Be sure to include theusing
lines at the top of the file.
– mjwills
Nov 5 at 2:49
@BobKaufman yes that is the leftof and rightof how do i get it in my visual studi project
– Agent Magma
Nov 5 at 20:57
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
When trying to get path not any of the parameters of a url left of and right of functions wont work.
This is what i am trying to use
string path = request.RawUrl.LeftOf("?");
Edit: Sorry I am new here um I am basically try to use leftof and rightof but i dont think the methond is in the references i am using so i wanted to ask what reference i need to make those work
here are the usings
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Text.RegularExpressions;
using Microsoft.VisualBasic;
c# http webserver
When trying to get path not any of the parameters of a url left of and right of functions wont work.
This is what i am trying to use
string path = request.RawUrl.LeftOf("?");
Edit: Sorry I am new here um I am basically try to use leftof and rightof but i dont think the methond is in the references i am using so i wanted to ask what reference i need to make those work
here are the usings
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Text.RegularExpressions;
using Microsoft.VisualBasic;
c# http webserver
c# http webserver
edited Nov 5 at 20:49
asked Nov 5 at 2:18
Agent Magma
12
12
put on hold as unclear what you're asking by Dour High Arch, Bob Kaufman, MickyD, BJ Myers, Unheilig Nov 5 at 6:07
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as unclear what you're asking by Dour High Arch, Bob Kaufman, MickyD, BJ Myers, Unheilig Nov 5 at 6:07
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Can you clarify "won't work"? What are you getting? What are you expecting? What doesrequest.RawUrl
contain?
– Bob Kaufman
Nov 5 at 2:27
2
Also,LeftOf
appears to be a third-party extension method. Is this theLeftOf
you're using?
– Bob Kaufman
Nov 5 at 2:29
It would be awesome if you could provide a Minimal, Complete, and Verifiable example. Be sure to include theusing
lines at the top of the file.
– mjwills
Nov 5 at 2:49
@BobKaufman yes that is the leftof and rightof how do i get it in my visual studi project
– Agent Magma
Nov 5 at 20:57
add a comment |
Can you clarify "won't work"? What are you getting? What are you expecting? What doesrequest.RawUrl
contain?
– Bob Kaufman
Nov 5 at 2:27
2
Also,LeftOf
appears to be a third-party extension method. Is this theLeftOf
you're using?
– Bob Kaufman
Nov 5 at 2:29
It would be awesome if you could provide a Minimal, Complete, and Verifiable example. Be sure to include theusing
lines at the top of the file.
– mjwills
Nov 5 at 2:49
@BobKaufman yes that is the leftof and rightof how do i get it in my visual studi project
– Agent Magma
Nov 5 at 20:57
Can you clarify "won't work"? What are you getting? What are you expecting? What does
request.RawUrl
contain?– Bob Kaufman
Nov 5 at 2:27
Can you clarify "won't work"? What are you getting? What are you expecting? What does
request.RawUrl
contain?– Bob Kaufman
Nov 5 at 2:27
2
2
Also,
LeftOf
appears to be a third-party extension method. Is this the LeftOf
you're using?– Bob Kaufman
Nov 5 at 2:29
Also,
LeftOf
appears to be a third-party extension method. Is this the LeftOf
you're using?– Bob Kaufman
Nov 5 at 2:29
It would be awesome if you could provide a Minimal, Complete, and Verifiable example. Be sure to include the
using
lines at the top of the file.– mjwills
Nov 5 at 2:49
It would be awesome if you could provide a Minimal, Complete, and Verifiable example. Be sure to include the
using
lines at the top of the file.– mjwills
Nov 5 at 2:49
@BobKaufman yes that is the leftof and rightof how do i get it in my visual studi project
– Agent Magma
Nov 5 at 20:57
@BobKaufman yes that is the leftof and rightof how do i get it in my visual studi project
– Agent Magma
Nov 5 at 20:57
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Can you clarify "won't work"? What are you getting? What are you expecting? What does
request.RawUrl
contain?– Bob Kaufman
Nov 5 at 2:27
2
Also,
LeftOf
appears to be a third-party extension method. Is this theLeftOf
you're using?– Bob Kaufman
Nov 5 at 2:29
It would be awesome if you could provide a Minimal, Complete, and Verifiable example. Be sure to include the
using
lines at the top of the file.– mjwills
Nov 5 at 2:49
@BobKaufman yes that is the leftof and rightof how do i get it in my visual studi project
– Agent Magma
Nov 5 at 20:57