|
First thanks 4 reply
Is your masterpage in a different folder? no
all my files at root path
MasterPage.master
style.css
DefaultInMaster.aspx
Default.aspx
i was solved this problem by delete the strike lines in master page
CSS File
<br />
.clear {<br />
clear: both;<br />
height: 1px;<br />
padding-top: 0;<br />
margin-top: 0;<br />
margin-bottom: 0;<br />
font-size: 1px;<br />
line-height: 1px;<br />
}<br />
<br />
* html .clear {<br />
margin-top: -5px;<br />
margin-bottom: -4px;<br />
}<br />
MasterPage
<%@ Master Language="VB" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head id="Head1" runat="server" ><br />
<title>Beauty company - Free Website Templates</title><br />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><br />
<link rel="stylesheet" href="style.css" type="text/css" media="screen" /><br />
</head><br />
<br />
<body><br />
<form id="form1" runat="server"><br />
<div><br />
</div><br />
<div id="wrapper" style="width: 739px; right: 0px; top: 0px;"><br />
<h1><a href="#"><img src="images/logo.gif" width="212" height="47" alt="Beauty Company" /></a> </h1><br />
<ul id="nav"><br />
<li class="first"><a href="#" style="width: 125%">Main</a></li><br />
<li><a href="#">Products</a></li><li><a href="#">Partners</a></li><br />
<li><a href="#">Contact us</a></li><br />
<li><a href="#">Europe & US</a></li><br />
</ul><br />
<div class="clear"><br />
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server"><br />
<br />
</asp:contentplaceholder><br />
</div><br />
<!-- end searches --><br />
<div id="body"><br />
<!-- end highlights --><!-- end right --><!-- end beauty --> <br />
<div class="clear"></div><br />
</div><!-- end body --><br />
<div id="footer"><br />
Web design by <a href="#">Free Website Templates</a><br />
</div><!-- end footer --><br />
</div><!-- end wrapper --><br />
</form><br />
</body><br />
</html>
thanks a lot Eduard Keilholz
thanks a lot Abhijit Jana
modified on Thursday, July 31, 2008 8:53 AM
|
|
|
|
|
You have to set StyleSheetTheme in ContentPlace Holder also
cheers,
Abhijit
|
|
|
|
|
Hello All,
I'm truly hoping that someone here can provide me an answer to this one. I have a CompositeControl created in Visual Web Developer 2008, to which I want to add Design-Time support for a DateTime property. Currently, the property shows up in the Properties editor for the control as just a text field. What I would prefer is to have it editable in the designer via a DateTimePicker (similar to the date fields in the properties for the Calendar control). This is what I have thus far:
[
Category(Behavior),
Browsable(true),
TypeConverter(typeof(DateTimeConverter),
Editor(typeof(DateTimeEditor), typeof(UITypeEditor),
DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)
]
public virtual DateTime ExpirationDate
{
get { return expirationDate; }
set { expirationDate = value; }
}
Thanks a million,
Lennie
|
|
|
|
|
I am using the AJAX tab control and have two tab pages. The problem is that when I am on the 2nd tab page, and want to remain there, after a postback I am returned to the first tab page. Now, in the control that is causing the postback I have a hooked event that when fired manually sets the tab index back to the second tab page (TabContainer.TabIndex = 1). This does not work. Has anyone run into the same problem and come up with a fix?
Thanks,
Steve
|
|
|
|
|
I have built a report and would like the Date and Time to appear in the report by default whenever the report is ran.
Is there somewhere in the .rdlc or somewhere else that you can add something that causes this to happen?
Thanks,
macca
|
|
|
|
|
i am creating a appraisal form and i need to right a client side code that will auto-update on the client side to reflect changes before saving it to the database, i know it can be done using javascript.
here my fields
kra_value
agreed_target_dist
weighted_target
rating
kra_score
weighted_target = kra_value * agreed_target_dist
kra_score = weighted_target * rating
the two fields being calculated should be read-only and values should be reflected before being saved to the database.
Any help as soon as possible will be greatly appreciated, thanks in advance
Ferron
|
|
|
|
|
What you need to do is have some event handler. The auto-updating will be fired by some event (click of button, entry into text field, getting or losing focus...)
then in the event handler calculate what you need and update the page accoringly.
Here is some more help ^
Yusuf
|
|
|
|
|
hi all
i have a gridview which shows the list of all users in my site. I have added view to each row. I have added a link button for this.
On clicking this view i want to show a popup which shows the details of each user. i dont want to open a new window for this. I want to show this using a div popup.
i have written javascript to make a div visible and invisible. But to fill the details in this div i need to run server side script. How can i do this without refreshing the grid.
grid is placed inside a update panel
Hope you understood my requirement
thanks in advance
|
|
|
|
|
Hey all,
Am trying to use the global.asax file to handle any unhandled exceptions.
I want it to do 2 things, log the error to a text file from a class and redirect the user to an error page.
I'm sure I've done it before, but can't find my old code. This is what I'm using now:
void Application_Error(object sender, EventArgs e)
{
Exception ex = Server.GetLastError().GetBaseException();
string errStr = "Message: - " + ex.Message.ToString() + ", Source: - " + ex.Source.ToString();
ErrorLogger.WriteErrorToFile(errStr);
Response.Redirect("~/Error.aspx");
}
The event fires, but when I call my class it ignores that and the redirect and shows the original error on the page. If I take out the class call it does redirect, but I want a log of what happened. (the class writes the error to a text file using a streamwriter).
Anyone have an inkling as to why this isn't working?
The global files being generated by VS2005 for .net 2.0 if that helps
thanks in advance
Mark
|
|
|
|
|
You could try to clear the error after you handle it in your ErrorLogger, like so:
void Application_Error(object sender, EventArgs e)
{
Exception ex = Server.GetLastError().GetBaseException();
string errStr = "Message: - " + ex.Message.ToString() + ", Source: - " + ex.Source.ToString();
ErrorLogger.WriteErrorToFile(errStr);
Server.ClearError();
Response.Redirect("~/Error.aspx");
}
Fernando Mendes
Senior .NET Developer, Architect
|
|
|
|
|
Thanks for the reply, it didn't help, but I did find the cause.
My dev environment wasn't debugging properly, it couldn't find the error log file so was skipping the rest of the steps in the Application_Error.
Thanks again
|
|
|
|
|
Hi, I have the following code:
Label lb1 = new Label();
lb1.Text = "test";
but this isnt displaying on my page
I know this is very simple, think my brain has gone dead today!!
thanks guys.
|
|
|
|
|
Think it may be because your label needs and id?
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
here is your code.
Label mylable = new Label();
mylable.Text = "test";
this.Controls.Add(mylable);
|
|
|
|
|
|
drag a placeholder and assign the parent property of label to placeholder
|
|
|
|
|
Hello everyone.
I have an asp.net page with a gridview control bound to an access data source. The data source has session parameters for the select statement. I provided a "Next" button so the user can proceed to another section of the web application and fill out another section of whatever form they are filling out.
The way I set it up is I have only 1 page. The "Next" button changes the session variables which obviously causes the datasource to select different data,i.e. After clicking "Next", the user now sees data from section 2 of the application instead of section 1 after the postback.
The problem I am having is once I update records from section 1 and proceed to the next section, every single record in the table is updated with the same entry. It's as if it was connected to all the records even though I queried only a few.
Can anyone tell me why this is happening and maybe some ideas on fixing it?
Thanks,
|
|
|
|
|
UPDATE: I realized I didn't have a WHERE clause in the UPDATE statement. However, the problem is my WHERE clause makes it so that no records are updated at all (even the ones I want to update). This is the same WHERE clause used in the select query so I am not sure why this would happen either.
|
|
|
|
|
Code in page:
<asp:accessdatasource id="DS1" runat="server" datafile="~/App_Data/ETS.mdb" xmlns:asp="#unknown">
SelectCommand="SELECT ItemName, [Input], TimeOfInput, [User] FROM Turnovers WHERE (ChklstID = ?) AND (SecID = ?)"
UpdateCommand="UPDATE Turnovers SET [Input] = ? WHERE (ChklstID = ?) AND (SecID = ?)">
<UpdateParameters>
<asp:SessionParameter Name="Checklist" SessionField="Checklist" Type="Int32" />
<asp:SessionParameter Name="Section" SessionField="CurrentSection" Type="Int32" />
</UpdateParameters>
<SelectParameters>
<asp:SessionParameter Name="Checklist" SessionField="Checklist" Type="Int32" />
<asp:SessionParameter Name="Section" SessionField="CurrentSection" Type="Int32" />
</SelectParameters>
</asp:AccessDataSource></asp:accessdatasource>
Code Behind file:
Protected Sub NextSec_Click(ByVal sender As Object, ByVal e As EventArgs) Handles NextSec.Click
If Session.Item("CurrentSection") <> 10 Then
Session.Item("CurrentSection") += 1
End If
End Sub
Protected Sub PrevSec_Click(ByVal sender As Object, ByVal e As EventArgs) Handles PrevSec.Click
If Session.Item("CurrentSection") <> 1 Then
Session.Item("CurrentSection") -= 1
End If
End Sub
Someone please answer...
|
|
|
|
|
Dear All,
I'm cann't connect to a website using IP address Or iis web server name while it is possible to connect using localhost/website name(from my local machine or any machine in the domain)it asks for user name and password to connect and when I give these credentails it doesn't connect too.
I will be gratefull if any knows a solution for this problem.
Best regards,
Hassan Amaar
Hassan Amaar
modified on Wednesday, July 30, 2008 8:27 AM
|
|
|
|
|
Had a similar issue last week. In IIS:
Open the Properties for the website (or virtual folder)
Click Edit next to "Anonymous access and authentication control"
Uncheck "Integrated Windows authentication" at the very bottom of the dialog
Click OK and you should be good to go.
|
|
|
|
|
Hi All
I'm trying to implement some javascript into my asp project but am having difficulty displaying whai need to disply. The code looks as follows:
<script type="text/javascript">
var start = (new Date()).getTime();
var THRESHOLD = 2500;
function speedTest() {
var duration = (new Date()).getTime() - start;
if (duration < THRESHOLD) {
} else {
}
}
</script>
The problem is that i'm not too sure of the code i need to put in the if statement to to display a flash object.
Can anyone please help?
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
first of thnx for all who r answering my questions
now m dealing vd the user controls i have created 3 classes in App_code folder
1----->clsCombo1
public class clsCombo1 : CompositeControl
{
public event System.EventHandler SelectedIndexChanged;
public string CategoryId
{
get
{
//TextBox txt = (TextBox)FindControl("UserName");
//return txt.Text;
DropDownList ddl = (DropDownList)FindControl("CategoryID");
return ddl.Text;
}
set
{
//TextBox txt = (TextBox)FindControl("UserName");
//txt.Text = value;
DropDownList ddl = (DropDownList)FindControl("CategoryID");
string abc = value;
}
}
protected override void CreateChildControls()
{
Panel pnl = new Panel();
DropDownList ddlCategoryID = new DropDownList();
ddlCategoryID.AutoPostBack = true;
ddlCategoryID.SelectedIndexChanged += new EventHandler(ddlCategoryID_SelectedIndexChanged);
ddlCategoryID.Items.Add("a");
ddlCategoryID.Items.Add("a");
Controls.Add(pnl);
//add categoryid row
pnl.Controls.Add(new LiteralControl(""));
pnl.Controls.Add(new LiteralControl("CategoryID:"));
pnl.Controls.Add(new LiteralControl(" | "));
pnl.Controls.Add(ddlCategoryID);
pnl.Controls.Add(new LiteralControl(" | "));
//setup control properties
pnl.Style.Add("background-color", "silver");
pnl.Style.Add("width", "275px");
ddlCategoryID.ID = "CategoryID";
ddlCategoryID.Style.Add("width", "170px");
}
void ddlCategoryID_SelectedIndexChanged(object sender, EventArgs e)
{
if (SelectedIndexChanged != null) SelectedIndexChanged(this, e);
}
}
same way i have created 2 classes which also loads the dropdownlist like this class
now on the web form(TestAllControls .aspx) m writing
public partial class TestAllControls : System.Web.UI.Page
{
protected void Page_Init(object sender, EventArgs e)
{
clsCombo1 p1 = new clsCombo1();
form1.Controls.Add(p1);
p1.SelectedIndexChanged += new EventHandler(p1_SelectedIndexChanged);
}
void p1_SelectedIndexChanged(object sender, EventArgs e)
{
clsCombo1 p1 = (clsCombo1)sender;
Response.Redirect("~/Default.aspx");
clsCombo2 p2 = new clsCombo2();
form1.Controls.Add(p2);
p2.SelectedIndexChanged += new EventHandler(p2_SelectedIndexChanged);
}
void p2_SelectedIndexChanged(object sender, EventArgs e)
{
clsCombo3 p3 = new clsCombo3();
form1.Controls.Add(p3);
p3.SelectedIndexChanged += new EventHandler(p3_SelectedIndexChanged);
}
void p3_SelectedIndexChanged(object sender, EventArgs e)
{
clsCo mbo3 p3 = (clsCombo3)sender;
Response.Redirect("~/Default.aspx");
}
}
what i want 2 do is on the selected index change of 1st dropdwnlist the second dropdoenlist should be loaded n same 4 third one....
but nothing is happening on the selected index change of first one....
can anyone help me....plsss
|
|
|
|
|
Hi all,
I am using crystal report 10 and framework 1.1 to develop a website.
I have created 1 report which contain a company logo image.It is working perfectly on local system,but when I release it on testing environment it doesn't show company logo image on report(other all default images print,crytal logo are visible).
If I export this report to .pdf it display logo image in .pdf file.
Do I need to any access to IIS user or anything else.
Please let me know the solution if anybody have any idea about the same.
Thanks,
Nagraj
|
|
|
|
|
got the same problem any solutıon?
|
|
|
|