|
hi iam using a text box when i enter something and press enter key the button click event has to work where i wrote the text enter in the text box has to be taken for this i wrote a javascrpt to handle the button clik event in textbox on key press ..the problem is that it is working in my system .but its is gettting slow in the other systems
|
|
|
|
|
jagadeeshkumar2106 wrote: but its is gettting slow in the other systems
Well, it depends on how you wrote the other system.. it's not so easy to give the correct answer to improve the performance of application.. That's why the most of companies hires the tester to test the application (including the performance issue) and the project leader or someone to review the code of the project.. because there are a lot of programmers who just want workdone and don't care about performance. Soon or later, it's gonna be huge problem..
|
|
|
|
|
It could be a wide variety of things causing your app to perform slower on other machines. Network, hardware on the other machine, etc. Cannot really tell except you should probably look for places where the code is bottlenecking.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
sir my code contains many for loops for checking the datatable is this is the problem
|
|
|
|
|
It very well could be. You really should try not to query the database inside for loops. It can be a big performance killer.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
sir its not a database its just a datatable sir
|
|
|
|
|
Sorry, kind of late here and eye are going Even with datatable you can still get a performance hit looping through it over and over. You aren't accessing the database at all with the datatable, what I mean is refreshing the datatable, hence still hitting up the database?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
sir actually my datatable consists of two columns prensent value and prevoius value and iam assing this datatable to the grid view .now iam having a text box to enter the value this enter valu will come in the datatable present value column now and iam again assing to the grid view now iam checking with the previous value if they are not equal then blue colr will come to the grid view of that cell for this iam using the datatable to check for the previous value and present value that why iam using the for loop here..if i use the grid view insetead of the datatable the problem may solve?sir
|
|
|
|
|
Sounds like you are making calls to the database. You might want to experiment with a gridview. Or minimize the amount of looping you need to do.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
SharePoint & BizTAlk Server.
Among these two, Which one has better future.
For Employment, which course is better ?
Among these two, which one is easy to learn?
Can any one give your views regarding my question???
G. Satish
|
|
|
|
|
Satish - Developer wrote: Among these two, Which one has better future.
Well, it depends. If you ask the ASP.NET web developer like me, I will tell you to learn about ASP.NET 3.5, MVC or WCSF, LINQ and Silverlight. Those are the future of the web.
|
|
|
|
|
Each one has there own benifits and future.
Eace course has their won features.
Thanks & Regards
Niranjan
|
|
|
|
|
hey can any one help me to create the pdf files from database table data in asp.net
|
|
|
|
|
You probably need to use some third-party library for creating pdf on the fly.
ASP.NET create pdf[^]
|
|
|
|
|
its better to transfer the necessary data into XML and translate it using .FO.
a third party tool like ibex can develop its PDF data from the .FO file
http://www.xmlpdf.com/ibex.html[^]
Regards
Riyam Hussain
|
|
|
|
|
iam using dropdown list. The dropdown list items are assigned by datatable.now in this dropdown list some items should be hide to the user is it possible or not.
|
|
|
|
|
You should remove those items before binding with Dropdownlist. You can remove those unwanted items from either SQL query or remove from code.
|
|
|
|
|
You can remove the items which are not appropriate to display for corresponding users... while of course no need to write back to db, otherwise, you will remove them for good...
|
|
|
|
|
I display the data from database in gridview after that i click the row it will display the particular data for every 5 minutes.please give us the article
|
|
|
|
|
Where you want to display the records ?
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
|
Basheer wrote: for every 5 minutes
You can use Javascript timer or ASP.NET Ajax Timer control.
|
|
|
|
|
Do not use words like urgent , it is very rude and impolite around here.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi Everyone,
I get the error:The name 'postComment' does not exist in the current context
groups.aspx.cs doesn't see what's in the groups.aspx. I can't use the option of putting the code inside the aspx together. I would like to know how to access the textbox from the aspx.cs page
I have two pages:
groups.aspx
groups.aspx.cs
I have created a button in the groups.aspx as follows:
<asp:textbox id="postComment" runat="server">
Now I want to access it from the groups.aspx.cs to insert the contents of what was entered in the text box to the database as follows:
protected void postBtn_Click(object sender, EventArgs e)
{
SqlDataSource PostDS = new SqlDataSource();
PostDS.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();
PostDS.InsertCommandType = SqlDataSourceCommandType.Text;
PostDS.InsertCommand = "INSERT INTO GroupChalkboard (Text, GroupID, UserID, CreatedDate) VALUES (@Text, @GroupID, @UserID, @CreatedDate)";
PostDS.InsertParameters.Add("Text", postComment.Text);
PostDS.InsertParameters.Add("GroupID", pid.ToString());
PostDS.InsertParameters.Add("UserID", User.Identity.Name);
PostDS.InsertParameters.Add("CreatedDate", DateTime.Now.ToString());
PostDS.Insert();
}
Thank you.
|
|
|
|
|
Albert83 wrote: I have two pages:
groups.aspx
groups.aspx.cs
Actually, those are not two pages. This is just one page and its code-behind file.
1. In Groups.aspx, the code file should be set to groups.aspx.cs.
CodeFile="groups.aspx.cs"
2. Check whether that textbox has runat="Server" or not.
|
|
|
|