Quantcast
Channel: CSharp Forum Latest Questions
Viewing all 32060 articles
Browse latest View live

displaying facname when i click the facid using asp.net C#

$
0
0

 
Faculty table structure as follows
 

Facid       bigint
Facname varchar

 
Faculty table records as follows
 

Facid  Facname
 
1     G Sekar
2    R Kumar
3    S Janka
4   R Rajesh
5   V Gopi
 

Bthfac table structure as follows
 

Bthid     bigint
Bfid      bigint
Facid    varchar
 
Bthfac table records as follows
 

Bthid Bfid    Facid
 
1        1      1,3,5
2        2      2,4,5
3        3      3,4
4        4     1,2,5
5        5     2,3
 

In run mode as follows
 
Month    Dropdownlist
 
Year      Dropdownlist
 
Facid     Dropdwonlist    (Facid is to retrieved from the Btfac table)
 

Example as follows
 
Facid  1,3,5  (Dropdownlist)
 
when i click the dropdownlist i want to show the respective facname in the label.
 
i want the output as follows
 

Facid 1,3,5 (Dropdwonlist) 

G Sekar
R Kumar
V Gopi
 

for that how can i do using c sharp.
 
Note it is web application.
 
Regards,

oops overriding

$
0
0
create a base class, telephone and derive a class electronicphone from it.in telephone,create a protected string member phonetype,and a public method ring() that outputs a text message like this:"ringing the <phonetype>:. in electronmicphone the constructor should set the phonetype to "digital" in the run () method , call ring() on the electronicphone to test the inheritance

a) the derived class override the ring() method to display a different message

b) change the telephone class to abstract and make ring() an abstract method . derive two new classes from telephone : digitalphone and talkingphone. each derived class should set the phonetype and override the ring() method.

import and export database in sql server

$
0
0
Hello
 
i have one existing sql server 2008 express r2 database file.
in my mechine there is only sql server 2008 express.
how to open that existing file in sql server 2008 express.

Application which can support Ethernet

$
0
0
Hi, I've got a huge problem, Im not familiar with c# and despite that in my master thesis I have to create an application which will use ethernet connection. To be more specific - Ive got two modems Microhard IP2421 (each connected by ethernet cable to one computer) so when I go to the 'network environment' from windows I can see each of the computers. My task is to create an application which will allow me to connect to the other computer (from the application level) and for example send some files from one computer to another. Ive got IP addresses of my modems so if someone can help me I can give those numbers to apply them into program. It would be nice to create a list in application which will allow me to decide to which computer I want to 'go inside' and send files or edit something

ASP.NET Outlook panel control

$
0
0

Hi,

Currently looking for outlook panel control for web portal? Can you guys help me out?

Thanks
Ram

C# linq to sql uses a default setting

$
0
0
In a C# desktop application, I am using linq to sql to connect to a sql server 2008 r2 database. The applicatiion is setup to point to various databases depending upon the value in the app.config file.

The problem is code in the *.designer.cs gets overrriden somehow by 'defaults' in the .net problem framework. When this happens the 'using system.configuration' gets removed from the application and the 'default settings' values are used to get the database connection string values.

When I notice this problem occurs, I need to do the following: 1. place the 'using system.configuration' code back into *.designer.cs file, 2. change the code so the database connection info is obtained from the app.config file, 3. remove the property settings so the 'default' database connections are not used.

Thus can you tell me what is causing this problem to occur and how to solve the problem?

Rowspan in Webgrid in MVC

$
0
0
 How to display webgrid as shown below in MVC 3.
h1   |   h2  |  h3-------------------
R11  |  R12  |  R13
-----|-------|------|  R22  |  R23
|-------|------
| R32 | R33
------------------- R42 | R41 | R43
-----
|-------|------| R44 | R45

Middle colmn and 3 rd column spans multiple rows.

Crystal Reports Direct Print in ASP .NET Client System - Fil

