|
Hi Bhardwaj,
Thank you for your reply. I got the solution.
|
|
|
|
|
Hi,
Can any body give me a hint from where can I download sample icepak model files. I have googled extensively, I could find few.
Please Help!
Regards
Mukti
|
|
|
|
|
Member 3243250 wrote: Can any body give me a hint from where can I download sample icepak model files. I have googled extensively, I could find few.
How is it related to ASP.Net?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I used gridviewrowcreated event in order to create a heading row for the grid
First time it executes well after that for every event that is fired on the page the control is coming directly the gridviewrowcreated event
How can i solve this problem?
|
|
|
|
|
It is hard to assume the problem from your obscure post. Do you want write some code that should execute only when the creation of header row? Then you should write it in an "if" block which checks the row type is header row.
|
|
|
|
|
if (e.Row.RowType == DataControlRowType.Header)
{
//Build custom header.
GridView gvGrid = (GridView)sender;
GridViewRow gvRow = new GridViewRow(0, 0, DataControlRowType.Header, DataControlRowState.Insert);
TableCell tblCell = new TableCell();
TableCell tblCell1 = new TableCell();
//Add Department
tblCell.Text = "Attendance Report From:" + Convert.ToDateTime(sFromDate.ToString()).ToString("dd/MM/yyyy") + "-" + "To" + Convert.ToDateTime(sToDate.ToString()).ToString("dd/MM/yyyy");
tblCell.ColumnSpan = 6;
tblCell.ForeColor = System.Drawing.Color.Black;
tblCell.Font.Bold = true;
tblCell.Font.Size = 14;
gvRow.Cells.Add(tblCell);
tblCell.HorizontalAlign = HorizontalAlign.Left;
gvGrid.Controls[0].Controls.AddAt(0, gvRow);
}
I used this code first time it executes well after that when any event is fired on the page the control comes to this rowcreated event its not even entering into page_load and all the text in the textbox controls were being cleared
modified on Thursday, October 8, 2009 12:42 AM
|
|
|
|
|
Is the page is loaded with !ispostback.
|
|
|
|
|
try to keep the breakpoint on all the events which are present in the code page..!Then try to debug the page You can find the error..!
|
|
|
|
|
i tried it but could not found
|
|
|
|
|
I am taking three dataset and i want to bind all dataset value in a single gridview.so plz can help me????????
vivek sachan
9582134764
DataSet ds = dut.getDataSet("select Class,CurrentLevel,Name from Tbl_StudentDetails where RollNo='" + Request["RNo"].ToString() + "'");<br />
foreach (DataRow DR in ds.Tables[0].Rows)<br />
{<br />
string s2 = DR["Class"].ToString();<br />
string s3 = DR["CurrentLevel"].ToString();<br />
string s4 = DR["Name"].ToString();<br />
}<br />
<br />
<br />
DataSet ds1 = dut.getDataSet("select count(Status) from Tbl_Attendence where RollNo='" + Request["RNo"].ToString() + "'");<br />
foreach (DataRow DR1 in ds1.Tables[0].Rows)<br />
{<br />
<br />
string s5 = DR1["Status"].ToString();<br />
}<br />
<br />
DataSet ds2 = dut.getDataSet("select FMonth,Fyear,TPendingFee,Fees from Tbl_SFee where RollNo='" + Request["RNo"].ToString() + "'");<br />
foreach (DataRow DR2 in ds2.Tables[0].Rows)<br />
{<br />
string s6 = DR2["FMonth"].ToString();<br />
string s7 = DR2["Fyear"].ToString();<br />
string s8 = DR2["TPendingFee"].ToString();<br />
string s9 = DR2["Fees"].ToString();<br />
<br />
}
|
|
|
|
|
there is no need for three dataset , all your calculation based on rollno .
just create stored procedure in database and join thes three tables on the bases of rollno .
after that fetch this in single dataset and bind with grid.
|
|
|
|
|
Concatenating user input to an SQL string may causes to SQL injection attack.
|
|
|
|
|
hi,
use those query using union thus it will done by using single dataset
praveen
|
|
|
|
|
Hi all,
i want to restrict my browser button .Can anyone help me .thanks
|
|
|
|
|
|
Will post the features which we had developed and also provide the demo links to the interested buyers.
|
|
|
|
|
No Ads buddy
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I wonder if it has been created by posters of some of the questions below?
|
|
|
|
|
Pay to advertise like everyone else
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi
on click on save button:
I uploaded 4 images in temp folder in application and used in attachment while sending mail from temp folder.
because on live server it was not possible to recognize from file upload control.
now after finishing email sending process I want to delete these all images but while deleting by coding exception is coming like "this file is being used by another process".
so how can I end process that is responsible to hold these images.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
trilokharry wrote: so how can I end process that is responsible to hold these images.
Could you post youe code snippet where you do this operation...
It would help people to locate where the problem is.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
{
//save button event
SendMail();//sending mail with attachment
Delete();//deliting images
}
You get the best out of others when you give the best of yourself.
|
|
|
|
|
trilokharry wrote: SendMail();//sending mail with attachment
Delete();//deliting images
This is just a function call.
Would you mind posting the actual function.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
trilokharry wrote: SendMail();//sending mail with attachment
Delete();//deliting images
I'm sorry, but this is hilarious.
Despite your inability to post the actual code, I have a guess. You try to delete right away, instead of in response to a message that mail was sent, are you sending asynchronously ? I think the images are still in use because the mail is still sending.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hi,
you cant delete image untill youe mail is not sent.
praveen.
|
|
|
|