|
Hi,
I am struggling to get my styles to work in my gridview. Here is my gridview:
<asp:GridView
ID="gvRoles"
AllowPaging="true"
AutoGenerateColumns="false"
BorderStyle="None"
BorderWidth="0"
CellPadding="0"
CellSpacing="0"
BackColor="White"
DataSourceID="odsRoles"
PageSize="20"
Width="100%"
runat="server">
<HeaderStyle CssClass="gridview_header" />
<ItemStyle CssClass="gridview_cell" />
This is what my styles look like:
.gridview_header
{
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #fff;
text-align: left;
margin: 0px;
padding: 3px 2px 3px 2px;
background: #9bab6f;
}
.gridview_cell
{
border-bottom: solid 1px #ececec;
border-left: none;
margin: 0px;
padding: 3px 2px 3px 2px;
}
This works fine in IE7, but in Firefox there is a black line between the cells. I can't seem to remove the black line. Please can someone help me? If someone know of a good gridview styling example on the Internet please send it through.
Regards
.NET Enthusiast
|
|
|
|
|
Give GridLines="None" in gridview property
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
how to user sitemappath contol
|
|
|
|
|
Get It SiteMapPath
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
To all,
in vb.net,to close the application or form...we use..
End
OR
dim frm as form1=new form1
frm.close()
so...
How to close asp page or application?
plz reply me?
thanking u....
Imagine the I.T
|
|
|
|
|
You close a webpage by using the javascript window.close() or self.close().
only two letters away from being an asset
|
|
|
|
|
Hai All,
Can any one know this,
when i am uploading a file(ExcelSheet) from Database,then the current date will be visible from database.but my requirement is when i upload the file, i want to display (yesteday)Previous date.
Any help Thanks in advance
Thanks
Subbu.
|
|
|
|
|
System.DateTime.Now.AddDays(-1);
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
hi friend
when i have load dynamically dll references to this code:-
Dim asmblyload As System.Reflection.Assembly = System.Reflection.Assembly.LoadFile("C:\Inetpub\wwwroot\UccpLibrary\Bin\Uccp.dll")
then error occurred
The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)
anybody tell me what is solution of this error. help me.
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Hi,
I am using >NET 2.0 and I have a gridview in which I want to display the role ID and name. I am using the membership and role provider.
I have an object data source, but I think I am using the incorrect method:
<asp:ObjectDataSource
ID="odsRoles"
SelectMethod="GetAllRoles"
TypeName="System.Web.Security.Roles"
runat="server" />
What method do I use to get the role ID and name?
Here is my incomplete part of my gridview:
<Columns>
<asp:TemplateField HeaderText="Role">
<ItemTemplate>
<%# Container.DataItem.ToString() %>
</ItemTemplate>
</asp:TemplateField>
</Columns>
Please can someone help?
Regards
.NET Enthusiast
|
|
|
|
|
Try this code <%# Eval("FieldName")%> Instead of <%# Container.DataItem.ToString() %>
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
What is FieldName, the table name?
|
|
|
|
|
What is a RoleID and Name?
both Are your field Name.
use One of them as fieldname to display values.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
|
how to add custom control to my web page??
|
|
|
|
|
Fisrt Of all You have to add Custom Control DLL in ToolBox.
Right Click on ToolBox-->Choose Items-->Click on Browse in DialogBox-->Add DLL of Custom Control and Apply.
Your Custom control will be added in ToolBox now You can drag and drop that control in your web page.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
hi
i hv taken asp:CheckBoxList ctrl wit id=chkAreaOfExpertise
n asp:ObjectDataSource
n i want a comma separated list of selected items
so i hv written d code
for (int i=0; i < (chkAreaOfExpertise.Items.Count); i++)
{
if (chkAreaOfExpertise.Items[i].Selected==true )
{
areaexpertise = areaexpertise + chkAreaOfExpertise.Items[i].Value + ",";
}
}
bt it doesnt work
if (chkAreaOfExpertise.Items[i].Selected==true ) never succeed
plz help
|
|
|
|
|
hi
try with
for (int i = 0; i < ChkListCustomerLevel.Items.Count; i++)
{
if (ChkListCustomerLevel.Items[i].Selected)
{
Customer += ChkListCustomerLevel.Items[i].Value + ",";
}
}
-- modified at 3:58 Thursday 20th September, 2007
Jintal Patel
|
|
|
|
|
I'm receiving this error when I publish the site.
"Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. "
what should I do?
BiG RaLpH
|
|
|
|
|
Hi!
Are you getting this error while publishing your files or while trying to run the site.
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
how to create & modify .dll in asp.net 2.0?
|
|
|
|
|
Create a project of type "Class library" and add your code. Visual studio will generate the DLL in the "bin" folder of your application on successful build. Any changes made prior to a rebuild will be included in the modified DLL.
Hope this helps.
Carpe Diem
Krg
|
|
|
|
|
Hi,
I have two buttons on a javascript alert box 'yes'and'no'. How can I capture the event when any of the button is clicked
thank you
|
|
|
|
|
function aa(id)
{
return confirm("Are you sure you want to delete this entry?")
}
onclick='return aa();'
i think dis ll help u
|
|
|
|
|
Hi,
I am uploading image using FileUpload Control and displaying the uploaded image into the Image Control.
If I upload Image Except C:/ drive then it work properly .why this happen
Jintal Patel
|
|
|
|