heloo
public partial class CreateUser : System.Web.UI.Page
{
TextBox username;
protected void Page_Load(object sender, EventArgs e)
{
Class1.OpenConn();
string[] rolesArray;
if(!(IsPostBack))
{
rolesArray = Roles.GetAllRoles();
rdButtonListRoles.DataSource = rol...
I have a form set up with 25 RichTextBox controls. I need to clear them all on a button click (get rid of all text inside them).
I hav tried accessing the controls programmatically but can't. I just need every RichTextBox on the form to clear.
Any code samples would be great, thank you.
UPDATE: I wrote this:
For Each oControl As ...
Hi, we need to generate 1099r IRS report from the application and we have decided to develop this with crystal reports. i am just curious to know that anyone did this crystal report and if so, could somebody pass your report templates.
http://docs.google.com/gview?a=v&q=cache:vzIPLclgiugJ:www.irs.gov/pub/irs-pdf/f1099r.pdf+1099r&am...
hi ,
When I'm running the report I'm getting that message above.
The Report Works fine when I press the "Run Report" Button but I want also to avoid
that annoying message that appears when the page loads.
I've tried to set the report viewer control to Enable = false;
and only after hitting the button to Enable = true;
but it didn't wor...
Hello,
user selects an image (using fileOpenDialog) then I need to run 3 algorithms sequentially (output of one algo becomes input of another) on this image. so, I'm using background worker for running these algorithms.
After each stage I want to see the result image. For this I created a ImageViewer class, which is just a simple form ...
Hi all,
I'm creating a button with a down arrow:
The arrow is actually a button within a button.
When the mouse is at the location I pointed out with a red dot it looks like this (which is good):
The inner button lights up okay. But when going slightly up it looks like the following picture (not good, the inner-button is not sel...
Hi,
Are there any proper xml binding(mapping) solutions (OXM) in .net? What I need is to generate model classes from arbitrary xml. As for now I can't find anything like JaXB 1/2, JiBX, Castor XML, XMLBeans in Java.
...
I have a simple lambda expression that goes something like this:
x=> x.Lists.Include(l => l.Title).Where(l=>l.Title != String.Empty)
Now, if I want to add one more where clause to the expression, say, "l.InternalName != String.Empty" then what would the expression be?
...
Today I was discussing with another developer about a limitation in a third party library, where we couldn't use spaces in a string. The reasoning was that the strings were used as keys in a .NET Hashtable, and that searching a .NET HashTable was significantly slower when the keys contained spaces.
Now since I'm too lazy to write a test...
I am currently developing an application where you can create "programs" with it without writing source code, just click&play if you like.
Now the question is how do I generate an executable program from my data model. There are many possibilities but I am not sure which one is the best for me. I need to generate assemblies with classes...
In my C# code I'm trying to fetch an array of structures from a legacy C++ DLL (the code I cannot change).
In that C++ code, the structure is defined like this:
struct MyStruct
{
char* id;
char* description;
};
The method that I'm calling (get_my_structures) returns a pointer to an array of MyStruct structures:
MyStruct* get...
how to store the data(articles,news etc) in to the nntp news server using c#.
...
By default when I run my project, it loads form1, but I want to change it such that when it loads the Project it opens form2 instead. How could I accomplish this?
...
There is a MySQL database located on my remote Linux server. I have written a .NET Windows application to export data to this MySQL database. I want to know whether there will be any compatibility issues regarding .NET / Linux?
...
I've been trying to make a user control that suport two languages (using localization) and in the default language I have a control that his visible property is False and in the other language I change it to True but still in run time I couldnt see it in both languages.
What should I do?
The visible propery of controls suports localizati...
I'm trying to send a complex HTTP POST request to a web service. The web service was created using VS2008, in which you can set VS to create HTTP POST and GET interfaces alongside the SOAP one.
Now the request is asking for both string parameters (username, file description, etc.) and the file itself, represented as Base64Binary.
When ...
I'm trying to perform some basic AD User managment tasks in C# using .Net 3.5
I've got a System.DirectoryServices.AccountManagement.UserPrincipal object that contains the user details.
I can call user.ExpirePasswordNow() and the user will be forced to changed their password at next login (and the "Active Directory Users and Computers" ...
I there any possibility to access specific printer option(stapling) from .Net.
...
While my program is running it receives messages with Id's and data in one message.
I want to make a new List for every Id where I can store the data from that Id.
The problem is that I don't know how many Id's I wil receive until my program is running. The only thing I know is that it's a lot. So I don't know if it is possible or how I...
In my application, I use some dll, let's say library.dll, version 1.0
In my webservice, I also use library.dll, but version 2.0
When I do an update of the webreference, the classes inside of the dll are also generated in the webreference.
And this gives troubles because in my application, the classes that are defined in the dll now are...