|
Hello,
I have a menu element on my page, all of it items have the specified CssClass,
but when I create a class for links and visited link in .css menu items also inherit
these styles . Please tell me where I should set the font color to prevent this.
My .css
For menu
.Menu
{
font-family: Arial;
font-size: 14px;
font-weight:bold;
color: #000000;
background-color: #FFFFFF;
}
.MenuDynamicHoverStyle
{
background-color: Gray;
color: #FFFFFF;
}
.MenuDynamicMenuStyle
{
background-color: #FFFFFF;
color: #000000;
}
.MenuDynamicSelectedStyle
{
background-color:Gray;
font-family:Arial;
font-weight: bold;
font-size: 14px;
color: #E0E0E0;
}
.MenuDynamicMenuItemStyle
{
background-color:#FAFAFA;
border-color: #E0E0E0;
border-width: 0.1em;
border-style: solid;
font-family:Arial;
font-size: 12px;
font-weight: bold;
color: #000000;
}
.MenuStaticSelectedStyle
{
background-color: #FFFFFF;
color: #FFFFFF;
}
.MenuStaticHoverStyle
{
background-color:#FFFFFF;
color: #000000;
}
For links
A:visited
{
color: Gray;
}
A:link
{
color: #EF3123;
}
Thanks.
|
|
|
|
|
Sir,
I have created a windows forms control in which I put a DSO Framer control. I have compiled it and registered in GAC. Even
its doing fine when I used it in another windows application. But When I try to put it in a web page its not showing anything
as it is the same thing showing the required word doc in windows application.
Please tell me what are the steps do I need to take to make it fine. Thank you.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
You are asking the same question over and over. I've made some suggestions and you've not responded. Did you take my advice, and it didn't work out for you, or are you still hoping that by doing what didn't work yesterday, over and over, it will start to work just through the passage of time ?
This project was ill advised from day one, as I said to you. Your best bet at this stage, is to go to a contract job site, and offer to pay someone to fix it for you. I don't see how anyone can tell you how to fix it without seeing your code, and spending some time working through the issues.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
No christian you are misunderstanding me, some mistake has been done by me. It is because I couldnt find my question. It was directly going to the last months question. If you want me to delete it I will do it so. But I feel sorry. Unfortunately it happened I am sorry.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Christian shall I give you the code :
1. I put the DSO Framer control in win forms control named as "DSOControl", in that usercontrol_load event,
I put this code 'AxFramerControl1.Open("D:\Aleem\Codes.doc")'.
2. Then I compiled it, registered and installed it in GAC the steps are as follows.
i. Regasm D:\Aleem\DSOControl\Bin\DSOControl.dll
ii. Iladasm /out=[asm file] /unicode D:\Aleem\DSOControl\Bin\DSOControl.dll
iii.Created strong name key pair.
iv. Ilasm /key=[Key file] /dll /out=[dll file] [asmfile]
v. gacutil -i D:\Aleem\DSOControl\bin\DSOControl.dll.
Its giving that assembly installed successfully. Is it mean that my assembly has become a global accessible asmbly? Ok?
3. Now by using references I added this to my Windows application. Its working perfectly. It is showing the specified file in that win appl. I didnt write any code here.
4. Now the same DSOControl.dll file I have referenced from my Web pplication. And to add it on my web form I used obect tag, mentioned its classId as = "http:DSOControl.dll#DSOControl.UserControl1". Its not working.
5. Even I put that dll file in the root directory of this web application. And referred it using htpp and even Console path. Could you please tell me what could be my mistake. Please, I would be very very very...... Thankful to you, please.
Regards,
-- modified at 7:14 Friday 19th January, 2007
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Hi everyone,i'm using GridView for display some details,so i need to allow user's to edit the data GridView it self,so how can i do that using RowCommand Event or is there any easy way to that?,i'm using StoredProcedure for that editing also.
thank you.
|
|
|
|
|
Put the different controls in GridView and in Row command event you will the row index and you can update query for the same.
|
|
|
|
|
I didnt get u freind, can u some explain coding for me
Thanks
|
|
|
|
|
I have used checkbox u can use any control in the same way.
Try the following:
<asp:GridView ID="GridViewForm" DataKeyNames="FormID" runat="server" AutoGenerateColumns="False" Width="100%">
<Columns>
<asp:BoundField DataField="FormID" HeaderText="FormID" Visible=False />
<asp:BoundField DataField="FormName" HeaderText="Form Name">
<ItemStyle HorizontalAlign="Left" Width="150px" />
</asp:BoundField>
<asp:TemplateField HeaderText="Add">
<ItemStyle HorizontalAlign="Center" Width="50px" />
<HeaderStyle Width="70px" />
<ItemTemplate>
<asp:CheckBox ID="chkAdd" runat="server" AutoPostBack=true OnCheckedChanged="chkAdd_Changed"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
On Row Command:
Protected Sub GridViewForm_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridViewForm.RowCommand
Dim gvRow As GridViewRow
For Each gvRow In GridViewForm.Rows
If gvRow.RowType = ListItemType.Item Or gvRow.RowType = ListItemType.AlternatingItem Then
If CType(GridViewForm.FindControl("chkAdd"), CheckBox).Checked Then
CType(GridViewForm.FindControl("chkView"), CheckBox).Checked = True
Else
CType(GridViewForm.FindControl("chkView"), CheckBox).Checked = True
End If
End If
Next
End Sub
Hope this helps u,if not then do reply...
|
|
|
|
|
Thnks freind,i have set the edit thing in gridview in different way,that is i use EditItemIndex into -1 and i check it and i put my primary key into DataKeyField,i need according my ID update the data into database,how can i do that.
|
|
|
|
|
U can write the update query on Row Command event of GridView.
|
|
|
|
|
GridView in SmartTag have option allow editing, you should add column CommandField Edit,Update,Cancel
Also you should specify in SqlDataSource in Update stored procedure.
After that in the grid will appear column with link button Edit. Click it and data in columns with ReadOnly=false will be displayed in textbox.
|
|
|
|
|
Can we access session in custom control.
means if use customer control in web application then that web application session access in custom control.
If yes, then how we can do this ..plz send me code.
-- modified at 3:01 Friday 19th January, 2007
|
|
|
|
|
I have a web application. It has a folder named "data" under the project dir. My web application
creates files in "data" folder. I know in order to create file in "data" folder, aspnet should have permission. For that we have to go to property of the web application folder. There under the tab Security ,press Add button.A form appears Write aspnet to the textbox and press ok.
Then press checkbox to give full control to aspnet user.
It works fine when developing.
My problem is : when I create a web installation package of that application and install it to my
client computer, I have to repeat above procedure.
Is there any way to assign aspnet user full control of the folder "data" ?
I mean without repeating above procedure, could I dynamically/programmatically assign full access over the "data" folder to aspnet user?
Any information is highly appreciated?
Thanks for you valuable comments.
prakash
|
|
|
|
|
There are a couple of options that you can use in a custom action to set the permission to a folder for the ASPNET account:
+ Use the tool cacls.exe
+ Use the DirectorySecurity class.
+ Use WMI.
|
|
|
|
|
Hi
Am using a control of type as 'button' in my web page.
How to make it invisible during page load?
I couldnt find any attribute to make its visibility to 'False'.
Please help me
-- modified at 1:12 Friday 19th January, 2007
|
|
|
|
|
Use any of the CSS styles display:none or visibility:hidden, depending on how you want to hide it.
---
Year happy = new Year(2007);
|
|
|
|
|
Mark the control with runat="server" and you can set the Visible property of the control in code.
|
|
|
|
|
Hi
I got the solution by including the code
document.getElementById("button1").style.visibility = "hidden"
Thanx!
|
|
|
|
|
Hi,
I would like to make recursive function to find the all control in a user control.
I would like to elaborate through example. Let us assume I make a user control and user control contains one web wizard control. Wizard Control contains on data view control and data view contains edit, update and delete button. Now I would like to get all controls ID and Name which are placed on User Control.
Example
foreach (Control ctl in Controls)
{
Response.Write(ctl.ID + " ");
if (ctl.Controls.Count > 0)
{
foreach (Control c in ctl.Controls)
{
Response.Write(c.ID + " ");
if (c.Controls.Count > 0)
{
foreach (Control ct in c.Controls)
{
Response.Write(ct.ID + " ");
if (ct.Controls.Count > 0)
{
foreach (Control cl in ct.Controls)
{
Response.Write(cl.ID + " ");
}
}
}
}
}
}
}
How to write a recursive function fot the above code.
Any help is appricted
Regards,
Rajesh
rajesh
|
|
|
|
|
IMHO, posting the recursive method here does not help you much, here are 2 steps that you can take to master on the issue:
+ Pick up a basic programming book or a tutorial on the web that can teach you on the concept of a recursive method and how to write it, clickety[^]
+ Once you understand recursion, you can go back to your case and try to write it, and now you can post your code if it does not work as you expect.
Last modified: 22mins after originally posted --
|
|
|
|
|
void FindControls(Control parent)
{
foreach (Control ctl in parent.Controls)
{
Response.Write(ctl.ID + " ");
FindControls(ctl);
}
Pretty basic recursion, really.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Thanks for reply Christian Graus.
My problem has been solved by dint of your reply.
Regds
rajesh
|
|
|
|
|
Hi All,
I have to disable right of the Browser.I got the script on net and use that but when I include it in .js file my application doesnot work it shows login screen where right click is disable but when I click login but it doesnt go inside the main page.
Can anyone tell me what is the problem in the script.
Following is the script:
var message="Function Disabled!";
function clickIE4()
{
if (event.button==2)
{
alert(message);
return false;
}
}
function clickNS4(e)
{
if (document.layers||document.getElementById&&!document.all)
{
if (e.which==2||e.which==3)
{
alert(message);
return false;
}
}
}
if (document.layers)
{
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById)
{
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("return false")
Thanks in advance.
|
|
|
|
|
Hi,
I have a chart in Crystal Report & i want to set a Background Image (jpg,gif) exactly behind the chart.I have set the Chart to Transparent Background in the Chart Expert and placed an image on the chart and moved it backward.In Design time / Main Report preview i can see the background image behind the chart but in the browser (on viewing) the background image behind the chart is not visible.
I'm using Crystal Reports for Visual Studio 2005
Does anyone have a solution to this problem.
|
|
|
|