|
You put an entry like this:
<add key="FileDirectory" value="c:\order\Working" />
And access it like this:
In .net 1.1 it looks like this.
string val = System.Configuration.ConfigurationSettings.AppSettings["FileDirectory"];
It is a little different for .net 2.0
Let me know if you need to know how that looks.
Ben
|
|
|
|
|
Hi all,
I built a website by asp.net, and now i want to test it's performance when many users access it.
And i know i must use a tool called "Thread test" to test performance. But i don't know where to download "thread test" tool.
Please give me a link to download "thread test" tool or some guide to test it's performance.
|
|
|
|
|
ctlqt12 wrote: "Thread test"
or stress test tool...???
<< >>
|
|
|
|
|
Hi Guys,
I have a problem. I develop my asp.net website under windows xp using visual web developer 2005. When browsing the website from Mac safari, mac firefox, mac E52, the images are all displayed and some letters were gone.
I hope you can help me if what do I need to add in order for me to avoid re-coding everything to java.
Thanks in advance Guys
hifiger2004
|
|
|
|
|
hifiger2004 wrote: avoid re-coding everything to java.
Well, that would be silly.
Look at the HTML being generated, see if you've got characters that are not being sent to safari, or if you have CSS issues, or whatever.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 Christ,
Yes you're right re-coding is really big job to do.
I made sa sample website that will simulate my problem.
Try accessing my sample site http://cvd.harnesstheweb.com.
Try accessing it thur IE6 or IE7 they have the same result, and that's fine.
But when accessing it thru mozilla firefox you will noticed here that the yellow stripe on the header image is gone.
I simulate it using mozilla firefox, because it says that safari, firefox and IE5 is at the same level of the browser used in mac machine.
My problem is I don't know if how to resolve this problem.
I hope you can help me with this.
Thanks
hifiger2004
|
|
|
|
|
|
Hi Jimmy,
Thanks for the information.
I am actually made some adjustment on my asp.net code because I have found out that there are some colors in clone pc that doesn't recognize by mac. And in this case, instead of re-coding everything, I only made some modifications on the colors. And I am using now the universal color combinations that gives the same result to any browser including mac. So working fine now when I'm running it thur firefox, the yellow stripe below is now displaying.
And also I have just read an article about the new framework that soon to be released this year. It's about the WPF/E. And the good thing about it is that, it will work for both clone pc and mac.
Thanks Jim
hifiger2004
|
|
|
|
|
Hi all,
Did any one come across displaying custom tool box on a webpage in asp.net ?
Example: just like we have toolbox visual studio 2005 where we can drag controls on designer page.
We need similar functionality to do on a webpage where we have to create a user controls and these user controls has to be populated on a toolbox inturn users will drag and drop those controls on a certain location on a webpage.
How cane we handle this situation on a webpage? Is it through AJAX?
Please help me in putting down your ideas here. Appreciate your help on this.
Krishna
From DE
|
|
|
|
|
Its sounds to me like you want something similar to the WebParts framework. Although I don't care for it much myself you might have a look at that.
|
|
|
|
|
hmm not exactly webparts! because at the same time we need to handle control resizing as well. What if we need to place many controls over the webparts. Can it handle ?
|
|
|
|
|
Hello all,
I m using 12 SP, 7 include files in a ASP file.
Now problem is that, that page is not opening or its takeing 2much time to open & some times my server shows 100% CPU usage.
What should i do to make it fast??????
Thanks,
Ankur Bakliwal
|
|
|
|
|
It is unlikely to be the includes - I often have ten or more.
Can you add timing code around the stored procedure calls to confirm how long each one takes?
|
|
|
|
|
andyharman wrote: It is unlikely to be the includes - I often have ten or more.
I actually tested the performance of include files a few years ago. It showed that you can have a hundred include files without any noticable performance hit.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks for the response.
Please confirm the include and iframe sequence which are being used in the main page.
The page has 4 tabs, which are used to call 4 different pages.
Response.buffer=false
For case 1 to 5
Case 1 then include page 1 and activate the tab (by display: none)
Case 2 then include page 2 and activate the tab (by display: none) etc
Page 1 has
3 include pages
4 iframes and each iframe has one page
for ex. loadme frames src is a dds.asp?id=10
the dds.asp has response.buffer= true and response.flush()
Yes, the sp are not taking too much time. it will take from 40 sec to 70 sec.
Please look into the above sequence and correct me if i am wrong.
Thanks,
Ankur Bakliwal
|
|
|
|
|
Why are you turning off buffering? Normally there is no reason to do that.
Still, there is nothing in what you describe that should take 40 seconds to execute.
Is it the page containing the iframes that takes time to load, or the contents of the iframes?
---
single minded; short sighted; long gone;
|
|
|
|
|
You should start by identifying what part of your code it is that is taking time. Nothing of what you mentioned gives any clue to any performance problems.
---
single minded; short sighted; long gone;
|
|
|
|
|
Yes,
I have added 4 iFrames also in that page & that pages also have some SPs
I m not able to find out that part which is takin time..
Thanks,
Ankur Bakliwal
|
|
|
|
|
Add some timing code round all the SPs and any other logic thats pretty intensive. Try loading the iframes seperately and see how they cope, although the page should load before the iframes so I imagine they won't make a difference. Failing all that, ditch ASP, it sucks plain and simple.
|
|
|
|
|
Hi all,
I have a datagrid with Button column select in form of hyperlink. On the same page, I have another datagrid that insert data and one column(Name) has Names of a user that is inserting data(using windows authentication).
Now this is how it's supposed to work: When any user want to see data about a particular user it's a matter of selecting his name and the data Writen by the selected user should be the only ones to be shown.
I got some examples on Google but they all seem not to be working. When a user is selected the page remains the same data is not selected. How would can I solve this problem?
My code looks like this:
HTML part:
<Columns>
<asp:ButtonColumn HeaderText="Operations" DataTextField="TeamOperation" ButtonType="LinkButton"></asp:ButtonColumn>
</Columns>
and code behind:
private void dgoperation_ItemCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
SqlCommand myCommand=new SqlCommand();
myCommand.Connection=con;
myCommand.CommandText="select * from dbo.DashBoard where Name = @Billing";
myCommand.Parameters.Add(new SqlParameter("@Billing",SqlDbType.VarChar,50));
myCommand.Parameters["@Billing"].Value= dgbilling;
SqlDataAdapter myAdapter=new SqlDataAdapter(myCommand);
DataSet ds = new DataSet();
myAdapter.Fill(ds);
dgis.DataSource=ds;
dgis.EditItemIndex = -1;
dgis.DataBind();
}
dgis: this is the datagrid that where user inserts data.
dgbilling: this is the datagrid with the name list.
Thanks.
|
|
|
|
|
I have corrected my statement and this time I'm getting this error:
"Object reference not set to an instance of an object."
And the error source:
Line 219: myCommand.CommandText="select * from dbo.DashBoard where
Name Like @Billing";
Line 220: myCommand.Parameters.Add(new
SqlParameter("@Billing",SqlDbType.VarChar,50));
Line 221: myCommand.Parameters["@Billing"].Value= bc.Text;
Line 222: SqlDataAdapter myAdapter=new SqlDataAdapter(myCommand);
Line 223: DataSet ds = new DataSet();
This is my code:
<Columns>
<asp:ButtonColumn HeaderText="Operations"
DataTextField="TeamOperation" ButtonType="LinkButton"
CommandName="Select"></asp:ButtonColumn>
</Columns>
My code behind:
private void dgoperation_ItemCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
System.Web.UI.WebControls.LinkButton bc=new
System.Web.UI.WebControls.LinkButton();
bc=(System.Web.UI.WebControls.LinkButton)e.Item.Cells[0].FindControl("TeamBilling");
SqlCommand myCommand=new SqlCommand();
myCommand.Connection=con;
myCommand.CommandText="select * from dbo.DashBoard where Name Like
@Billing";
myCommand.Parameters.Add(new SqlParameter("@Billing",SqlDbType.VarChar,
50));
myCommand.Parameters["@Billing"].Value= bc.Text;
SqlDataAdapter myAdapter=new SqlDataAdapter(myCommand);
DataSet ds = new DataSet();
myAdapter.Fill(ds);
dgis.DataSource=ds;
dgis.EditItemIndex = -1;
dgis.DataBind();
}
How can I solve this?
Thanks
|
|
|
|
|
Hi
I am going to developing a new website. I have a such a knowledge on coding. But i dont know what are all the steps should be taken for my development. so please send me some information about that development. Idea means what are all used in the website, how can they used etc.
Thanks and Regards
N. Prabhu
|
|
|
|
|
It is difficult to give you any advice on how to build your web site when you give no information on what your web sites purpose is and what function it serves.
Things like does a user have to log in?
Is part of the site public so anyone can see it?
Is part of the site privite so only logged in users can see it?
Is the site in asp.net 2.0?
Do you need a database to store information?
Do you have only static content?
We really can't give you much help without asking a specific question.
Ben
|
|
|
|
|
Hi,
I want to test my website on different browsers, and I am not 100% sure how to go about it. I have the lastest IE7, but how do I get IE 5 and 6 on my machine again? Is version IE4 or less necessary to test with??
What about other browsers, especially the Mac browsers, how do I test my website on this Mac browser? I don't have a Mac machine.
Please can someone get back to me soonest.
Regards
Brendan
|
|
|
|
|
To get different versions of IE on the same machine, I'm pretty sure you'll have to setup Virtual PC images.
I don't know about the mac browser.
Ian
|
|
|
|