|
I am not sure what menu you are refering to in the link but I assume you want the effect of the "Printer Friendly Version" when the mouse hovers over it.
In order to achieve this you will need to specify the settings in the CSS file.
Create a CSS file and inside the CSS file type the following...
A
{
width:220px;
padding:3px;
font-family:Verdana;
font-size:10px;
font-weight:bold;
color:#555555;
display:block;
border:none;
text-decoration:none;
border:solid 1px #FFFFFF;
}
A:Hover
{
background-color:#c44444;
border:solid 1px #800000;
color:#FFFFFF;
}
What I did here is that I have assigned my own look and feel to the Hyperlink function on a page meaning that if you put a hyperlink on your page named "Home" and the CSS file is linked, then you will get this hover effect.
You can obviously play around with the colour settings and so on.
PLEASE!!! Let me know if this was what you were looking for...
Illegal Operation
|
|
|
|
|
hi all,
I want export the pdf file.and I am using following code.In my system .But an error is displaying like adobe readercould not open 'down.pdf' because it is either not a supported file type or because the file has been damaged...
DataSet Ds = FillGrid2(sessionvalue, cid, cmid, crid, pid, sdate, edate);
Response.Clear();
Response.AppendHeader("Content-Type", "application/pdf");
Response.AppendHeader("Content-disposition", "attachment; filename=Download.pdf");
string str = "<table style='border:1px solid #000000;'>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Client: </b>" + client + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Campaign: </b>" + campaign + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Report Summary</b>" + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td>" + "Type" + "</td>";
str += "<td>" + "Impression" + "</td>";
str += "<td>" + "Clicks" + "</td>";
str += "<td>" + "Start Date" + "</td>";
str += "<td>" + "End Date" + "</td>";
str += "</tr>";
for (int i = 0; i < Ds.Tables[0].Rows.Count; i++)
{
str += "<tr style='border:1px solid #000000;'>";
for (int j = 0; j < Ds.Tables[0].Columns.Count; j++)
{
str += "<td>" + Ds.Tables[0].Rows[i][j].ToString() + "</td>";
}
str += "</tr>";
}
str += "</table>";
Response.Write(str);
If anybody knows please reply me..
thanks...
Raaj
|
|
|
|
|
Hi Everybody,
I wrote one javascript function to close the popup window, while clicking the close button on my popup page(.aspx).But this function asks for confirmation while closing the window.But i don't want any confirmation while closing the window.
Can anyone suggest me regarding this.
Thanks in advance
|
|
|
|
|
u add this one in the source and try
<base target="_self" />
|
|
|
|
|
this is to open new link in same window......
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
Hi Lakshmi where should i add this. Below i gave my code see the code.
close
Thanks in advance.
|
|
|
|
|
u add this code in the popupwindow before form tag
|
|
|
|
|
i don't have form tag for my page because my page has a master page. I put your code in master page but it was not working
|
|
|
|
|
|
Try this
onclick="window.opener=top;window.close();"
Abhishek Sur
|
|
|
|
|
See the code below it will work
in .aspx
function closeWindow()
{
window.open('','_self','');
window.close();
}
|
|
|
|
|
Hi All,
I am developing a datetime picker custom control. I have written a JavaScript library to view dates in a popup window. In the markup of this control I am loading a JSON object which is stored in a hidden field. This JSON object contains some static data like date format and date separator of the control ect. This static data are using to build popup window.
Here I want your expert advice. Are there any security problems in this design? Is it possible to crack JSON object stored in hidden field and smash the control? I can encrypt the JSON object. But the decryption algorithm can only write in JavaScript. So it is easy to trace. Kindly guide me on this issue.
Thanks and regards,
Palli
|
|
|
|
|
yes .. Javascript always have this problem. I think you can use serverside controls to solve this security problems.
Use ICallbackEventHandler to handle callbacks on every event of your html calendar.
actually callbacks works with javascript also. And easier to handle too.
Abhishek Sur
|
|
|
|
|
iam having a grid where there is one checkbox and one text box in each row now how can i
validate using javascript
if the check box is checked then textbox of that particular row of the grid should not be left blank .this should happen when submit button is clicked.
|
|
|
|
|
Load the grid with values in page load with isnot postback
Like
if (!IsPostBack)
{
SqlConnection cn = new SqlConnection("Data Source=<xxxxx>; Initial Catalog=<dbname>;user ID=sa");
SqlCommand cmd = new SqlCommand("Select top 5 [Group] from customerlist WHERE [Group] is not null", cn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds.Tables[0];
GridView1.DataBind();
}
after that in button click event add this code
bool status = false;
for (int i = 0; i < GridView1.Rows.Count; i++)
{
CheckBox chk = (CheckBox)GridView1.Rows[i].Cells[1].FindControl("chk");
TextBox txt = (TextBox)GridView1.Rows[i].Cells[2].FindControl("txt");
if (chk.Checked == true)
if (txt.Text.Trim() == "")
{
status = true;
//return;
}
}
if (status == true)
{
Response.Write("TextValue Sholdn't be blank");
}
else
{
Response.Write("Success");
}
Send me if u've any doubt.It will work
|
|
|
|
|
|
Hi guys i have a string,
it contains a single quote,
i want to remove it,
how to do that?,
This is my string: reddy's
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
try this one
if str.indexof("'")>0 then
str.str.replace("'","")
end if
|
|
|
|
|
Regex.Replace(str, @"[^\w]", "");
is a method available in System.Text.RegularExpressions namespace.
|
|
|
|
|
try this
str.str.Replace("'","");
|
|
|
|
|
|
Hi..
I have a label in footer template in repeater control i want to access this label on submit button's click event in .cs page...
|
|
|
|
|
How can I set the "Title" of a webpart = Page.Title.ToString()?
Currently I have a Label in the ZoneTemplate and everything works but I need the title to change to the page title dynamically.
Thanks!!
Illegal Operation
|
|
|
|
|
Hi there!
I have a WebForm (ASP.NET 2.0) with a textbox and two buttons, one of them (sendButton) to send the textbox's content, and the other one (cancelButton) to cancel the operation.
I need when the user write something in the textbox and then press 'Enter' key, the textbox's content will be sent to the server. (The same thing like if he push the sendButton.)
I have some WebForms with that behavior: 'Enter' key has the same effect like a button, but I don't see difference.
Can somebody help me?
Thank you in advance.
[Adrián Córdoba]
|
|
|
|
|
<asp:textbox id="txtControl" runat="server" onkeydown="if(event.keyCode==13) ButtonName.click(); " xmlns:asp="#unknown"></asp:textbox>
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|