Hi all,
I have the following situation:
I have class User with the follwing properies :
public class User
{
string user name ;
List <Contact> contacts ;
List <BookMark> book marks;
.
.
.
}
I have the same class in a different namespace , with some different properties . BWT , it's the same situation of it's classes (Contact) an...
"My search returns a highlighted fragment from a field. I want to know that in that field of particular searched document, where does that fragment starts and ends ?"
for instance.
consider i am searching "highlighted fragment" in above lines (consider the above para as single document).
I am setting my fragmenter as :
SimpleFragm...
If I override the System.Web.UI.Page constructor, as shown, when does DoSomething() get called in terms of the page lifecycle? I can't seem to find this documented anywhere.
namespace NameSpace1
{
public partial class MyClass : System.Web.UI.Page
{
public MyClass()
{
DoSomething();
}
...
I have a semicolon-separated list of values, for example:
strins s = "param1=true;param2=4;param3=2.0f;param4=sometext;";
I need a functions:
public bool ExtractBool(string parameterName, string @params);
public int ExtractInt(string parameterName, string @params);
public float ExtractFloat(string parameterName, string @params);
publ...
There's a bit of code which writes data to a MemoryStream object directly into it's data buffer by calling GetBuffer(). It also uses and updates the Position and SetLength() properties appropriately.
This code works properly 99.9999% of the time. Literally. Only every so many 100,000's of iterations it will barf. The specific problem i...
Since the launch of .net 4.0 the buzz word has been cloud computing. But very little is said and discussed about it in perspective of .net technologies. Further is it really the worth to invest or do we have sufficient current technologies that can handle what cloud computing offers ?
Can you please describe it and an example would be q...
I'm using a content management system whose admin interface uses MVC 1.0. I would like to build the public parts of the site using MVC 2.
If I just reference System.Web.Mvc version 2 in my project the admin mode doesn't work as the reference to System.Web.Mvc.ViewPage created by the views in the admin interface is ambiguous:
The type...
In C#4.0, we have dynamic type, but how to invoke static method of dynamic type object?
Below code will generate exception at run time. The dynamic object is from C# class, but it could be object from other languages through DLR. The point is not how to invoke static method, but how to invoke static method of dynamic object which could ...
I need to offer the ability to to view and print reports from a .NET app. But I need to be able to modify the report templates without having to re-compile the app. I see that there are 2 options:
use a reporting component such as Microsoft.Reporting
or Crystal Reports which uses a
.rpt (or similar) file that
can be modified ...
Hello,
I've been thinking for a while on what to store at the Project Settings, objects or numeric/string representations of those objects to set a rule and avoid thinking on this at the future so I want to take the best approach.
On one side storing object representations grants you that what is stored is valid and saves you from doin...
I have .Net Framework v4.0.30128 installed on my server. Is it the latest one.
If not should I install the latest version?
...
I am new to asp.net, I want to define #Region in my .cs page file. Is it possible to that in web pages. I know it can be done in winforms.
...
Hey,
We have a .NET assembly (Aspose.Words actually) and we want clients to use it from COM clients without much hassle.
So we ship a .TLB with the assembly so the client can use it from languages such as C++ or Delphi and don't bother extracting .TLB themselves.
We also ship an .IDL with the assembly so the clients can look into it i...
Hello,
I'm a .Net developer and I heard that since release 12 PowerBuilder enhanced integration with .Net. I would like to know what are the advantages of using Sybase PowerBuilder over normal WPF programming techniques and so on.
When is it recommended to use Sybase PowerBuilder ?
Thanks for the help
...
Hi,
I have a C# application which request .net 2 on client system. I like to replace the error message box in case if .net2 is not detected with ruuning an executable program which I have a written how do not request .net2.
Edited a solution can be found at url
...
C#: How do you manage filling form controls with Master data ?
I mean do you create for every base tables (which you have created in a Database so far) a class and then calling method classes from UI ? or what?
...
I've got a VB.net application. Currently the release version of the application is produced without a PDB file. This gives me error logs lacking useful details such as line numbers.
I'm looking at including the PDB files with future builds but i'd like to know what the advantages and disadvantages of this are (performance wise, size wise...
I've got a bit of XML I want to display on my ASP.NET website as-is (for debugging purposes), and it would be nice if it was colored. This should be easy to achieve with the right kind of XmlWriter, but I don't have the time to make one myself. Is there an existing (free) component that can do this?
...
Hi,
with the ref of page:
http://stackoverflow.com/questions/2469594/how-to-access-a-php-web-service-from-asp-net/2825735#2825735
I got following code; I cudnot find "requestXmlString" in whole code, where to declare and what is in this variable? Its urgent please.
private string MakeWebServiceCall(string methodName, string requestXm...
I'm trying to write a simple method that receives a file and runs it using NUnit.
The code I managed to build using NUnit's source does not work:
if(openFileDialog1.ShowDialog() != DialogResult.OK)
{
return;
}
var builder = new TestSuiteBuilder();
var testPackage = new TestPackage(openFileDialog1.FileName);
var directoryName = Path...