|
If there is a dll it will be in the bin/ folder.
Otherwise, the "code-behind" will be inline - ie in the aspx file itself within <script runat="server">... </script> tags.
|
|
|
|
|
Fred_Smith wrote: Otherwise, the "code-behind" will be inline - ie in the aspx file itself within ... tags.
I didn't even consider that ( because he said he has a dll ). What a nightmare.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I looked in for a bin directory and there is only one, and the dll is not in there, also there is no inline "code-behind" so the source would be on his machine that has been formatted and given to a new person in the company
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Then the company is pretty stupid for not checking before he left, and for not having source control to start with.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am in silence
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Well something doesn't make sense - if there's no dll and no inline code, I don't see how the application works at all!
|
|
|
|
|
What is the first line of a typical aspx page?
<%@ Page ... etc?
|
|
|
|
|
Yip, and there it has the attribute codebehind="page.aspx.cs" but there is no such file in that directory
-- modified at 7:56 Monday 1st October, 2007
Just did a search on the entire app, there is no such file in the entire website, not even a dll with that name
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Well, no - that implies DLL. There should be another property there, typically:
inherits="dllname.pagename"
and that should tell you the name of th DLL where the code is compiled to...and that should be in the bin/ folder...
|
|
|
|
|
No wonder, the dll is named something completely different, thanks, any suggestions on how I can dismantle that dll
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
I gues that's what decompilers do, but it's not something I know about. Surely your company can contact the previous developer and ask him/her for the files? Otherwise... good luck, is all I can say!
|
|
|
|
|
His machine has been reloaded, so any files there would be gone
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
oops... still, it'd be worth asking him. If he had any sense he would have had them backed up somewhere else as well....
|
|
|
|
|
Will I be so lucky
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Hi there,
I am trying to update a record in my ACCESS database but it is giving an error of following type :
Exception Details: System.Data.OleDb.OleDbException: Syntax error in UPDATE statement.
Source Error:
Line 158: dr.EndEdit();
Line 159: OleDbCommandBuilder cmd=new OleDbCommandBuilder(da);
Line 160: da.Update(ds.Tables[0]);
Line 161:
Line 162: con.Close();
The error is showing in Line 160.
My code is as follows:
private void BtnUpdate_Click(object sender, System.EventArgs e)
{
string strcon="Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Server.MapPath("~/DB/iMedia.mdb");
OleDbConnection con=new OleDbConnection(strcon);
con.Open();
OleDbDataAdapter da=new OleDbDataAdapter("select * from Users where username='"+UserName+"'",con);
DataSet ds=new DataSet();
da.Fill(ds);
ds.Tables[0].PrimaryKey =new DataColumn[] {ds.Tables[0].Columns["username"]};
DataRow dr=ds.Tables[0].Rows.Find(UserName);
dr.BeginEdit();
dr["username"]=TxtUserName.Text;
dr["password"]=TxtPassword.Text;
dr["name"]=TxtName.Text;
dr["emailid"]=TxtEmailid.Text;
DateTime NewDate=Convert.ToDateTime(TxtMonth.Text+"-"+TxtDate.Text+"-"+TxtYear.Text);
dr["dob"]=NewDate;
dr["address1"]=TxtAdd1.Text;
dr["address2"]=TxtAdd2.Text;
dr["city"]=TxtCity.Text;
dr["state"]=TxtState.Text;
dr["pincode"]=Convert.ToDouble(TxtPincode.Text);
dr["country"]=TxtCountry.Text;
dr["accounttype"]=TxtAccType.Text;
dr["boss"]="d";
dr.EndEdit();
OleDbCommandBuilder cmd=new OleDbCommandBuilder(da);
da.Update(ds.Tables[0]);
con.Close();
}
Anybody can help me regarding this problem.
Thanks,
Nagendra.
|
|
|
|
|
You haven't defined an update statement. Plus, I hope this is not code that's going into any sort of production, because you're breakng the most fundamental rules of development. Your data layer code, including string mashed SQL that is probably wide open for injection attacks, is in the presentation layer.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello there,
I am glad that u took interest in my problem but this same code worked in other application. I don't know why this is not working here.
|
|
|
|
|
nagendrathecoder wrote: I am glad that u took interest in my problem but this same code worked in other application. I don't know why this is not working here.
So what is different between the "other application" and this one?
|
|
|
|
|
Obviously, as Colin said, there's a point of difference. The MS classes do try to magically create these statements for you, but if you want to actually write code, you should take more control of your DAL than that.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I am trying to set the failure text of my asp:Login control to red but nothing wants to work. I have created my custom login control using the asp:Login control.
<asp:Login
ID="CESignIn"
DestinationPageUrl="~/ControlPanel/Default.aspx"
FailureText="<br />Your sign in attempt was not successful. Please try again."
FailureTextStyle-CssClass="error"
FailureTextStyle-ForeColor="Red"
runat="server">
<LayoutTemplate>
...
...
...
<asp:Literal ID="FailureText" EnableViewState="False" runat="server" />
</LayoutTemplate>
</asp:Login>
Here is my style:
.error
{
color: #ff0000;
}
It is currently black. How do I change it to red. Please can someone help??
Regards
|
|
|
|
|
hai all,
can any one send me the sample code or URl of shopping cart
thanks in advance
Thanks
Subbu.
|
|
|
|
|
No. That's not what we do, we help people with *their* code. If there's no samples in the articles on the site, then try google.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi
This is url for the sample ecommerse site.
http://www.x-cart.com/demo/cart.php
Naresh Patel
|
|
|
|
|
|
Method 'Protected Sub Calendar1_DayRender(sender As Object, e As System.Web.UI.WebControls.DayRenderEventArgs)'
does not have the same signature as delegate 'Delegate Sub EventHandler(sender As Object, e As System.EventArgs)'.
|
|
|
|