|
Try the itextsharp website, they probably have aload of info about their own product.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi all,
I am possibly having some strange issues with my site. It is writtenin in c# .net 2.0.
It is an online shop, where people need to create accounts for purchasing, very standard and as far as I can tell/know everything is working perfectly... with the exception of a few customers a week complaining that they cannot go to a specific page? Whn they are in their shopping basket, they click 'go to checkout', if they're signed in, they're supposed to choose address etc and finish purchase, else be redirected to the customer login page. This I and many others have tested everywhich way we can think of and it works just fine. However, some people are saying that they are being redirected to a different page, though, I cannot confirm this as my average user is not wholey computer literate and is subject to being misleading. The redirect to the 'different location' can only be called by an onclick event so should not be possible from anywhere else (not the go to checkout button).
Is it possible for event to be called by the wrong trigger? and if so how likely is it (like i said, im getting a few a week?) my inclination is to think that the users are not logged in and are badly describing their experience, but if they are correct, it has implications that I could be loosing a number of sales weekly.
I know this is a long post and probably confusing, but I am pulling my hair out trying to find a solution to a problem that I cant recreate myself?
Any suggestions would be really really apprecated, and thanks for taking the time to read and reply.
Mark
|
|
|
|
|
mark
If they are in the basket but not logged in and try to go to checkout, do they get redirected to the login page?
If they do and they have then logged in, does it redirect back to the correct page or do they have to navigate through the website back to the basket?
We are not a Code Charity
|
|
|
|
|
Whn in the basket when they click continue, if they are not logged in, they are redirected to the customer login page, else they may continue to payment.
I have just spoken to a customer and we went through everything together, step by step. it was working for me (using her details) and not for her, we cleared her cache etc while on the phone. It then transpired she was using autocomplete to fill in the email address, this is then filling out a second email textbox used to sign up for a news letter. On submitting the form, the app is seeing that the newsletter field is filled in and redirecting to that page instead of my lgin details being submited.
How do I turn off autocomple on these fields as this is obviously something which i don't want happening? If i set it to disabled on idividual elements, does that mean it can never be filled in by an auto filler?
Thanks for your replies, they are both much appreciated
Mark
|
|
|
|
|
Nice to hear that you got the issue. But AFAIK, you can't turn off the auto complete feature since it depends on the browser.
markymark82 wrote: On submitting the form, the app is seeing that the newsletter field is filled in and redirecting to that page instead of my lgin details being submited.
How about putting a checkbox and application should signup for newsletter only when the checkbox is checked. So you can avoid such problems.
|
|
|
|
|
markymark82 wrote: Is it possible for event to be called by the wrong trigger?
I don't think so.
Log the Referrer value in the page which they are redirected. As you said, there is only one known chance to redirect to this page. So when you look into the log report, you can easily identify the URL's that are not known to you but taken user to this page. Use the same URL with same query string and try to recreate the problem. If you can log the current user, then you can login into his account and try your luck.
|
|
|
|
|
Thanks for the thought but it looks like I've found the problem (see above) and now I just have to find a suitable way round it.
Thanks again,
Mark
|
|
|
|
|
i am doing a project i.e. "message board" which is in "ASP.NET with C#'.i have a problem in it that in main forum.aspx i have used a DB Grid control.Here in the Grid i have to show the groups name.And after clicking each group name ,related topic of each group should be displayed.Can anybody tell me how can i do this or tell me the complete code of it.
|
|
|
|
|
|
Hi
I need to use timer control in asp.net but there is no timer control in toolbox as in vb.net.
So Please give ur guidance
Thanks with anticaption
The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth
|
|
|
|
|
AJAX toolkit has a timer control. Do you mean that ? To get it you need reference to AJAX toolkit and your server should have AJAX extensions installed.
|
|
|
|
|
using System.Timers;
You can work with Timer object.
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
Thanks to both of U
I used message box in system.timers n after stop the run state of application still messagebox is prompt, I don't know why???
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
|
|
|
|
|
Are you showing message MessageBox.Show("...") by this method ?
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
Yes i tried
MsgBox("Ok")
Just for test the elapsed event wether it is fire or not..
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
|
|
|
|
|
|
You are totally lost. Winforms timer controls is different from what you are trying to do. You need to refresh the page/execute some code in a given interval, right ? Go with AJAXToolkit's Timer control then. You could also do this manually by using setTimeOut() javascript method.
|
|
|
|
|
You can use Ajax Timer Control or use Javascript.
|
|
|
|
|
Thanks to all for response
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
|
|
|
|
|
Hi,
I am currently wanted to include my master page into a page that do not include master page initially. I'd tried this code,
protected override void OnPreInit(EventArgs e)
{
this.MasterPageFile = "~/Main.master";
base.OnPreInit(e);
}
but run into this error
Content controls have to be top-level controls in a content page or a nested master page that references a master page
What I am trying to do is to include a master page into the web page during run time as I only wanted the master page to be included when certain criteria is met.
I'd look around the net but still don't get it what went wrong, hope I can get some idea from here.
Thanks.
|
|
|
|
|
Can you post here .aspx code ?
Please make sure, do not put any controls out side the Content place holder and set property runat server.
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
Here's the aspx page
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeFile="E06-Employee.aspx.cs" Inherits="E04_Employee" %>]]>
<![CDATA[
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>E06-Employee</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:scriptmanager id="ScriptManager1" runat="server">
</asp:scriptmanager>
<asp:textbox id="txtCompId" runat="server" visible="False"></asp:textbox>
<cc1:tabcontainer id="TabContainer1" runat="server" activetabindex="0" font-names="Arial">
font-size="Small"><cc1:tabpanel runat="server" headertext="TabPanel1" id="TabPanel1"><contenttemplate>
<br /><asp:button id="btnNewEmp" runat="server" text="New Employee"></asp:button><br />
<asp:gridview id="GridView1" runat="server" font-names="Arial" font-size="Small" datakeynames="empId,lup_CompanycpyId" autogeneratecolumns="False" emptydatatext="There are no data records to display." datasourceid="SqlEmployee" allowpaging="True" allowsorting="True" pagesize="20" width="753px" backcolor="White" bordercolor="#E7E7FF" borderstyle="None" borderwidth="1px" cellpadding="3" gridlines="Horizontal" onrowdatabound="GridView1_RowDataBound">
<footerstyle backcolor="#B5C7DE" forecolor="#4A3C8C"></footerstyle>
<columns>
<asp:boundfield readonly="True" datafield="empId" visible="False" sortexpression="empId" headertext="empId"></asp:boundfield>
<asp:hyperlinkfield datanavigateurlfields="empId,lup_CompanycpyId" datanavigateurlformatstring="~/E0601-NewEmployee.aspx?empid={0}&compid={1}&update=1">
DataTextField="empName" HeaderText="Name" NavigateUrl="~/E0601-NewEmployee.aspx?empid={0}&update=1&compid={1}&option=employee"
SortExpression="empName" Target="_blank" />
<asp:boundfield datafield="empEmpNo" sortexpression="empEmpNo" headertext="Employee No."></asp:boundfield>
<asp:boundfield datafield="empEmail" visible="False" sortexpression="empEmail" headertext="empEmail"></asp:boundfield>
<asp:boundfield datafield="empPwd" visible="False" sortexpression="empPwd" headertext="empPwd"></asp:boundfield>
<asp:boundfield datafield="empJoinDt" visible="False" sortexpression="empJoinDt" headertext="empJoinDt"></asp:boundfield>
<asp:boundfield datafield="empLeaveDt" visible="False" sortexpression="empLeaveDt" headertext="empLeaveDt"></asp:boundfield>
<asp:boundfield datafield="empRpt1" visible="False" sortexpression="empRpt1" headertext="empRpt1"></asp:boundfield>
<asp:boundfield datafield="empRpt2" visible="False" sortexpression="empRpt2" headertext="empRpt2"></asp:boundfield>
<asp:checkboxfield datafield="empStat" sortexpression="empStat" headertext="Active/Inactive"></asp:checkboxfield>
<asp:boundfield datafield="empTitle" sortexpression="empTitle" headertext="Title"></asp:boundfield>
<asp:boundfield datafield="empUrl" visible="False" sortexpression="empUrl" headertext="empUrl"></asp:boundfield>
<asp:templatefield headertext="Department" sortexpression="lup_DeptdptId">
<edititemtemplate>
<asp:textbox id="TextBox1" runat="server" text=""><![CDATA['></asp:textbox>
</edititemtemplate>
<itemtemplate>
<asp:label id="Label1" runat="server" text=""><![CDATA[' Visible="False"></asp:label>
<asp:label id="lblDept" runat="server"></asp:label>
</itemtemplate>
</asp:templatefield>
<asp:templatefield headertext="Status" sortexpression="lup_StaffStatsstId">
<edititemtemplate>
<asp:textbox id="TextBox2" runat="server" text=""><![CDATA['></asp:textbox>
</edititemtemplate>
<itemtemplate>
<asp:label id="Label2" runat="server" text=""><![CDATA[' Visible="False"></asp:label>
<asp:label id="lblStat" runat="server"></asp:label>
</itemtemplate>
</asp:templatefield>
<asp:templatefield headertext="Leave Group" sortexpression="lup_SalaryGrpsgpId">
<edititemtemplate>
<asp:textbox id="TextBox3" runat="server" text=""><![CDATA['></asp:textbox>
</edititemtemplate>
<itemtemplate>
<asp:label id="Label3" runat="server" text=""><![CDATA[' Visible="False"></asp:label>
<asp:label id="lblLeaveGrp" runat="server"></asp:label>
</itemtemplate>
</asp:templatefield>
<asp:boundfield datafield="lup_CompanycpyId" visible="False" sortexpression="lup_CompanycpyId" headertext="lup_CompanycpyId"></asp:boundfield>
<asp:boundfield datafield="lup_ApproveTypeapvId" visible="False" sortexpression="lup_ApproveTypeapvId" headertext="lup_ApproveTypeapvId"></asp:boundfield>
<asp:templatefield showheader="False">
<itemtemplate>
<asp:linkbutton id="LinkButton1" runat="server" causesvalidation="False" commandname="Delete">
Text="Delete" OnClientClick="javascript:return confirm('Are you sure you want to delete this record?');"></asp:linkbutton>
</itemtemplate>
</asp:templatefield>
</asp:hyperlinkfield></columns>
<rowstyle backcolor="#E7E7FF" forecolor="#4A3C8C"></rowstyle>
<selectedrowstyle backcolor="#738A9C" forecolor="#F7F7F7" font-bold="True"></selectedrowstyle>
<pagerstyle backcolor="#E7E7FF" forecolor="#4A3C8C" horizontalalign="Right"></pagerstyle>
<headerstyle backcolor="#4A3C8C" forecolor="#F7F7F7" font-bold="True" horizontalalign="Left"></headerstyle>
<alternatingrowstyle backcolor="#F7F7F7"></alternatingrowstyle>
</asp:gridview>
</contenttemplate>
<headertemplate>
Employee List
</headertemplate>
</cc1:tabpanel>
</cc1:tabcontainer>
<asp:button id="btnBack" runat="server" text="Back" />
<asp:button id="btnDone" runat="server" text="Done" onclick="btnDone_Click" width="98px" /><br />
<asp:sqldatasource id="SqlEmployee" runat="server" connectionstring=""><![CDATA["
DeleteCommand="DELETE FROM [emp_Employee] WHERE [empId] = @empId" InsertCommand="INSERT INTO [emp_Employee] ([empId], [empName], [empEmail], [empPwd], [empEmpNo], [empJoinDt], [empLeaveDt], [empRpt1], [empRpt2], [empStat], [empTitle], [empUrl], [lup_DeptdptId], [lup_StaffStatsstId], [lup_SalaryGrpsgpId], [lup_CompanycpyId], [lup_ApproveTypeapvId]) VALUES (@empId, @empName, @empEmail, @empPwd, @empEmpNo, @empJoinDt, @empLeaveDt, @empRpt1, @empRpt2, @empStat, @empTitle, @empUrl, @lup_DeptdptId, @lup_StaffStatsstId, @lup_SalaryGrpsgpId, @lup_CompanycpyId, @lup_ApproveTypeapvId)"
ProviderName="<%$ ConnectionStrings:connString.ProviderName %>" SelectCommand="E06GetEmployee"
UpdateCommand="UPDATE [emp_Employee] SET [empName] = @empName, [empEmail] = @empEmail, [empPwd] = @empPwd, [empEmpNo] = @empEmpNo, [empJoinDt] = @empJoinDt, [empLeaveDt] = @empLeaveDt, [empRpt1] = @empRpt1, [empRpt2] = @empRpt2, [empStat] = @empStat, [empTitle] = @empTitle, [empUrl] = @empUrl, [lup_DeptdptId] = @lup_DeptdptId, [lup_StaffStatsstId] = @lup_StaffStatsstId, [lup_SalaryGrpsgpId] = @lup_SalaryGrpsgpId, [lup_CompanycpyId] = @lup_CompanycpyId, [lup_ApproveTypeapvId] = @lup_ApproveTypeapvId WHERE [empId] = @empId" SelectCommandType="StoredProcedure">
<insertparameters>
<asp:parameter name="empId" type="Int32" />
<asp:parameter name="empName" type="String" />
<asp:parameter name="empEmail" type="String" />
<asp:parameter name="empPwd" type="String" />
<asp:parameter name="empEmpNo" type="String" />
<asp:parameter name="empJoinDt" type="DateTime" />
<asp:parameter name="empLeaveDt" type="DateTime" />
<asp:parameter name="empRpt1" type="Int32" />
<asp:parameter name="empRpt2" type="Int32" />
<asp:parameter name="empStat" type="Boolean" />
<asp:parameter name="empTitle" type="String" />
<asp:parameter name="empUrl" type="String" />
<asp:parameter name="lup_DeptdptId" type="Int32" />
<asp:parameter name="lup_StaffStatsstId" type="Int32" />
<asp:parameter name="lup_SalaryGrpsgpId" type="Int32" />
<asp:parameter name="lup_CompanycpyId" type="Int32" />
<asp:parameter name="lup_ApproveTypeapvId" type="Int32" />
</insertparameters>
<updateparameters>
<asp:parameter name="empName" type="String" />
<asp:parameter name="empEmail" type="String" />
<asp:parameter name="empPwd" type="String" />
<asp:parameter name="empEmpNo" type="String" />
<asp:parameter name="empJoinDt" type="DateTime" />
<asp:parameter name="empLeaveDt" type="DateTime" />
<asp:parameter name="empRpt1" type="Int32" />
<asp:parameter name="empRpt2" type="Int32" />
<asp:parameter name="empStat" type="Boolean" />
<asp:parameter name="empTitle" type="String" />
<asp:parameter name="empUrl" type="String" />
<asp:parameter name="lup_DeptdptId" type="Int32" />
<asp:parameter name="lup_StaffStatsstId" type="Int32" />
<asp:parameter name="lup_SalaryGrpsgpId" type="Int32" />
<asp:parameter name="lup_CompanycpyId" type="Int32" />
<asp:parameter name="lup_ApproveTypeapvId" type="Int32" />
<asp:parameter name="empId" type="Int32" />
</updateparameters>
<deleteparameters>
<asp:parameter name="empId" type="Int32" />
</deleteparameters>
<selectparameters>
<asp:controlparameter controlid="txtCompId" name="lup_CompanycpyId" propertyname="Text">
Type="Int32" />
</asp:controlparameter></selectparameters>
</asp:sqldatasource>
</div>
</form>
</body>
</html>
|
|
|
|
|
Looks like you have some text or control placed outside asp:content tag. When you use master pages, make sure your controls and all other texts in the content page are inside the asp:content tag.
|
|
|
|
|
Ya, I read this about asp:content tag, but what I don't understand is I could not find asp:content tag in any of my page. Sorry this might sound silly, where should this asp:content tag suppose to be in? .master or .aspx?
|
|
|
|
|
It should be in a content page, not in master page.
I got your problem, you are trying to change a master page dynamically in a page where master page is not at all used. Try putting your ASPX page contents into
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content> . Master page should contain body, form and a content placeholder. In your content page, supply the content placeholder id to asp:content's ContentPlaceHolderID property.
Hope this helps
|
|
|
|
|