...

View Full Version : Cannot find content to edit :(



michibahn
09-26-2011, 06:04 PM
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.

http://img31.imageshack.us/img31/4131/logindj.jpg (http://imageshack.us/photo/my-images/31/logindj.jpg/)

Hope someone can help me on this.

TIA!

VIPStephan
09-26-2011, 08:38 PM
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.

michibahn
09-27-2011, 04:28 PM
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.. :(

chaule
09-28-2011, 04:09 AM
Hi,

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

michibahn
09-28-2011, 11:06 PM
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!

VIPStephan
09-29-2011, 01:34 AM
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.

michibahn
09-29-2011, 03:46 PM
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.


<%@ 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>

teedoff
09-29-2011, 03:55 PM
hi thanks for your reply. here's the exact contents of the login.aspx file.


<%@ 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?

michibahn
09-29-2011, 04:15 PM
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."

VIPStephan
09-29-2011, 04:42 PM
OK, the location of the text is in:

<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).

michibahn
09-29-2011, 04:56 PM
OK, the location of the text is in:

<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 :(

alykins
09-29-2011, 07:00 PM
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

alykins
09-29-2011, 07:05 PM
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


<asp:label ID="lbl_demoLabel" runat="server" CssClass="demoClass">

and in a lot of cases you can use normal CSS


<asp:label ID="lbl_demoLabel" runat="server" class="demoClass">

but i don't really know what you are trying to do

michibahn
09-29-2011, 07:30 PM
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


<asp:label ID="lbl_demoLabel" runat="server" CssClass="demoClass">

and in a lot of cases you can use normal CSS


<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.

alykins
09-29-2011, 09:38 PM
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 (http://msdn.microsoft.com/en-us/library/fk6t46tz.aspx)

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

VIPStephan
09-29-2011, 10:15 PM
what do you mean "edit" it? like style it or make the word different?

We are talking about changing the text since the first post. ;)

alykins
09-30-2011, 12:05 AM
the problem is that the <asp:label> object is not really an html object... it is rendered as a span... that's why the highlighted are where "Vegas" pops up is in a span... I guess I'm asking what exactly you want to edit? the content? lett me just give an example...
Note this is C# not vb (I am a C# guy)

Let's assume for a more follow-able "example" we are using the .net login object and then have the label hidden in a panel so it is not being show...


protected void Page_Load(object sender, EventArgs e)
{
panel_failed_login.Visible=true;
lblErrLogin.Text="Welcome to the Vegas blah blah blah";
.....
}

protected void btn_logIn(object sender, EventsArgs e)
{
if (Login1.UserName == "test" & Login1.Password == "test")
Response.Redirect("~/whatever_the_logged_on_page_is.aspx");
else
{
panel_failed_login.Visible=true;
lblErrLogin.Text="User ID or Password not found";
}
}


and any other number of things in between that... So I guess my question is do you need to change what it says? If so then you need to dig in the code behind and find where the text is set... if you only want to change the style of it applying a CSS class normally should work, although if it doesn't the .net framework expects/supports the following format


CssClass=

... that should work no matter what
if it is the text it could be much more involved... especially since it is called lblErrLogin... that means it could be displaying varied results and the text may be set in multiple locations

Edit:
IMPORTANT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Do not post your code behind file here... you will be making your site that less secure

chaule
09-30-2011, 07:19 AM
As stated above you need to get to your login.aspx.vb file... I think it would be in the same folder as where you found the login.aspx.

Open it in and editor and use a find to search the code for your "lblErrLogin" reference or even "VEGAS" . Hopefully the text should be right there, if it isn't then it's being referenced from somewhere else.

michibahn
09-30-2011, 03:29 PM
hey guys.. thanks for all your replies.. I just need to change the word VEGAS to VLS and that's it.

the problem is i can't find the login.aspx.vb file anywhere in my hosting server :(

alykins
09-30-2011, 05:39 PM
hey guys.. thanks for all your replies.. I just need to change the word VEGAS to VLS and that's it.

the problem is i can't find the login.aspx.vb file anywhere in my hosting server :(

i think once you publish the project you cannot access those files through where it is uploaded... when it is published the code behind is compiled (again i think it works something like that) anyways you need to get to the original project... then you will need to re-publish it

michibahn
09-30-2011, 06:58 PM
i think once you publish the project you cannot access those files through where it is uploaded... when it is published the code behind is compiled (again i think it works something like that) anyways you need to get to the original project... then you will need to re-publish it

so with no access to the original project, I cannot change the word that I want to change?

alykins
10-01-2011, 01:32 AM
i think once you publish the project you cannot access those files through where it is uploaded... when it is published the code behind is compiled (again i think it works something like that) anyways you need to get to the original project... then you will need to re-publish it

I verified this to ensure I was correct... if you publish it the code behind is compiled and there is no way to access the code behind file. You will need to access the original project where ever it may be; modify it as we have been discussing, and then republish it...

sorry :(

michibahn
10-02-2011, 04:22 PM
I verified this to ensure I was correct... if you publish it the code behind is compiled and there is no way to access the code behind file. You will need to access the original project where ever it may be; modify it as we have been discussing, and then republish it...

sorry :(

thank you very much alykins. I guess my search stopped here :(

alykins
10-02-2011, 07:56 PM
thank you very much alykins. I guess my search stopped here :(

No prob buddy, sorry to be the bearer of bad news.... is there any way to get the original project solution?

michibahn
10-03-2011, 02:12 PM
No prob buddy, sorry to be the bearer of bad news.... is there any way to get the original project solution?

unfortunately, we can't get hold of with the programmer who did the project :(

joanzn
11-02-2011, 05:12 AM
You need the original files .. once published they're gone .. you'll never get at them again. you should've recieved a copy of the uncompiled site from your design company or they should have it.(good business client practice).

also what your trying to edit is just a label with a set text to VEGAS blah blah..it's not in your code behind (vb) files. if you get the project by some miracle .. open it up in Visual Studio 2010 (free to DL) and select the label.
on the right there is a properties window and you can set the text to whatever you want .. you don't see what it is set to on the web because it runs the compiled code code on the server(runat="server") .ASP.net is SERVER side language .. you build the projects, compile the code and upload the compiled code to the server .. the label you want to edit is ONLY in the original code. Sorry man .. hope you find that original code.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum