|
Pls clear your cookies and clear your browsing history and then run your Application in the Browser and see whether the images are appearing or not.
Regards,
Satips.
|
|
|
|
|
THANKS FOR THE REPLY..
I'VE TRIED IT. BUT NO RESULT
THE STYLE I AM APPLYING IS COMPLETELY GONE AFTER COME TO EDIT MODE.. AND IT NEVER COMES UNTIL THE PAGE REFRESH...HELP ME..
RANJITH STEPHEN
|
|
|
|
|
Hey Ranjith i dont know what you have written in ur CSS Class for Edit template in the Grid VIew.
So let us know it?
So that only we can help you?
Regards,
Satips.
|
|
|
|
|
OK..
THIS IS MY CSS
.GridViewBar
{
background-image:url("../../images/offStyle/shiny-DarkSiver.gif");
font-family:Arial;
font-weight:bold;
color:Black;
}
.PagerStyle
{
background-image:url("../../images/offStyle/Vista-Blue.gif");
font-family:Arial;
font-weight:bold;
color:White;
}
AND THIS IS MY GRIDVIEW HTML
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" CellPadding="4" DataSourceID="SQL_DS"
ForeColor="#333333" GridLines="None" ShowFooter="True" EmptyDataText="No Data" OnRowCommand="GridView1_RowCommand" Width="958px" RowHeaderColumn="CURRENCY" DataKeyNames="AREAID" style="page-break-before: auto; page-break-after: auto">
<FooterStyle BackColor="#5D7B9D" CssClass="GridViewBar" />
<EmptyDataTemplate>
</EmptyDataTemplate>
<SelectedRowStyle BackColor="#E2DED6" ForeColor="#333333" Font-Bold="True" />
<PagerStyle CssClass="PagerStyle" />
<HeaderStyle CssClass="GridViewBar" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<RowStyle HorizontalAlign="Center" BackColor="#F7F6F3" ForeColor="#333333" />
<EditRowStyle BackColor="#999999" />
<Columns>
<asp:TemplateField ItemStyle-Width="10%">
<EditItemTemplate>
<asp:Button ID="btnUpdate" runat=" ....... AND GOES ON
THANKS
RANJITH STEPHEN
|
|
|
|
|
It should work.
For more details have a look at MSDN[^]
Regards,
Satips.
|
|
|
|
|
Hi All
Please help me to create a random security code in aspnet
Example: register yahoo mail, gmail:
-> securyti code is a picture : BDCJWMU9
Thank you
|
|
|
|
|
Hope the article by AzamSharp[^] here in CP will help you.
Regards,
Satips.
|
|
|
|
|
Hi,
I am having this problem with session.
First I login and I assign the userid to a session which I'll will need it throughout the website. When something gone wrong on any of my web page, the session will be gone. May I know why is this happening?
Another problem I face previously is the session keep on loosing itself although I specify a time for it to expire which is longer than what I expect it would be.
Thanks
J Liang
|
|
|
|
|
I have a feeling that this is not the first time you've posted this. This is not an inherent problem in ASP.NET as far as I know. I've been building sites that use the same principle and work seamlessly for hundreds of users at any given time.
I'm certain that ASP.NET does not crumble to dust for small page errors. But if the error you're getting is serious enough to actually hang the worker thread, then it's quite possible that your sessions will be lost and as a consequence, your application will restart. Check the IIS logs to gain some insight into what's happening behind the scene.
First, do a thorough code review. If that does not solve the problem with sessions,
Do the following.
1. Check the ASP.NET and IIS configuration in your web server.
2. Try to publish your site in a different box and check if the problem recurs.
3. Try running your application in a separate application domain in IIS.
A session is but another object in the heap. I dont know much about GC in IIS application domains and how IIS maintains it's worker threads. If you're using VS 2005, does this problem occur even in the inbuilt web server spawned by VS 2005, or do you face problems only when it's hosted in IIS?
SG
|
|
|
|
|
Hi,
Actually this is really my first time posting this question as I'd not been using ASP.NET for 2 years and previously I did not encounter this problem.
But it's alright now, I'd put a check on every page that if the session is null then redirect it to another page using javascript.
Thanks for your reply
J Liang
|
|
|
|
|
:-> Deja Vu can sometimes be misleading.........
SG
|
|
|
|
|
source of "login" in ASP.NET write by C# use OLEDB
|
|
|
|
|
What is the question? What is ment by this post at all?
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
What you have tried so for for this?
This is the place where we can help you, but not to do your work.
If you are a learner go with our best friend and get some links and try to implement it.
then if you get any errors and could not able to proceed further post your error we are here to help you in all aspects.
Regards,
Satips.
|
|
|
|
|
Hi, I'm having a problem with Request.Url.AbsoluteUri
I have 2 pages, that build a web address and they need to know the address entered in.
However one page has the right server in Request.Url.AbsoluteUri while another does not.
The address going in is like http://home.myserver.com:8300/. Both will grab the home.myserver.com but one of the pages will not grab the port. And when I try to get the port it will return it as "80".
What could be different between the 2 pages that could cause this problem.
Thanks,
Mike
|
|
|
|
|
One might be grabbing it at a time when it is on port 80, perhaps a page redirect. Are the two pages on the same server. Give more detail on what you are doing and what is going on.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
Both pages are in the same server and in the same project/virtual dir. So they should be grabbing the uri the same way.
|
|
|
|
|
BUMP.
I'm trying to return another address in the page load function of each page, however they are returning different uri's?
Any help? This is driving me crazy.
|
|
|
|
|
Is there any proberty settings or any validation or anything that could affect this?
|
|
|
|
|
I have a datagrid that I am trying to use to add data to a database. I made the footer of each column a textbox. I am trying to insert that data into the database but get the following error.
Invalid postback or callback argument.
I can post code if that is needed.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
Its been a while since I've done some ASP.net work, but heres my question. I need to be able to bind any DataTable to a DataGrid, so ItemTemplates are out of the question, how do I make the identity data column set as non editable? I know I need to override: ItemDataBound. So I can check for an identity column,How do I get the row of data that it is intended to bind if I am using SqlDataSource connected to the DataGrid's DataSource?
-Steven Hicks CPACodeProjectAddict
|
|
|
|
|
In your ItemDataBound event:
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
Dim dr As DataRow = e.Item.DataItem.Row, DataRowView
' do stuff - eg: If dr("fieldname")....
End If
cheers
Fred
|
|
|
|
|
The problem is that I do not know the field name... I need to know the attribute of the field [being the primary key] .
-Steven Hicks CPACodeProjectAddict
|
|
|
|
|
hmm ok I'm not sure you can do this in itemdatabound as you need to set the datakeyfield property of the datagrid itself before binding... if you are binding to a table in a dataset, the PrimaryKey property of the table returns an array of columns that function as primary keys for said table...
Fred
|
|
|
|
|
I have a DataGridView and would like to set the back and fore colors of certain rows based on the data in the table the grid is bound to. How is this done? I've tried looping through the grid and setting the DefaultCellStyle for the rows I want changed, but it doesn't do anything. I would appreciate any help or advice.
|
|
|
|