|
How long time is "too much time"? A millisecond? A second? A minute?
---
b { font-weight: normal; }
|
|
|
|
|
A minute
Other files in the Project don't have this delay
|
|
|
|
|
I myself solved the problem.!
Thanks for the time spend.
As i expected it was the problem of Viewstate. I was holding one dataset of 5000 records in Viewstate.
|
|
|
|
|
Hi ,
How to write the database connection(insert,delete or select query) within javascript function in asp.net.Is it possible.Anyone can you help me
Thanks
|
|
|
|
|
You're expecting to connect to a database that is on the clients machine ? How can you guarentee it is there ? What are you trying to do ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Taking on board what Christian has said above, think that you need a way to update a server-side db without posting back the whole page?
If that's the case, then have to use AJAX, but if you don't mind the postback, just submit the form as usual and process on the server.
Why does it have to be in js?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
-- modified at 12:02 Thursday 4th May, 2006
|
|
|
|
|
Hai,
The following is my queries.
1: Is it possible to have check constraint with a local variable?
2: Given the following scenario:
I have three columns in a table ,say ID int,name varchar, address varchar, and I added 10 records into that table keeping ID colums NULL.Later I want to add values to ID columns 1 thru 10 but with a single update query.(It doesn't means you are bound to use only 1 satement in the batch, no loop permitted )
Please show me a right way.Thanks very much.
Thank You,
Rahul.P.Menon.
|
|
|
|
|
just use cursor or while loop in urs stored procedure.
|
|
|
|
|
Hi Goyal,
Can you please explain with an example or with the code snippet.Thanks very much for the reply.
Thank You,
Rahul.P.Menon.
|
|
|
|
|
for eg.
in urs stored procedure use following
declare @temp int
set @temp = select count(*) from table
declare @@count int
set @count = 1
while(@temp >0)
Begin
Insert query
set @temp = @temp-1
End
|
|
|
|
|
I am getting the following error from an ASP Page:
System.Data.SqlClient.SqlException: Login failed for user 'AFFORDABLE02\ASPNET'
Now, I added AFFORDABLE02\ASPNET as a user to the database, Public...What am I missing?
This is the code that is causing the error:
dataSet11.Clear();
sqlDataAdapter1.Fill(dataSet11,"Customer");
Using MSDE
here is the connection string:
workstation id=AFFORDABLE02;packet size=4096;integrated security=SSPI;data source=AFFORDABLE02;persist security info=False;initial catalog=RentToOwn
Thanx in advance!
Jude
|
|
|
|
|
may be in urs connection string u r missing password.
|
|
|
|
|
The solution is :
U created the New User named "AFFORDABLE02"
but u dont give the permission.. so give permission.
So if u work on sqlserver then
click on "AFFORDABLE02" user
then click on "Permission" button
and select the tables for select,delete,insert,update...
your work is done...
Now Enjoy...
Dipan Patel.
|
|
|
|
|
Thanx for the response! I had the Affordable02 as a user but not Affordable02\ASPET...added that one and gave permission! Worked great!
While I have some fesh minds...how can you cotrol the size of a data grid?? I have tried setting the height properties, but that doesn't work. The problem is when there are just one or two returns from a select statement, the header and data regions are huge! But when more than 3 row are returned, it is normal size.
Thanx in advance
Jude
|
|
|
|
|
My.Computer.Network.UploadFile will copy a file from my local folder to a webserver but when I post the code to the webserver a problem occurs. It cannot find the source file. It seems like it is looking for the source file on the webserver instead of my local computer. When the UploadFile command runs on the webserver how do I get it to look for the source file on the local computer?
|
|
|
|
|
dptalt wrote: It seems like it is looking for the source file on the webserver instead of my local computer.
That is because in the context of running the website My.Computer IS the webserver.
I knew these stupid façade classes in the My namespace would be more trouble than they are worth! Badly named pieces of crap that just hide what is really going on spawning a Me, My, Fisher-Price generation of developers!
[Sorry, I just need to rant about something and the My namespace is a favourite of mine]
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
In .net how do you copying files from one computer to another going across the internet?
|
|
|
|
|
Hi
I have into my side one directory with name "web" and i want to link pages there but the problem is because my ("home") main web pages is into main directori.So when i click on some of my bottom i go to "web" directori but than i can't back to my home.Because give me that path web/home is not valid but i give Response.Redirect("default.aspx"); what i shout give there??
thanks
|
|
|
|
|
I have a server-side ImageButton:
<asp:ImageButton id="btnDoSomething" runat="server" StartContainer="maindirection" 0nClick="StartProcessButtonClick" AlternateText="Start process" ImageUrl="/public/buttonImage.jpg" />
(note I've changed the O in OnClick to a zero so this post displays correctly).
The button has the appropriate code-behind:
protected void StartProcessButtonClick(object sender, ImageClickEventArgs e)<br />
{<br />
if(sender is ImageButton)<br />
{<br />
}<br />
}<br />
This button works for 95% of the visitors to the site, but for a select few, it the server-side handler doesn't get called. It's absolutely consistent - it either works on a PC, or doesn't, but there's no logical pattern as to why it doesn't work.
Any ideas at all why the handler would get called for one client (running IE6 SP2) but not for another (same browser)??!!?!?
________________________
http://www.webreaper.net
-- modified at 12:04 Wednesday 3rd May, 2006
|
|
|
|
|
Do other server controls work on the machines where this doesn't?
Do the machines where it doesn't work have javascript disabled?
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
Javascript is enabled, as are cookies, etc.
We have lots of other code running on that machine (we've got a development machine which the problem happens on, but all our other sites work on that machine).
It also comes and goes - I've had the problem on my development machine one day, and then a couple of hours later it stops happening and the site works correctly. It's most bizarre!
________________________
http://www.webreaper.net
|
|
|
|
|
if u have given AutoEventWireup="false" in the page directive then u have to give
Handles StartProcessButtonClick.Click
ie ..
protected void StartProcessButtonClick(object sender, ImageClickEventArgs e)Handles StartProcessButtonClick.Click
{
if(sender is ImageButton)
{
// blah
}
}
Other wise u have to make AutoEventWireup="true"
I am not sure whether this little information will solve your problem
|
|
|
|
|
I've tried changing the AutoEventWireup="true" but it doesn't make any difference, the event still fails to trigger. I wouldn't have thought a setting like that should affect it anyway (or, more to the point, if it was as simple as that, I wouldn't expect the code-behind call to trigger on any client at all, rather than working on some and not on others, as we're currently seeing).
Any other ideas?
________________________
http://www.webreaper.net
|
|
|
|
|
Bit of extra info: the odd thing is that we have 2 production servers running exactly the same code - one is used as a 'staging' server (i.e., sand-box pre-production site used for external client testing) and the other is the actual production site. Both are configured identically (one used to be the real production system before we migrated it to an alternate hosting environment).
The odd thing is that the IE client which exhibits the problem on the staging server, doesn't exhibit that behaviour on the production server. So you have the same binaries and presentation (.asXx) files on both servers, and yet the same IE client behaves differently depending on which server you use.
And yet my machine works perfectly when I run against either server.
It's a head-scratcher, alright...
________________________
http://www.webreaper.net
-- modified at 6:58 Thursday 4th May, 2006
|
|
|
|
|