|
Try In Google..U can find out the code in Google
|
|
|
|
|
Hi Guys i am facing a problem that memory size of our worker process keeps on growing and our web iste becomes slow , what could be the possible reasons, please reply ASAP,
regards,
|
|
|
|
|
A memory leak. Poorly written code. Hard to say more without seeing code.
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 )
|
|
|
|
|
King Shez wrote: please reply ASAP
Might because of memrory leak ?
are you using any COM component or 3 party tool ?
Are you creating many objects in your application ?
There are many reasons for this :->
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi All,
I am currently busy trying maintain some else's code, it is asp.net1.1 within an asp site, they just pasted it a couple of subdirectories and there is issues regarding multiple web.config files in subdirectories and in the root etc.
I don't have any asp.net1.1 experience, only 2.0, and 1.1 compiled everything into a dll as far as I know but I want to see the code behind and the only page that I can view is the aspx, I can't locate the aspx.cs file. Also I can't find the dll, how does this work and where should I start looking for the code behind files.
The guy who did these left the company before I joined so I can't find out from him.
Any help will be appreciated
Thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
In 1.1, if he built a dll, the page would work without any .cs files, in fact you would deploy it that way. One has to hope there's source control somewhere that includes the full files, or they are on his PC, because if you're looking at where the site was deployed, they will not be there.
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 )
|
|
|
|
|
That is what I was afraid off, so I will have to redo the page from scratch
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
If you can view the page, you MUST have code in the aspx, or you MUST have a dll. It's not going to pull it from thin air. Worst case, you can decompile the dll.
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 )
|
|
|
|
|
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.
|
|
|
|