Click here to Skip to main content
15,918,343 members
Home / Discussions / C#
   

C#

 
QuestionOFFLINE WEB BROWSER IN C#.NET Pin
premium17-Jul-06 20:36
premium17-Jul-06 20:36 
AnswerRe: OFFLINE WEB BROWSER IN C#.NET Pin
Paul Conrad7-Jul-06 21:16
professionalPaul Conrad7-Jul-06 21:16 
QuestionComplete projects and source code in C#.net Pin
premium17-Jul-06 20:34
premium17-Jul-06 20:34 
AnswerRe: Complete projects and source code in C#.net Pin
Paul Conrad7-Jul-06 21:17
professionalPaul Conrad7-Jul-06 21:17 
Questioncrystal reports in C# Pin
Alamzeb khan7-Jul-06 20:13
Alamzeb khan7-Jul-06 20:13 
AnswerRe: crystal reports in C# Pin
Reza Raad9-Jul-06 0:25
Reza Raad9-Jul-06 0:25 
QuestionIHtmlPopup [modified] Pin
Ranjan Banerji7-Jul-06 19:57
Ranjan Banerji7-Jul-06 19:57 
Questionhow to fit the page size according to the monotor size Pin
ayyp7-Jul-06 18:48
ayyp7-Jul-06 18:48 
AnswerRe: how to fit the page size according to the monotor size Pin
Ennis Ray Lynch, Jr.7-Jul-06 20:52
Ennis Ray Lynch, Jr.7-Jul-06 20:52 
GeneralRe: how to fit the page size according to the monotor size Pin
ayyp7-Jul-06 20:58
ayyp7-Jul-06 20:58 
QuestionDateTime comparision Pin
_tasleem7-Jul-06 15:05
_tasleem7-Jul-06 15:05 
AnswerRe: DateTime comparision Pin
Ashwani Mahotra7-Jul-06 19:05
Ashwani Mahotra7-Jul-06 19:05 
GeneralRe: DateTime comparision Pin
_tasleem8-Jul-06 1:41
_tasleem8-Jul-06 1:41 
AnswerWrite a stored procedure Pin
Ennis Ray Lynch, Jr.7-Jul-06 20:57
Ennis Ray Lynch, Jr.7-Jul-06 20:57 
GeneralRe: Write a stored procedure Pin
Paul Conrad7-Jul-06 21:24
professionalPaul Conrad7-Jul-06 21:24 
QuestionGet Mouse Message [modified] Pin
İsmail Durmaz7-Jul-06 14:43
İsmail Durmaz7-Jul-06 14:43 
AnswerRe: Get Mouse Message Pin
Stefan Troschuetz7-Jul-06 22:03
Stefan Troschuetz7-Jul-06 22:03 
QuestionRead data from datagrid Pin
ujupanmester7-Jul-06 13:37
ujupanmester7-Jul-06 13:37 
Hy,

I have a problemns. I want to read data from datagrid, but i have few problemns, that i can't.

Let me explain:

Datagrid looks : <asp:datagrid id="dgcam" style="Z-INDEX: 104; LEFT: 856px; POSITION: absolute; TOP: 288px" runat="server"
="" cellpadding="0" gridlines="None" showheader="False">

Function how fill this grid is:

private void cam()
{
string conn = ConfigurationSettings.AppSettings["conn"];
SqlConnection objConnection = new SqlConnection(conn);

DataSet ds = new DataSet();

string user = "select utilizator from furnizori where id_client =" + lbluser.Text;
string listcamion = "select count(id_camion) from add_camion join furnizori on (add_camion.id_user = furnizori.id_client)where id_user=" + lbluser.Text;
SqlDataAdapter da = new SqlDataAdapter(listcamion,conn);
da.Fill(ds, "add_camion");
da.Fill(ds, "furnizori");

dgcam.DataSource = ds;
dgcam.DataMember = "add_camion";
dgcam.DataBind();

try
{
objConnection.Open();
}
finally
{
if(objConnection.State == ConnectionState.Open)
{
objConnection.Close();
}
}


In Page Load i have this code, where i had problemns:

if(dgcam.Items != null)
{
listcamionuser();
}
else
{
lblmesaj.Text = "Nu aveti adaugat nici un camion in baza de date";
}

Here i have problemns because i try to read data from grid. In grid count function works very good. In my page load i try to read grid who i fill this function cam(). This i don't knows how to put the cod(function is if(dgcam.Itemns != null) )

Pls help me.

Thanks for all
Questioncode Form within a code Form Pin
Glen Harvy7-Jul-06 12:55
Glen Harvy7-Jul-06 12:55 
AnswerRe: code Form within a code Form Pin
Not Active7-Jul-06 13:31
mentorNot Active7-Jul-06 13:31 
AnswerRe: code Form within a code Form Pin
Robert Rohde8-Jul-06 12:27
Robert Rohde8-Jul-06 12:27 
GeneralRe: code Form within a code Form Pin
Glen Harvy8-Jul-06 16:30
Glen Harvy8-Jul-06 16:30 
QuestionHow to catch a security exception within Remoting.Config(...) Pin
2bee 7-Jul-06 11:17
2bee 7-Jul-06 11:17 
AnswerLook at the stack trace in the exception? Pin
Ennis Ray Lynch, Jr.7-Jul-06 11:24
Ennis Ray Lynch, Jr.7-Jul-06 11:24 
GeneralRe: Look at the stack trace in the exception? [modified] Pin
2bee 7-Jul-06 11:36
2bee 7-Jul-06 11:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.