|
Apart from other two solution posted,
you can also do it in RowDataBound Event.
code will go something like this:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.Header)
{
TableHeaderCell cell = new TableHeaderCell();
cell.Text = "Column 6 Name";
e.Row.Cells.Add(cell);
}
else if (e.Row.RowType == DataControlRowType.DataRow)
{
TableCell cell = new TableCell();
decimal result = Convert.ToDecimal(e.Row.Cells[2].Text) - Convert.ToDecimal(e.Row.Cells[3].Text);
cell.Text = result.ToString();
e.Row.Cells.Add(cell);
}
else
{
TableCell cell = new TableCell();
e.Row.Cells.Add(cell);
}
}
|
|
|
|
|
Hi,
I am new with ASP.NET. I want to develop a news website. And I want to pick the information from other authentic news websites in different frame of my websites.
please let me know how can do this.
Regards,
|
|
|
|
|
|
What I have understood about RSS, it allow you to share your information for other websites.
But I want to capture the information displayed on other websites???
|
|
|
|
|
|
|
Hi there,
Has any one used the validation application block before? What are your experiences with it, good or bad? Is it worthwhile to use?
I want to check that a value is greater than 0, what validator technique would I use for this? Lets say I want to validate that my product identifier property must always be a positive value, that is, greater than 0. How would I do this?
Regards,
Brendan
|
|
|
|
|
Hi ,
Please help me.I used a javascript method to run my aspx page for edit.It is working fine in my local machine .But when the build is up on the server , it is showing error and we are totally unable to go to that page.Here is the javascript I used.
var id=param.id;
var url="EditUserDetail.aspx?id="+id;
//window.location=url;
window.open(url,"_blank","toolbar=no, location=yes, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=850, height=500");
and the error showing when it run in the server is ,
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
With warm regards
|
|
|
|
|
Subin Mavunkal wrote: Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".
You can enable the same to check what actually happening over there. I guess the may be some problem in EditUserDetail.aspx page
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
There seems to be an error is occuring when the page loads ,
do you have any kind of Error Log for your application ?
If any error log is there then you can get what exactly is the error .
or change the web config as directed and then check
Nish
|
|
|
|
|
Hi,
Try adding this in configuration
<customerrors mode="Off">
|
|
|
|
|
<customErrors mode="Off">
</customErrors>
|
|
|
|
|
thank you brothers , I tried
<customErrors mode="Off">
</customErrors>
this in server and I got the exception on page.It was the problem with DB mismatching
Thanks a ton
|
|
|
|
|
Yes. That's why we suggested you to enable to custom error mode so that you can easily get the stackTrace Details.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Make sure either remove it or set it to
<customErrors mode="RemoteOnly"></customErrors>
so that your users don't see the error details.
Further better you can redirect your users to a error page like so
<customErrors defaultRedirect="Your Error Page" mode="RemoteOnly"></customErrors>
|
|
|
|
|
Hi,
I have a requirement where i need a taskbar popup control appears when work assigned to some person( user of the application), like msn msg appear on taskbar when a new message received, but i need the same funtionality in asp.net using ajax.
KnightGuy
|
|
|
|
|
Here is the Most Popular Article From Code Project.
ASP.NET Popup Control[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
This control doesn't work with update panel, below feedback indicating...
KnightGuy
|
|
|
|
|
Why do you need to put this control with inside Update panel. You have to invoke that only. Or you are looking for some thing different ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
i have a gridview (shown the tasks which is assigned to him) inside update-panel so that it would automatically refreshed after 20 seconds, if new task assigned to him then i need a popup control indicate a new task assigned kindly work on it.
KnightGuy
|
|
|
|
|
So, Did you tried to invoke the popup during your partial postback of the page ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
This Control has a probem it doesn't work within update panel.
KnightGuy
|
|
|
|
|
mharoonkhan wrote: like msn msg appear on taskbar
I don't think you can have control over the taskbar from your webpage.
Msn is a Windows application.
The thing i can suggest is when a new message arrives,
change the title of your webpage so, new text will appear in the taskbar (as title).
You can also set focus to the window containing message so that it will be highlighted.
Hope this will help.
|
|
|
|
|
Hi,
I am working on Asp.net Gridview. In this I have a table with three columns. Among these first two display text and the last one is textbox with some decimal or integer values where user can enter values if he want in this textboxes. All these three columns gets data from database at the beging. Now I want to have a footer at the bottom of this gridview in which I should be able to display the sum of values in the 3rd column i.e., the Textbox column.
If anyone have any idea to do this please reply me.
Thanks in advance
|
|
|
|
|