|
Thanks Fred. I will work on it.
Regards,
Anees
|
|
|
|
|
What version of ASP.NET are you using?
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
I am using ASP.NET 2.0
Regards,
Anees
|
|
|
|
|
Then it really may be a bug (bad design), such a thing could be in ControlState. Why are you using DataGrid anyway, when there is GridView?
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Please try disabling the viewstate for innercontrols rather than for DataGrid as a whole.
|
|
|
|
|
hi guys
i have used a window.showModalDialog, the window is opening, but when i close the ModalDialog the parent page is getting refreshed .
any suggestion how to stop the parent page getting refreshed
regards
winnie
|
|
|
|
|
codelinks wrote: any suggestion how to stop the parent page getting refreshed
You can use "window.open " instead of window.showModalDialog . if you have to use window.showModalDialog then the answer is no.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi,
I just want to know how to extend/modify the session timing for an particular page in asp 2.0.
Thanks
Jith
|
|
|
|
|
The session.timeout limit is an application-wide setting, as far as I am aware you can't set it on a page-by-page level basis.
However, if you want to make sure the session doesn't excpire while on a particular page, you can use a workaround/trick of loading a Javascript function on page load that includes a SetInterval call to keep requesting a dummy page every few seconds before teh session is due to expire:
function Reconnect(){
var img = new Image(1,1);
img.src = 'reconnect.aspx';
}
window.setInterval('Reconnect()',1170000);
reconnect.aspx is just a blank aspx page; the interval 1170000 ms is 30 seconds short of the default session timeout time of 20 minutes.
Fred
|
|
|
|
|
Hi Fred,
Thanks for your solution.
Thanks
Jith
|
|
|
|
|
Hi,
what is the syntax for Finding control in GridView1_RowCommand
thanks!
|
|
|
|
|
Give commandname to the controls you use. then use e.commandname to get the control
|
|
|
|
|
Hey guys ! I'm using a wizard to creat a custom user registration, and I'm using some fieldvalidators and compareValidators ! I have a button on my page (other than the wizard's button next) when I click that button I get all the errors from validators !!!!! why do i get this ??? Is there any way to prevent this or do I have to manually creat some labels and code that ?
thanx
Mr.K
|
|
|
|
|
You can write javascript that manually calls or ignores the validators on the page. I forget the details, although I did it, by digging into the code that is generated by the framework
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 )
|
|
|
|
|
mrkeivan wrote: I have a button on my page (other than the wizard's button next) when I click that button I get all the errors from validators !!!!! why do i get this ???
Set the button's CausesValidation property to false.
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
I want 2 captur the browser close button so that i can clear the session.
For that i used the OnBeforeUnload method it works for the close event.
But this also gets invoked when the back button of the browser is clicked
so can u suggest any method that just invokes on the close and not the back button.
|
|
|
|
|
|
You can capture the BACKSPACE key press or Button Click on one of the JavaScript event "onKeyDown". call a javascript function on the event "onKeyDown" and check for the keyCode and set a variable to true or false and check the variable status in the onbeforeUnload event.
BACKSPACE - 8
if (window.event.keyCode == 8) {
//your code
}
Regards John
|
|
|
|
|
how to display the scroll bar of the grid view.
i have tried this.
Add this CSS to your GridView.
style="OVERFLOW: auto; WIDTH: 200px; HEIGHT: 120px"
but its not working. so is there any solution for this
|
|
|
|
|
|
In online shooping, when any customer click at AddToCart button.
The customer first login,and I save customer's data in database
with login-id. So all customer's data is saved with own login-id.
hence,we retrive customer data in select statement with where condition = login-id.
But I want that there will no option of login, then how we manage all customer's data, so that shopping process be possible....
Plz help me..
Thanks
Ajai Chaudhary
|
|
|
|
|
You could use the user's session id to initially store their selections against. However, at some point the user is going to have to provide you with some personal information (name, address, credit card no) to make their purchases. It would be better to have some way of persisting user details so they don't have to enter the same information every time they come to your site to make a purchase.
Paul
|
|
|
|
|
Hello frnds,
suppose i have a a word/HTML file stored at Server and if i am show it using IE then it show the physical path of the file in address bar,
for security purpose, is there is any class that will first copy the file to windows temp folder and show it from temp folder, by this we can hide the actual location of file
please any helpful link,Code .. ?
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Do a Google search for streaming files using ASP.NET.
Paul
|
|
|
|
|
When you've got that sorted out, add a content disposition to the response so the browser prompts for a save location.
context.Response.AppendHeader(
"Content-Disposition",
"attachment; filename=\"SuggestedSaveName.doc\""
);
|
|
|
|