$
0
0
Hi Frnds,
Last one week i am searching for direct print option for crystal report ASPx .net(C#).But not getting proper answer,,,www.neodynamic.com,,,In this website some in build tool is there,,,but not able to make proper result...How to solve this problem,,,Can anyone knows or have any ideas please tell,,,ASAP
Thanks

how to get the value from gridview into input box?

$
0
0
Hai Friends,

                  I m creating one application input fields are,

DEPARTURE DATE:(TEXT)==>(GRIDVIEW VALUE LL BE APPEAR IN EDIT MODE)

FROM PLACE:(TEXT)==>(GRIDVIEW VALUE LL BE APPEAR IN EDIT MODE)

TO PLACE:(TEXT)==>(GRIDVIEW VALUE LL BE APPEAR IN EDIT MODE)

ADD
                                                                                            GRIDVIEW TABLE
DEPARTURE DATEFROM PLACETO PLACEMODES
01-MAY-13
CHENNAI
BANGALORE
EDIT/DELETE
02-MAY-13
BANGALORE
MYSORE
EDIT/DELETE
                                                                                                                                                                                                 
IF I CHOOSE THE EDIT BUTTON IN GRIDVIEW THE ENTIRE VALUE LL BE MOVE ON INPUT FILEDS(YELLOW COLOR VALUES LL GO ON THEIR INPUT FIELDS).

HOW  TO MAKE A CODE?

tabular format form that will update data from serial port

$
0
0
Hi

I am newbie to c sharp and I want to create form which will have tabular format. This table will update data from incoming runtime serial data from serial port.

How to implement such form and what controls I should be using?

Can you provide steps or guidlines for the same.


Please help

Thanks
Viva

WPF Combobox Close When Click on Outside

$
0
0
Hi...

          



I would like to create custom control that will look like standard WPF ComboBox, but instead of instead of having an ItemsPresenter in the popup there will be another custom control. So, I created a new class that derives from System.Windows.Controls.Control, added a IsDropDownOpen property and created a style that is actually a copy of default ComboBox style (main idea is that thePopup.IsOpen and ToggleButton.IsPressed properties are bound to the IsDropDownOpenproperty of the control).

The problem is that the Popup is not closed when I click outside of the control.

I took a look at the ComboBox class in the Reflector and found out that ComboBox used some logic to update the IsDropDownOpen property when it loses mouse capture. But that code uses some internal classes. Is there any alternative way to determine if the user clicked outside of the control and close thePopup?


Thanks 

RAjesh

Reading Mifare smart cards

$
0
0

I have a really weird problem with reading Mifare 1k card from WinForm application. The reader I'm using is a PROMAG PCR-310U smart card reader. I have an application where a parent form creates a child form. That child form reads the smart card's ID and sends it to the parent.

I use this code to read the card:


MifareReader.CommPort = 4;
MifareReader.PortOpen = true;
MifareReader.mfRequest();
MessageBox.Show(MifareReader.mfAnticollision().ToString());
MifareReader.mfHalt();

The problem is this - the first time I create the child form, the reading process works perfectly but the second time (and every time after that) I create the child, the reader stops working - it returns "0" as the CardID whether the card is present or not. What could cause this error, and how would I fix it?

showing username based on the using machine name in c#

$
0
0

I hosted one webiste in my machine IIS server [Local IIS Server].
For this application we are capturing the cuid [cuid= username,password=password. cuid and password for login to the system active directory] of the system.
If somebody using the application in his machine using my machine IP address.
"http://myIPaddress/BSD_24052013/BusinessVertical.aspx"
then system should show his cuid(cuid=username of his) in his machine.
[who ever accessed application then system should show cuid(username) of the person in his machine]
i need correct post with full information (full code) for this asap.

Crystal report

$
0
0
How can i show 2 same reports in in one crystal report?
I am working with fee receipt in crystal report ,i have shown the fee receipt well but the requirement is in one page we want the 2 copies of fee receipt
means in a single report i have to show 2 copies of fee receipt.


i have sent u 3 files in that PrintReciept.rpt file is there is a receipt format in that page only i want 2 copies there is only one.

How to store temporary information multi-step registration


oops interface called varibletest

$
0
0
create an interface called VariableTest Which contains A method called disp() and 2 variables x,y which are integers and whose value is set as 10 and 20 . create a class called VarLntTest which impliments this Interface . the disp() method should display a message "inside interface-variableTest and method disp" write a method called display() within VarIntTest class which prints the value of x

CAN U GUYS PLZ HELP ME TO FIND OUT THIS ANS AND PLZ GIVE EXPLAANTION OF THIS PROBLEM TOO ..
I WANT TO KNOW THE LOGIC THTS Y ..
..

Download And Zip the Folder on Right Click.

$
0
0
I want to see the Folders in Tree view and when i right click on that folder i will download the folder in the form of zip folder.I want this in my Web Application using C#.

How to get the query in LINQ of a hierarchical database

$
0
0
Sample data from table: Table Name - SUPPLIERS and Entity Name - dbData


RECORD_NO     ID_NO      FIRST_BRANCH     SECOND_BRANCH   POSITION
----------------------------------------------------------------
   1      05100242     05100243         05100244         L
   2       05200443     05100245         05100247         L
   3       05100244     05100248                          R
   4       05100245     05100249                           L
   5       05100247     05100250                           R
   6       05100248                                        L
   7       05100249                                        L
   8       05100250                                        L


HIERARCHY ILLUSTRATION



For example in a pyramid organizational chart, how are you going to get the count of A,B and C?

A = 05100242
B = 05100243
C = 05100244

TO GET THE RESULT OF 05100242 I used

LEFT ACCOUNT
var data = dbData.SUPPLIERS.where(x=>x.ID_NO == 05100243);

LEFT
string left = data.FIRST_BRANCH;
var leftbranch = dbData.where(x=>x.ID_NO == left);

RIGHT
string right = data.SECOND_BRANCH;
var leftbranch = dbData.where(x=>x.ID_NO == right);


RIGHT ACCOUNT 
var data2 = dbData.SUPPLIERS.where(x=>x.ID_NO == 05100244);

LEFT
string left2 = data2.FIRST_BRANCH;
var leftbranch = dbData.where(x=>x.ID_NO == left2);

RIGHT
string right2 = data2.SECOND_BRANCH;
var leftbranch = dbData.where(x=>x.ID_NO == right2);


The problem is for every ID_NO, you need to get the 
LEFT AND RIGHT BRANCH and the result is you need to get again the LEFT AND RIGHT. YOU NEED TO REPEAT THIS DEPENDING ON HOW MANY RECORDS AVAILABLE.

THE QUESTION IS WHAT IF THERE ARE
MILLIONS ON RECORDS?

AND RECORDS IS
INCREASING BECAUSE EVERYDAY SUPPLIERS/DEALERS ARE CONTINUE GROWING. 

How to develop chat application using asp.net?

$
0
0
HI every one How to create chat application using asp.net just like chat with supporting team?

How can i implement this ?
Can you please explain this senario


TASK:
  • Anytime user request chat an email should go to support team, letting them know user is looking for support

List view group option.

$
0
0
Hi,

I am trying hardly to group my list of document management based on dates but it's returning only one day per page. I did the same configuration on SharePoint Services 3.0 and it's working perfectly on tha server. Same is not working on SharePoint Server 2010.

You can refer to the attached file to understand what i'm trying to solve. My list is over 90000 (on 3 years) entries and the performance of my server might go down if i dont solve this issue. Hope somebody can help me to solve this issue. Thank you in advance.
Viewing all 32060 articles
Browse latest View live