What i am doing is a new image uploader, i want to put the input file in the iframe and show the uploaded images in the parent page.
So how can i access the parent elements from the inner iframe?
or if some one have an example, that will be nice as well.
...
I'm trying to test a .Net 2.0 Web Service I created in C#. One of our servers is on windows 2000 and can currently only support .Net 2.0 . I can test it local to my machine and it works fine but when I move it to the target server for production it produces an error.
I want it to use Windows authentication, and have it defined as such i...
I have a class in my application that translates path tokens into fully qualified paths. For example: it can take a string like "%MYAPPDATA%" and return C:\Users\user.DOMAIN\AppData\Raoming\MyApp.
Alternatively, the class has an overload to the function that can take an enum instead of a string. For example: it can take the enum App...
Hello everyone,
If I use instrumentation model as described here to profile .Net application performance, it means the profile tool will change the executable code of the to be profiled executable to insert performance measure code? So my original executable code is modified?
http://msdn.microsoft.com/en-us/library/ms242753(VS.80).aspx...
I have this following data source binding:
MembershipProvider provider = new MembershipProvider();
UserUpdateLogs userUpdateLogs = provider.GetUserUpdateLogs(username);
dgUserUpdateLog.DataSource = userUpdateLogs.Logs;
dgUserUpdateLog.DataBind();
Logs is a collection of UserUpdateLogEntry. This class owns the UserData Property, and U...
What is the recommended strategy for in code to splice a set of MS Word documents together into one?
Cheers
Nik
...
I would like to provide a deafult implementation for an event generated by an instance of “Authenticator” (hereafter “objAuthenticator”).
Is this an acceptable practice to provide such method that registers for handling objAuthenticator’s own event to provide a deafult implementation?
And also, if it is an acceptable pratice, I have tw...
Hi I am kind of new to XML and .NET. I was wondering how I can parse the following file. I want to be able to get the XmlNode based on an ID I will provide. Example:
<Data>
<Question id="1">
<Answer>ddd</Answer>
</Question>
</Data>
I want to somehow do this:
XmlDocument myDoc = new XmlDocument();
XmlElement myElem = myDoc.GetEleme...
I maintain an application that has a .aspx page that loads on image from the database and uses Response.BinaryWrite() to write it back to the client. This worked perfectly not long ago. Two things have changed, we upgraded the application to .NET 3.5 and they upgraded all the computers at work to IE7.
Everything works fine on Firefox...
I'm just getting started with MSTest (or at least the VS 2008 testing tools, is there a difference?)
I'm wanting to test code that uses a session object. Obviously I don't have an HttpContext and I can't simply create one, so the code fails with a NullReferenceException.
Is this code simply un-testable?
...
Note that I'm talking about the client DNS resolver cache. This message is not concerned with the Windows DNS Server.
I have a C# program that does a lot of DNS resolutions. Because the HTTPWebRequest component won't let me change the Host header, I can't create my own internal DNS cache. So I have to depend on the Windows DNS cache,...
I know the following is not possible because it has to be an int
enum GroupTypes
{
TheGroup = "OEM",
TheOtherGroup = "CMB"
}
From my database I get a field with incomprehensive codes (the OEM and CMB's). I would want to make this field into an enum or something else understandable. Because the target is readability the solutio...
While porting a webapp from IIS/asp.net to HttpListener something struck me as rather strange.
While both have a concept of Context, Request and Response, the HttpListener variants share no common interface with the IIS/asp.net variants, despite the fact that the interfaces are almost identical.
In order to work around this, I have cre...
I want to replace all non-alpha characters in a string with a plus '+' sign, but making sure that a group of more than one non-alpha chars is only replaced by one plus sign.
I had thought the following might work but apparently not:
System.Text.RegularExpressions.Regex.Replace(name, @"[^\w]*?", "+")
...
Hi, I recently started a new development project in .net with an oracle db. I never used oracle before, and I wondered if there is a sqlprofiler like tool for oracle as well?
...
I am interested on how to make a regular HttpCookie object into a cookie that expires at the end of a session. I am not interested in someone showing me HttpContext.Session. How does a session cookie look in the response headers compared to a normal cookie? How can I modify a HttpCookie to expire at the end of a session? Thanks!
...
Hi,
In the company I work for we have a desktop application developed in .NET that we like to open up some parts for other software developers.
I see it like some kind of public methods that other software can access. Is there any standard approach, best practices or other experience of this?
I guess you could do this with Win32 calls...
I have a workflow that has a public "State" property that returns a custom class storing data about the workflow (it changes during the execution of the workflow).
What is the best pattern/practice to get the value of that property while in the code of the workflow host (ASP.NET app in this case) at any point?
I looked into the CallExt...
Was C# compiler written in C++?
...
I'm building a simple udp lan chat application in vb.net and I'm wondering how I should split my packets. Each sent packet should have like an id, a username and ip address from where it's coming and maybe also a command part for like join or leave to update my userlist and a text message. I'd like to know what is the easiest way to put...