I want to hide the guts of my URL programmatically.
I know I can use:
Server.Transfer("url",boolean)
This is not what I want in this case. I would like to be able to manipulate the URL after I get the variables I need.
How would I do this in ASP.NET?
Edit:
My URL:
URL.aspx?st=S&scannum=481854
I want to change it when the page...
I have a UTF-8 encoding string I am getting from reading a PDF, and I am trying to strip out some characters that represent spaces but are not encoded as the standard 0x20 space. My problem is that the characters are represented by 3-bytes of UTF-8 and I can't figure out how to get that into a string or character so I can do a replace. T...
I have an issue with EntityFramework and "set transaction isolation level read uncommitted"
We have changed EF to call a base class (by not using the edmx , this is possible)
In the base class we have overridden the createQuery method to include a call to a SSDL function
<Function Name="Uncommitted" IsComposable="false">
<CommandTe...
I am writing a service that will run on a machine to push and pull files from one location to another. I want to create an installer that will allow the user to name the service during setup (and description later.) I found this post (http://stackoverflow.com/questions/1070885/specify-windows-service-name-on-install-with-setup-project)...
How to delete a specific value in a specific cookie in ASP.NET?
For example: I have a Cookie named 'MyCookie' and it contains the values 'MyCookieValueOne', 'MyCookieValueTwo', 'MyCookieValueThree'.
Now I need to delete the value 'MyCookieValueTwo'.
What should I do?
Can we use any of the following properties to achieve this?
Reques...
Hi,
I'im writing a program that works with 2 forms, the main form and the form where the configuration is made, so when the user clicks toolstripmenu->Preferences the Preferences form is showned and I want it to make the user only capable of having one Preferences form at a time.
When I use:
Prefs preferencias = new Prefs;
pr...
The problem is that I have an Array of Byte with 200 Indexes and just want to check that is the Fourth bit of MyArray[75] is Zero(0) or One(1).
byte[] MyArray; //with 200 elements
//check the fourth BIT of MyArray[75]
...
I have been working on converting a assembly of mine to be usable through Delphi. I was able to convert the assembly to a PAS file and call the method in my delphi application. But i ran into a problem where my PAS file is asking for System_Windows_Forms_TLB which i was able to find and add. But then that file uses Accessibility_TLB a...
Is there a way to dynamically determine (from .NET code or TSQL) the columns a stored procedure will return? I would like to dynamically generate wrapper functions in .NET for my stored procedures. It is easy to get proc names/parameters/etc. but I would also like to know what columns to expect when a procedure returns data (without exec...
What is the best way to do an internet two player card game? Currently I was intending to store the game state in the database using ajax to check on when the state of the game changes. Is there a better way to do go about this where the clients communicate with each other and not through a mediary?
...
A colleague of mine came to me with a problem on one of his projects. Unable to help him, due to my lack of experience with screen readers and the technology, I turn to you, the proud and mighty mass of SO users.
Summary for the TLDR-folks:
Our Grids in UpdatePanels aren't working in screen-readers. Might be something with the AJAX ...
I'm having some issues with grabbing a list of type "RhsTruck" through Linq and getting them to display.
RhsTruck just has properites Make, Model, Serial etc...
RhsCustomer has properties CustomerName, CustomerAddress, etc...
I keep getting the error "Sequence contains more than one element". Any ideas? Am I approaching this the wrong...
I'm looking for some guidance on creating a WPF UserControl.
My objective is to create an indeterminent progress bar, that slides an image back and forth. I'd like to be able to dock the left and right edges of this user control to the sides of the Window so if the user resizes the window, the width of the progress bar is also increased...
I have a generic class definition similar to this:
public sealed class MyClass<TProperty,TOwner>
{
...
}
Now I'd like any instances of MyClass<TProperty,TOwner> regardless of the types of TProperty or TOwner to share a Hashtable. I thought of creating an internal MyClassBase with a protected internal static field of type Hashtable...
I'm not sure how to make the question clearer but this is bascially the problem:
I have a class that is dervived from another one of my classes.
The base class has an overridden Tostring function (returns 2 strings separated by a colon).
The problem is that my derived class can have an array of strings or just the one string so when I ...
I have a class that is implementing the ISerializable interface for custom serialization. This works great for the properties in this class but the class is a derived class. The problem i'm running into is that the base class properties aren't serialized for me. The base class has the serializable attribue but doesnt implement ISerial...
class NewList<T> : List<T>
Why can't I access it's internals like T[] _items, etc?
Why aren't they protected, but private?
Should I use composition for this?
...
If I have the following XML segment:
<Times>
<Time>1/1/1900 12:00 AM</Time>
<Time>1/1/1900 6:00 AM</Time>
</Times>
What should the corresponding property look like that, when deserialization occurs, accepts the above XML into a list of DateTime objects?
This works to deserialize the XML segment to a list of string objects:
[XmlA...
Is there a good parser generator (think lex/yacc or antlr) for .NET? Any that have a license that would not scare lawyers? Lot’s of LGPL but I am working on embedded components and some organizations are not comfortable with me taking an LGPL dependency.
I've heard that Oslo may provide this functionality but I'm not sure if it's a bui...
Why would anybody use the "standard" random number generator from System.Random at all instead of always using the cryptographically secure random number generator from System.Security.Cryptography.RandomNumberGenerator (or its subclasses because RandomNumberGenerator is abstract)?
Nate Lawson tells us in his Google Tech Talk presentati...