Click here to Skip to main content
15,921,959 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question1.1 DataGrid client side issue - need access to grid after cell Text exists but before render [dead thread...misworded] Pin
Alaric_7-Aug-09 3:21
professionalAlaric_7-Aug-09 3:21 
AnswerRe: 1.1 DataGrid client side issue - need access to grid after cell Text exists but before render Pin
Arindam Sinha7-Aug-09 3:37
Arindam Sinha7-Aug-09 3:37 
GeneralRe: 1.1 DataGrid client side issue - need access to grid after cell Text exists but before render Pin
Alaric_7-Aug-09 3:43
professionalAlaric_7-Aug-09 3:43 
GeneralRe: 1.1 DataGrid client side issue - need access to grid after cell Text exists but before render Pin
Alaric_7-Aug-09 4:29
professionalAlaric_7-Aug-09 4:29 
GeneralRe: 1.1 DataGrid client side issue - need access to grid after cell Text exists but before render Pin
Arindam Sinha7-Aug-09 5:49
Arindam Sinha7-Aug-09 5:49 
GeneralRe: 1.1 DataGrid client side issue - need access to grid after cell Text exists but before render Pin
Alaric_7-Aug-09 7:18
professionalAlaric_7-Aug-09 7:18 
QuestionAnimationExtender - Postback Issues Pin
Maynards7-Aug-09 3:01
Maynards7-Aug-09 3:01 
QuestionMS access two connections simultaneously..... Pin
greendragons7-Aug-09 2:11
greendragons7-Aug-09 2:11 
Here is the code..i want to delete records if date exceeds by 10 compairing with current date...for this i have made two connection strings but one for select and other one for delete...it's running all well only the cnc1 which has to delete is not deleting from db....whats wrong with that line?

<-----------code in page load------------------->&

<br />
         OleDbConnection cnc = new OleDbConnection((string)Session["cs"]);<br />
            cnc.Open();<br />
            string qc = "select Date1 from friends where Username='" + (string)Session["uname"] + "' and Confirm='No'";<br />
            OleDbCommand cmdc = new OleDbCommand(qc, cnc);<br />
            OleDbDataReader drc = cmdc.ExecuteReader();<br />
            while(drc.Read())<br />
            {<br />
                DateTime dtc = Convert.ToDateTime(drc[0].ToString());<br />
<br />
                string da1 = DateTime.Now.ToShortDateString();<br />
                DateTime date1 = Convert.ToDateTime(da1);<br />
                string dttc = Convert.ToString(dtc);<br />
              <br />
                TimeSpan ko = date1.Subtract(dtc);<br />
                int day = ko.Days;<br />
<br />
                <br />
<br />
             if(day>=10)<br />
                {<br />
                   <br />
                   OleDbConnection cnc1 = new OleDbConnection((string)Session["cs"]);<br />
                    cnc1.open()<br />
                      string qc1 = "Delete from friends where Username='" + (string)Session["uname"] + "' and confirm='yes' and Date1='" + dttc + "'";<br />
                      OleDbCommand cmdc1 = new OleDbCommand(qc1, cnc1);<br />
                       cmdc1.ExecuteNonQuery();<br />
                       cnc1.Close();<br />
                }<br />
<br />
<br />
<br />
            }<br />
<br />
            cnc.Close();

AnswerRe: MS access two connections simultaneously..... Pin
Mike Ellison7-Aug-09 2:58
Mike Ellison7-Aug-09 2:58 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 3:21
greendragons7-Aug-09 3:21 
GeneralRe: MS access two connections simultaneously..... Pin
Mike Ellison7-Aug-09 6:10
Mike Ellison7-Aug-09 6:10 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 7:26
greendragons7-Aug-09 7:26 
AnswerRe: MS access two connections simultaneously..... Pin
Arindam Sinha7-Aug-09 3:00
Arindam Sinha7-Aug-09 3:00 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 3:11
greendragons7-Aug-09 3:11 
GeneralRe: MS access two connections simultaneously..... Pin
Arindam Sinha7-Aug-09 3:30
Arindam Sinha7-Aug-09 3:30 
AnswerRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 3:09
professionalVimalsoft(Pty) Ltd7-Aug-09 3:09 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 3:16
greendragons7-Aug-09 3:16 
GeneralRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 3:18
professionalVimalsoft(Pty) Ltd7-Aug-09 3:18 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 3:24
greendragons7-Aug-09 3:24 
GeneralRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 3:29
professionalVimalsoft(Pty) Ltd7-Aug-09 3:29 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 3:34
greendragons7-Aug-09 3:34 
GeneralRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 3:38
professionalVimalsoft(Pty) Ltd7-Aug-09 3:38 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 4:01
greendragons7-Aug-09 4:01 
GeneralRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 4:11
professionalVimalsoft(Pty) Ltd7-Aug-09 4:11 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 4:20
greendragons7-Aug-09 4:20 

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.