|
Hi,
When I run the query in the QueryAnalyzer it returns the data instant. And the amount of data is the same for all the requests. What I didn't understand is the following...
If I select the year (2007) in the dropdownlist then the number of orders for that year is around 12. so the left side grid which is the list of orders has 12 records and the right side grid has the details for the last order for that year. And when I click on another order on the left side grid, it returns the details in 1 or 2 seconds. But I didn't select the year and if the left side grid has like 1000 records, it is taking like 6 - 10 seconds. The number of records in the details grid will be exactly same. I thought that it might be with the viewstate. But I read that callbacks doesn't update viewstate. so I am not understanding why there is a performance difference. Am I missing something?
Please let me know.
Thanks,
sridhar.
|
|
|
|
|
Are you using AJAX, or are you using ATLAS to gain AJAX ? ATLAS does a full postback of your entire page. It's not very efficient.
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 )
|
|
|
|
|
I am using Microsoft ASP.NET AJAX 1.0
|
|
|
|
|
OK, they call it that now, do they ? That would be ATLAS then.
It's more efficient to write your own code, although if you tinker with ATLAS, I think you can make it run better than the default ( which involves a full page lifecycle for any AJAX call )
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,
I changed the IE LAN Proxy server settings to point back to my PC. When I run the following aspx application code through debug the "redirect" is performed, but it always comes back with the "Unauthorized Access to ". Is there a way to redirect using the Proxy Server Settings? This seems like a simple way to do custom filtering and that is what I'm trying to accomplish. Any ideas?
Thanks.....
private void Page_Load(object sender, System.EventArgs e)
{
lblMsg.Text += "Host: " + Request.ServerVariables["HTTP_HOST"] + " ";
if (Request.ServerVariables["HTTP_HOST"] == "localhost")
{
Response.Redirect("http://www.yahoo.com");
}
else
{
lblMsg.Text += "Unauthorized Access to " + Request.ServerVariables["HTTP_HOST"];
}
return;
}
zxcvbnm
|
|
|
|
|
in vs 2005,when i display message box like this Response.Write("alert('hello world');"); some controls text and/or position changes. why is that so? Thanks in advance
|
|
|
|
|
I would guess this is happening since you are inserting your script into the middle of the response. It would be a better idea to use registerstartupscript, then it shouldn't affect your control text and position.
Ben
|
|
|
|
|
Thanks ben you're the man!
|
|
|
|
|
hello, am using a create new user control which is included in ASP.Net 2005, i want to make some changes on it like, changing the format of the password and to cancel the question the new user has to enter.
Thanks alot
Hamody
|
|
|
|
|
This is all in the control properties, also you may click on the smart tag and click edit template.
|
|
|
|
|
Hi
I have 4 RequiredFieldValidators control that property ControlToValidate I have set to 4 textboxes.Noe I want error message should display in Validation Summary Control. I have given error message in every requiredField Validator control's in text property.
Plz help how to dispaly errors using ValidationSummary Control.
Thanks
CARE CAREER
|
|
|
|
|
Just drag and drop the Validation Summary Control.
Regards,
Arun Kumar.A
|
|
|
|
|
Hi,
I have 2 pages in my website.
First Page will have some checkboxes.
There is also a link which will take to the second page.
Assume if I am in second Page(after clicking the link), and Press the BackButton from the IE toolbar,
the checkboxes in the First page remains checked.
Is there any way to make the Page_Load event triggered
on Pressing Back Button?
And there should not be any code in the link_click event.
Thanks in Advance.
Regards,
Arun Kumar.A
|
|
|
|
|
Disable caching the page.
|
|
|
|
|
Thank U very much.
I will try it out and let U know.
Regards,
Arun Kumar.A
|
|
|
|
|
Hi,
I have a webservice in ASP.NET that has one exposed WebMethod that lets the outerworld send us some data and we return a response back after processing that data.
We have a restriction though, our clients use a different develpment environment, and they do not use web services as we normally do.
They will be using 'HTTP Post' to call the web method exposed by the web service in the following manner:
http://mydomain.com/Webservice.asmx/ProcessData?=Parameter = Some Data
And the response that they get back is as follows
<string xmlns="http://mydomain.com/">Response As a String
Is there anyway that I can return only the response back to the client without the XML tags?
My client is being really adamant about getting only the response back and we already have a running webservice that would be really hard to convert to any other format.
Regards
Mohan
|
|
|
|
|
I have done this with an aspx page, so it might be similar with a web service. With an aspx page you make sure you just have a page with only the
<@Page header infomation. No tag or anything like that. Then in the page load you do processing based off the request you get. Then you take the Response object call the clear method and then do a Response.BinaryWrite
You will need to convert your string into an array of bytes to pass into the binarywrite.
Anyway, I haven't tried it with a web service yet, but I am pretty sure it would work.
Hope that helps.
Ben
|
|
|
|
|
Hi.
I have a website that accepts advertisements from users and shows them in specified days.
everyday, I must acquire the ads of the day and show them.
How I check the DB everyday for acquiring the ads of the day?
Best wishes
|
|
|
|
|
Is the Add Information simply a text
or an image ?
Do U have only one Add per Day?
Please kindly elaborate Ur requirement.
Regards,
Arun Kumar.A
|
|
|
|
|
users add advertisements and specify the days to be displayed.
I insert these in DB.
ok ?
now, I must know in a day which advertisements must be displayed.
for this, everyday I must chech the DB and show the advertisements that the specified time is for that day
Best wishes
|
|
|
|
|
Use the query to retrieve the adds for today:
select addInfo from tblName where Date=
cast(floor(cast(getdate() as float)) as datetime)
Hope this helps U.
Regards,
Arun Kumar.A
|
|
|
|
|
Hi
I need a code, the service needs to visit a webpage ( http://secondlife.com/events/ ) and extract the list of "events" by storing the data in strings.
example:
string1 = "10:00PM"
string2 = "event description"
string3 = "event hoster"
string4 = link_to_full_description (ex. http://secondlife.com/events/event.php?id=543559&date=1177164000)
I know this can be easily done but I havent done any web data extraction till now, so I thought I ask here for help
tnX...
|
|
|
|
|
|
WoW tnX allot
|
|
|
|
|
Hello All,
I want to send sms using asp.net based web application. Can you give me sample code or URL for more information. Let me know which version of .Net will support.
Thanks,
Kumar
Thanks & Regards,
Kumar
|
|
|
|