|
iam creating rdlc with chart in asp.net 4 web site
my rdlc dir items & total item sales in duration
if i dir for long duration i have problems that all items not dir because i group them with item name
so item name dir under each column
i think if the group axis is dir vertical it 'll solve my problem
but i don't know how to do that
or if there si any other solution to my problem
thanks
md_refay
|
|
|
|
|
What the heck is an "rdlc"?
|
|
|
|
|
A client report definition file.[^]
I've seen enough of these things to know I never want to get suckered into reporting. That said I always thought reporting the boil on the backside development, but without the satisfaction of being able to have it lanced.
|
|
|
|
|
Ive made two databases in SQL server. One contains some general information about user and the other contains some specific information. In both of them the common key is username.
How to merge these two databases in C#??
Ive searched on google but I am not getting any useful information regarding this...
Plz help...
|
|
|
|
|
Without more detail, it will be impossible to give a detailed reply. Maybe just replicate the tables of the details database in the users database and transfer the data across, keeping the common key intact between the two.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
Okie
I have two databases in SQL server. The first one(db1) contains information such as username, password, address, phone no etc and the other one(db2) contains information such as username, education, key skills, hobbies etc. The username is the common key between the two.
Ive made two pages in asp.net website for registration. First one has a form with fields username,password, address, phone no. The second one has a form with fields as education, key skills, hobbies. The code is in C#.In the code behind of second form, I want to compare that if the username from db1 is equal to username from db2, then fill in the details in the database(db2). How to accomplish this task ?
Thnks
|
|
|
|
|
What you're describing is a table, not a database. Do you have two databases each of which has one table? (If so, why ?) If so, you first need to decide which database is going to back onto your web app and move both tables into that one. The web app should not need to talk to two databases. Do the merge once, manually, and have your code look at only one database.
Any registration process for the same website should populate the same users table – that's what you're going to use to verify login attempts. That means that the second form either needs to run from an already verified login session (kind of like filling out extra profile information on a forum), or it needs to create a row in the main users table. If there is a one-to-one users:extra_information relationship then it is a matter of style whether to make those extra columns in the users table or a separate table with a foreign key relationship, but you must have a row in users, for sure.
|
|
|
|
|
Okie I get it!
Thnk u so much
|
|
|
|
|
This is really a DBA task and not a C# task. I think you'd be better off speaking with a DBA.
|
|
|
|
|
I've to write that code in C#. That's why I asked it in C# forum.
|
|
|
|
|
Are you simply looking to JOIN the tables in a query?
|
|
|
|
|
I guess ya to join the tables...I've to write a C# code for that.
|
|
|
|
|
Hi..,
I need to debug the Dll built in Debug mode.
Here i can launch the Debugger but how to give the Code path and Code because all what i has the Dll's...,
Could you please suggest some idea's..
Thanks
-
Biradar
|
|
|
|
|
Nyanoba wrote: Here i can launch the Debugger but how to give the Code path and Code because
all what i has the Dll's...,
Do you have the code base with which the dll was built?
You talk about Being HUMAN. I have it in my name
AnsHUMAN
|
|
|
|
|
|
Assuming you use Visual Studio you can right click your DLL-project and choose Properties. Under the "Debug" section you can choose an external program to be launched as a start action - a program that uses your DLL. Another simple way would be to just add for instance a Console project to your solution, add the DLL project to References and then start that program.
If you don't use Visual Studio, and your IDE doesn't support the first method described above, you could still use the second method for debugging. Good luck!
|
|
|
|
|
Yes, we can do that,
But my requirment is that i already had a framework and this is the dll which i want to load, So i want to debug the dll without having .cs file .
What i has is just an pdb and .dll file.
I am able to launch the VS Debugger then how to give thw code to debug, thats the problem ?
|
|
|
|
|
I don't get it, do you want to debug a dll without an executable?
//daniel
|
|
|
|
|
Hi !
I'm looking to write a Windows Shell Namespace Extension using .Net.
The Extension needs to support drag'drop and context menus would also be nice.
What I'm specifically looking for is links, books, and examples that are useful.
Thank in advance.
|
|
|
|
|
|
I am writing an in-house application at work which stores data in SQL Server 2008 Express. In the application's database I have a table which contains user accounts and each user is assigned to a role. A few of the role titles: Administrator, Supervisor, Lead and so on. Depending on the user's role, I need to enable/disable certain elements, hide/show certain elements, etc. What is the best method to use in this situation?
I have seen a few from Google results, such as adding the role-based controls to a list and toggling them as necessary. But is that the most efficient method? What do you think?
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
Do I really need to say, "It depends"? How many forms are you talking about, how many controls on each form, how many different roles, how often do you add new roles, how often do the requirements for existing roles change, do the end user administrators need to be in control of this themselves or is it OK for it to go back to the developers each time a change is required, does it matter if hidden fields leave ugly gaps on the form, or is the aesthetics of the thing important, can a user be in more than one role at the same time, and there are probably lots more considerations which will affect your decision.
|
|
|
|
|
The only form which will be affected is the main application form. It will not contain a ton of controls but it will contain some buttons, some menu items and some toolstrip items. There will be 4 or 5 roles which never change, there will be no need to add new roles and the requirements for each role will never change. Each user will only be part of one role at a time.
Hidden controls, unlike what I initially stated, will probably not be necessary aside from menu/toolstrip items. The only items I need to hide will be menu and toolstrip items, in which case the layout will change accordingly to place items in their new position.
I implemented this in a previous project. But there was a lot of "if role is Administrator then enable/show these controls; if role is Supervisor then enable/show only these controls; etc; etc". That became tedious after a while. So I am looking for a better solution.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
Create another class called Permissions or something similar. In that class you would have boolean properties which correspond to each permission you would like. Then in your role class you would have a property permissions, which would return a permissions class with appropriate permissions set. Then each user would be assigned a role, which would have the permissions set. Then in you application you couls have a currentuser property, who would have their role with permissions, and so you could just enable buttons/menuitems according to the permissions. Here is a simple example:-
public partial class Form1 : Form
{
User currentUser;
public Form1()
{
InitializeComponent();
btnAddNewDoc.Enabled = currentUser.CurrentUserRole.Permissions.CanAddNewDoc;
}
}
class User
{
public int UserID { get; set; }
public string UserName { get; set; }
public UserRole CurrentUserRole { get; set; }
}
class UserRole
{
public string RoleName { get; set; }
public RolePermissions Permissions { get; set; }
}
class RolePermissions
{
public bool CanAddNewDoc { get; set; }
public bool CanDeleteDoc { get; set; }
}
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
Oh wow, thanks a lot. I will keep this in mind. The concept is quite simple really and I can easily create my own classes based on this idea. Thanks a lot, Wayne.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|