Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    New Coder
    Join Date
    Sep 2011
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Cannot find content to edit :(

    Hi, I'm totally new to CSS and I need to edit a CONTENT of our login page portal. http://69.165.170.20/ccWeb/login.aspx

    I'm using firefox/firebug to view the contents but i can't seem to find the exact html file to edit it. I tried to edit the login.aspx file but I cannot find the contents to edit there. All I see is runat="server" if i follow my page using "view code" in my browser instead of the actual TEXTS that i need to edit.

    Attached is the page I need to edit and highlighted in BLUE is the one I need to change.



    Hope someone can help me on this.

    TIA!

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,695
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Well, there’s no way for us to tell you how to edit that text because we don’t know where it’s stored. Apparently it’s either stored in a database or – what I actually suspect – in some language file somewhere. If you have FTP access and the application isn’t too big you could download it and then do a multi-file search for that string (or a part of it) and see where it is.

  • #3
    New Coder
    Join Date
    Sep 2011
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    Well, there’s no way for us to tell you how to edit that text because we don’t know where it’s stored. Apparently it’s either stored in a database or – what I actually suspect – in some language file somewhere. If you have FTP access and the application isn’t too big you could download it and then do a multi-file search for that string (or a part of it) and see where it is.
    i actually searched all files in my inetpub directory but i didn't find the TEXTS i want to edit..

  • #4
    New Coder
    Join Date
    Aug 2011
    Posts
    23
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Hi,

    Maybe try showing your login.aspx markup and code to maybe help you deduce where it's living.

  • Users who have thanked chaule for this post:

    michibahn (09-28-2011)

  • #5
    New Coder
    Join Date
    Sep 2011
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chaule View Post
    Hi,

    Maybe try showing your login.aspx markup and code to maybe help you deduce where it's living.
    Hi, can you help me how to do this? is there any special software to display the markup code? thanks!

  • #6
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,695
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Well, you surely have some kind of code/text editor, don’t you? Open that file in such an editor and paste the code here.

  • Users who have thanked VIPStephan for this post:

    michibahn (09-29-2011)

  • #7
    New Coder
    Join Date
    Sep 2011
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    Well, you surely have some kind of code/text editor, don’t you? Open that file in such an editor and paste the code here.
    hi thanks for your reply. here's the exact contents of the login.aspx file.

    Code:
    <%@ Page trace="false" Language="vb" AutoEventWireup="false" Codebehind="login.aspx.vb" Inherits="CCWEB3._0.Login" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    	<HEAD>
    		<title>Online Order Login</title>
    		<meta content="False" name="vs_showGrid">
    		<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
    		<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
    		<meta content="JavaScript" name="vs_defaultClientScript">
    		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    		<LINK href="ccweb3.css" type="text/css" rel="stylesheet">
    		<script language="javascript">
    		function Loadfocus() {
    			if (document.Form1.AccNo.value.length > 0)
    				document.Form1.Passwd.focus();
    			else
    				document.Form1.AccNo.focus();
    		}
    		</script>
    	</HEAD>
    	<body MS_POSITIONING="FlowLayout" onload="Loadfocus();">
    		<br>
    		<br>
    		<form id="Form1" method="post" runat="server">
    			<table cellSpacing="2" cellPadding="2" width="500" align="center" border="0">
    				<tr>
    					<td rowSpan="3"><IMG src="images/login.jpg">
    					</td>
    					<td vAlign="top" colSpan="2"><asp:label id="lblErrLogin" runat="server"></asp:label></td>
    				</tr>
    				<tr>
    					<td colspan="2">
    						<asp:ValidationSummary DisplayMode="BulletList" ShowSummary="False" ShowMessageBox="True" Runat="server" HeaderText="Please correct the following errors:" id="ValidationSummary1"></asp:ValidationSummary>
    						<asp:RequiredFieldValidator Runat="server" Display="None" ControlToValidate="AccNo" ErrorMessage="Enter an Account Number" id="RequiredFieldValidator1"></asp:RequiredFieldValidator>
    						<asp:RequiredFieldValidator Runat="server" Display="None" ControlToValidate="UserID" ErrorMessage="Enter a User ID" id="RequiredFieldValidator2"></asp:RequiredFieldValidator>
    						<asp:RequiredFieldValidator Runat="server" Display="none" ControlToValidate="Passwd" ErrorMessage="Enter a Password" id="RequiredFieldValidator3"></asp:RequiredFieldValidator>
    						<asp:RegularExpressionValidator ValidationExpression="[0-9]+" Runat="server" Display="None" ControlToValidate="AccNo" ErrorMessage="Account Number must be numeric" ID="RegularExp1"></asp:RegularExpressionValidator>
    					</td>
    				</tr>
    				<tr>
    					<td>
    						<table cellSpacing="2">
    							<tr>
    								<td><asp:label id="lblAccNo" CssClass="maintext" runat="server"></asp:label></td>
    								<td><asp:textbox Width="150px" id="AccNo" runat="server"></asp:textbox></td>
    							</tr>
    							<tr>
    								<td><asp:label id="lblUserID" CssClass="maintext" runat="server"></asp:label></td>
    								<td><asp:textbox Width="150px" id="UserID" runat="server"></asp:textbox></td>
    							</tr>
    							<tr>
    								<td><asp:label id="lblPassword" CssClass="maintext" runat="server"></asp:label></td>
    								<td><asp:textbox Width="150px" id="Passwd" runat="server" TextMode="Password"></asp:textbox></td>
    							</tr>
    						</table>
    						<asp:Label Runat=server Visible=False Enabled=False ID="lblLanguage"></asp:Label>
    						<div align="right"><asp:label id="lblSaveCookie" CssClass="maintext" runat="server"></asp:label><asp:checkbox id="chkSaveCookie" runat="server"></asp:checkbox><br>
    							<br>
    							<asp:imagebutton id="ImageButton1" runat="server"></asp:imagebutton></div>
    					</td>
    				</tr>
    				<tr>
    					<td colSpan="2">
    						<asp:Label Visible=False id="lblBrowser" CssClass="errorText" runat="server"></asp:Label></td>
    				</tr>
    			</table>
    			<br>
    			<br>
    		</form>
    		<!-- #INCLUDE FILE="incFooter.aspx" -->
    		<br>
    		<span class="legal">V3.1.1</span>
    	</body>
    </HTML>

  • #8
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by michibahn View Post
    hi thanks for your reply. here's the exact contents of the login.aspx file.

    Code:
    <%@ Page trace="false" Language="vb" AutoEventWireup="false" Codebehind="login.aspx.vb" Inherits="CCWEB3._0.Login" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    	<HEAD>
    		<title>Online Order Login</title>
    		<meta content="False" name="vs_showGrid">
    		<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
    		<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
    		<meta content="JavaScript" name="vs_defaultClientScript">
    		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    		<LINK href="ccweb3.css" type="text/css" rel="stylesheet">
    		<script language="javascript">
    		function Loadfocus() {
    			if (document.Form1.AccNo.value.length > 0)
    				document.Form1.Passwd.focus();
    			else
    				document.Form1.AccNo.focus();
    		}
    		</script>
    	</HEAD>
    	<body MS_POSITIONING="FlowLayout" onload="Loadfocus();">
    		<br>
    		<br>
    		<form id="Form1" method="post" runat="server">
    			<table cellSpacing="2" cellPadding="2" width="500" align="center" border="0">
    				<tr>
    					<td rowSpan="3"><IMG src="images/login.jpg">
    					</td>
    					<td vAlign="top" colSpan="2"><asp:label id="lblErrLogin" runat="server"></asp:label></td>
    				</tr>
    				<tr>
    					<td colspan="2">
    						<asp:ValidationSummary DisplayMode="BulletList" ShowSummary="False" ShowMessageBox="True" Runat="server" HeaderText="Please correct the following errors:" id="ValidationSummary1"></asp:ValidationSummary>
    						<asp:RequiredFieldValidator Runat="server" Display="None" ControlToValidate="AccNo" ErrorMessage="Enter an Account Number" id="RequiredFieldValidator1"></asp:RequiredFieldValidator>
    						<asp:RequiredFieldValidator Runat="server" Display="None" ControlToValidate="UserID" ErrorMessage="Enter a User ID" id="RequiredFieldValidator2"></asp:RequiredFieldValidator>
    						<asp:RequiredFieldValidator Runat="server" Display="none" ControlToValidate="Passwd" ErrorMessage="Enter a Password" id="RequiredFieldValidator3"></asp:RequiredFieldValidator>
    						<asp:RegularExpressionValidator ValidationExpression="[0-9]+" Runat="server" Display="None" ControlToValidate="AccNo" ErrorMessage="Account Number must be numeric" ID="RegularExp1"></asp:RegularExpressionValidator>
    					</td>
    				</tr>
    				<tr>
    					<td>
    						<table cellSpacing="2">
    							<tr>
    								<td><asp:label id="lblAccNo" CssClass="maintext" runat="server"></asp:label></td>
    								<td><asp:textbox Width="150px" id="AccNo" runat="server"></asp:textbox></td>
    							</tr>
    							<tr>
    								<td><asp:label id="lblUserID" CssClass="maintext" runat="server"></asp:label></td>
    								<td><asp:textbox Width="150px" id="UserID" runat="server"></asp:textbox></td>
    							</tr>
    							<tr>
    								<td><asp:label id="lblPassword" CssClass="maintext" runat="server"></asp:label></td>
    								<td><asp:textbox Width="150px" id="Passwd" runat="server" TextMode="Password"></asp:textbox></td>
    							</tr>
    						</table>
    						<asp:Label Runat=server Visible=False Enabled=False ID="lblLanguage"></asp:Label>
    						<div align="right"><asp:label id="lblSaveCookie" CssClass="maintext" runat="server"></asp:label><asp:checkbox id="chkSaveCookie" runat="server"></asp:checkbox><br>
    							<br>
    							<asp:imagebutton id="ImageButton1" runat="server"></asp:imagebutton></div>
    					</td>
    				</tr>
    				<tr>
    					<td colSpan="2">
    						<asp:Label Visible=False id="lblBrowser" CssClass="errorText" runat="server"></asp:Label></td>
    				</tr>
    			</table>
    			<br>
    			<br>
    		</form>
    		<!-- #INCLUDE FILE="incFooter.aspx" -->
    		<br>
    		<span class="legal">V3.1.1</span>
    	</body>
    </HTML>
    Ok, from where did you copy this code? Did you open this page in notepad? or dreamweaver? or did you right click your page in a browser and click view source?
    Teed

  • #9
    New Coder
    Join Date
    Sep 2011
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by teedoff View Post
    Ok, from where did you copy this code? Did you open this page in notepad? or dreamweaver? or did you right click your page in a browser and click view source?
    I opened the login.aspx file using ultraedit. If I do a right-click and view source in my browser, I can see the texts the I need to edit which is the "Welcome to VEGAS LOGISTIC SERVICES INC."
    Last edited by michibahn; 09-29-2011 at 03:30 PM.

  • #10
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,695
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    OK, the location of the text is in:
    Code:
    <td vAlign="top" colSpan="2"><asp:label id="lblErrLogin" runat="server"></asp:label></td>
    Now, I’m not really familiar with ASP.NET or whatever this is but the text is retreived from somewhere, i. e. somewhere there is a label defined with the ID “lblErrLogin”. At line 1 of your file I read Codebehind="login.aspx.vb". What’s in that file?

    I guess this thread should rather be moved to the ASP.NET forum (which I’ve done now).

  • #11
    New Coder
    Join Date
    Sep 2011
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    OK, the location of the text is in:
    Code:
    <td vAlign="top" colSpan="2"><asp:label id="lblErrLogin" runat="server"></asp:label></td>
    Now, I’m not really familiar with ASP.NET or whatever this is but the text is retreived from somewhere, i. e. somewhere there is a label defined with the ID “lblErrLogin”. At line 1 of your file I read Codebehind="login.aspx.vb". What’s in that file?

    I guess this thread should rather be moved to the ASP.NET forum (which I’ve done now).
    you are correct. the text location should be in that line but it is not there unfortunately. also I cannot find the login.aspx.vb file anywhere in my entire hosting server hdd

  • #12
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,753
    Thanks
    41
    Thanked 191 Times in 190 Posts
    i don't k now what IDE you are using but i use visual studio 2010... you can download visual studio express i think for free...
    anyways if you are looking at your solution navigate to the webform
    the webform will have a name of "login.aspx"
    then there should be an expansion tree and you should have login.aspx.vb and login.aspx.designer.vb (i assume the vb's are correct; i do C# so mine are all .cs)... anywyas need to see that form... i wouldnt post it public though because then the entire world will be able to see your second tier code

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • #13
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,753
    Thanks
    41
    Thanked 191 Times in 190 Posts
    as a side note... if all you need is to add styling to it the proper way to apply style to an asp object is
    Code:
    <asp:label ID="lbl_demoLabel" runat="server" CssClass="demoClass">
    and in a lot of cases you can use normal CSS
    Code:
    <asp:label ID="lbl_demoLabel" runat="server" class="demoClass">
    but i don't really know what you are trying to do

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • #14
    New Coder
    Join Date
    Sep 2011
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by alykins View Post
    as a side note... if all you need is to add styling to it the proper way to apply style to an asp object is
    Code:
    <asp:label ID="lbl_demoLabel" runat="server" CssClass="demoClass">
    and in a lot of cases you can use normal CSS
    Code:
    <asp:label ID="lbl_demoLabel" runat="server" class="demoClass">
    but i don't really know what you are trying to do
    hi.. I just need to edit the word VEGAS in the page that I'm trying to work on. So I need to open the login.aspx file using Visual Studio? thanks a lot for your help.

  • #15
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,753
    Thanks
    41
    Thanked 191 Times in 190 Posts
    what do you mean "edit" it? like style it or make the word different?
    that will be more in depth... you will need to open the code behind file (login.aspx.vb) and look for their error handler (i assume since the label is named loginerr...)
    look for try/catches
    see a reference for what it would look like here

    Edit: it should be in the catch block by the way

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •