|
Check the data at 49th row. May be due to the datatype's error, some times it is unable to run the process.
you must ensure that datatypes of souce and target should be same
G. Satish
|
|
|
|
|
I want to create a public blogging/news site where anyone can register and add blog articles to the site (like cnn's iReport.com).
I could always take dotnetblogengine and modify it to do what I want however I figured I'd check around first to see if anyone knows of one (preferebly free open source, but I'll take commercial softtware as well.
Any ideas?
Thanks.
-Goalie35
|
|
|
|
|
hai good morning everyone,
i am using adrotator in my master page,at the time of the execution the images change but the total page can be refreshed,but i need to refresh only the image part ie partial page refreshing.how can i set the partial page refreshing to my masterpage,plz give a better solution to me .
thank u.
this site is very useful to us,thanks for providing this site.
|
|
|
|
|
You need to impliment a control using AJAX, or look for one that already exists.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Use Ajax,put the i adratator control in Updatepanel and update it everytime when image is getting changed
Cheers!!
Brij
|
|
|
|
|
mates,
whats wrong with my code? when i click next button, i have to delete
data from one of the table, then i will show it to the gridview which
is the QueryRes.aspx , meaning other page.
Note: my gridview is already bind to the database.
protected void btnNext_Click(object sender, EventArgs e)
{
StringBuilder sbDel = new StringBuilder();
sbDel.Append("DELETE");
sbDel.Append(" FROM");
sbDel.Append(" WKTABLE");
sbDel.Append(" WHERE CODE = 1020");
OleDbConnection oleCon = new OleDbConnection(mdbcon);
oleCon.Open();
OleDbTransaction oleTran = oleCon.BeginTransaction();
try
{
OleDbCommand cmdDel = new OleDbCommand(sbDel.ToString(), oleCon, oleTran);
cmdDel.ExecuteNonQuery();
oleTran.Commit();
Response.Redirect("QueryRes.aspx"); //this is a gridview page. I will post here the query result above.
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
oleTran.Rollback();
}
finally
{
if(oleCon.State != ConnectionState.Closed)
{
oleCon.Close();
}
}
}
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
So What is the Problem ???
|
|
|
|
|
Is data is getting deleted from Database?
Cheers!!
Brij
|
|
|
|
|
C#Coudou wrote:
Response.Redirect("QueryRes.aspx");
C#Coudou wrote:
finally
{
if(oleCon.State != ConnectionState.Closed)
{
oleCon.Close();
}
}
}
I am not sure that the finally block will run here, because Response.Redirect moves control to another page. I could be wrong, but I suspect this is going to leave your connection open.
To show a specific set of data on your redirect, put the data you need to pull the info you need, on the query string.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
buddies, thanks for the replies. i found out that the query is wrong, i mean the data. actually no problem on my code. its only the query.
cheers!
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
Hello everyone
I have designed a web report with C# 3.5, but when I want to print it, it dosn't fit.
How can I set its [print] properties?
Please help me.
thank you.
|
|
|
|
|
The best way is to have a print view that comes up, which resizes the report to the size you want. No print formatting is possible in a web page.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
What I want is to get Methods Names which are invoked by the user and their parameters and values to log users' actions.
How can I do that ? is there any sample solution for that.
Thanks....
I am not a perfect programmer,but i have perfect's programmers' habits.
|
|
|
|
|
Stack Trace could be helpful in that ........
Find on google is there any way to access it programmtically
|
|
|
|
|
atarikg wrote: What I want is to get Methods Names which are invoked by the user and their parameters and values to log users' actions.
What does it mean ?
You want to maintain a log for all user along with the method name and Parameters. isn't it ?
Why?? and why using asp.net ?
|
|
|
|
|
|
Yeap,
So what's the solution pls
I am not a perfect programmer,but i have perfect's programmers' habits.
|
|
|
|
|
Hi guys,
I have following problem:
I want to display two GridViews A, B one next to the other. So I've created a simple table with one row and two columns a put griview A into the left column and the GridView B into to right column:
<table>
<tr>
<td>
A
</td>
<td>
B
</td>
</tr>
</table>
I know that after items are loaded, the A will always be higher than B, so I would like to stretch B so it takes same amount of height as A. I've set the Height property on B to 100%:
<asp:GridView ID="B" runat="server" AutoGenerateColumns="False" Height="100%">
...
</asp:GridView>
But the B keeps the minimum height it requires to render all rows and won't stretch to same size as A. Note that A and B are in cells of the same row, so B has available height to strech to.
After some investigation I've discovered that by default, a GridView is a <table> encapsulated within a <div> . And its the div that prevents the table to stretch above its minimum required height. Is there a way how to tell ASP.NET to NOT render the (empty) <div> html tag around the table? Or change the behaviour of the <div> to not prevent table to be stretched to any available size?
zilo
|
|
|
|
|
How to find child gridview using find control in RowCommand event?Please help me.
|
|
|
|
|
Hi Kavitha
GridView grdchld=e.Rows.FindControl(ChidGridViewname);
Try this
|
|
|
|
|
|
Would anyone tell me, how to use __doPostBack.
how can we use it in client side code?
I understand that it helps to post the page from client side,
when setting up the AutoPostBack=true. But without
setting this property i would like to use __doPostBack. any replies are welcome.
Muthu
|
|
|
|
|
It's a javascript method. You can call it from your script, same as the auto generated controls do.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi all,
Can anyone suggest me how to write the confirm box in code behind
and i want to get the return value whether the user clicked 'ok' or
'cancel',
Depending on that i need to process further using if else
|
|
|
|
|
koushiksaha wrote: Can anyone suggest me how to write the confirm box in code behind
Same way that your are doing using JavaScript .
But Register that function from codbehind using
ClientScript.RegisterStartupScript(this.GetType(), "Confirm",<br />
"<script>Confirm('" + Are You Sure ?+ "');</script>");<br />
or if use ajax in your page then ScriptManager instate of ClientScript
|
|
|
|