|
Hi
I am using JavaScript which to store and retrieve a value from a hiddenfield in order to set a position of a scrollbar on an asp.panel during postback. Unfortunately, during postback the value doesn't seem to be set, and I can't see why.
Here is my code:
function setScroll(var)
{
document.getElementById('pnlCosts').childNodes('hiddenfield').value = val.ScrollTop;
}
function scrollTo(panelName)
{
document.getElementById(panelName).scrollTop = document.getElementById('pnlCosts').childNodes('hiddenfield').value;
}
I am refreshing using: Response.AddHeader("Refresh", strPageRefresh);
Can anyone help?
|
|
|
|
|
If you refresh a page it doesn't post back. It just reloads the page. If you want any form fields sent back you need to cause a postback not a refresh.
|
|
|
|
|
First, please format any code you post using the pre tags.
Are you updating the value in your hidden field during the postback, i.e. using viewstate or other techniques? If not then of course the value will be reset to the default state after each postback I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi
I was following the example given in a website, which gave no indication of having to set a ViewState or Session variable.
This is the website: http://urenjoy.blogspot.com/2009/06/maintain-scroll-position-of-aspnet.html
|
|
|
|
|
The example you indicate uses a cookie. You do not. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I had a feeling this mistske would happen. Scroll the page, and you will see the other example.
|
|
|
|
|
HI ALL,
When i am trying to browse aspx page frm a virtual directory in iis,i am getting it as page cannot be displayed .but when i try to browse html page frm same path then i can able to see
can any one tell me what might be the problem?
thanks in advance
|
|
|
|
|
Are you able to open asp/x pages from other virtual directories? It might be that IIS has not been configured properly.
|
|
|
|
|
Configure you iis properly
check the .net framwork installed or not on your machine
by using below command
aspnet_regiis -i
|
|
|
|
|
Configure and enable ASP.NET in your virtual directory.
There is no foolish question, there is no final answer...
|
|
|
|
|
Hi,
How can I restrict a particular user to access a particular WebMethod, but shud be available to other users.
Rahul
|
|
|
|
|
|
Hi,
If I create a private WebMethod, will it expose to the application ? If not, then what is the use of that ?
Rahul
|
|
|
|
|
NO it will not be available. Private methods are made for operations within that class. Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi,
I want the control like used in
https://online.epocrates.com/noFrame/
in "Drugs" tab in this site.
Which has A-Z links and on click of each letter showing list of medicines.
If someone knows, pls help me.
|
|
|
|
|
A very easy control to implement, what have you tried, what are your ideas? We are not here to write code for you. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
As Mark has said this is a very easy control, you could use ASP.NET AJAX to do something like this, but since we are not going to give you the code you should check this link[^] and start learning.
|
|
|
|
|
This is a general message.
Just because the question is basic, you should one consider it as bad question.
As the forum is not only for experts, i would request my friends that please don't vote a question as bad question just because the question is too easy.
Either help or ignore. Please don't insult anyone.
|
|
|
|
|
I don't think it is that the question is easy that bothers people. It is a matter of how much effort was made by the asker to answer it themselves before asking here. When people are just handed an answer they don't learn as much.
"Satisfaction lies in the effort, not in the attainment, full effort is full victory.” -- Mahatma Gandhi
|
|
|
|
|
Anurag Gandhi wrote: Please don't insult anyone.
And what about the OP insulting us by not doing even a modicum of research to find the answer to such a simple question. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hello everyone!
I've a problem, I want my control CreateUserWizard save the data entered by users during registration on my database, not in the classic ASPNET.mdf that is created in the AppData folder by default.
To do this, I followed the wizard through the file aspnet_regsql.exe.
My problem is that even by following the procedure, the control doesn't save the data in my database but in ASPNET.mdf that is created by default.
Maybe I didn't set well Provider from Visual Web Developer? But not everything should be automatic?
Please help me!
PS: I've Microsoft Visual Web Developer Express 2008 and Microsoft SQL Server 2008 Express Edition
Here a link to two pictures to help you understand my problem:
Image 1
Image 2
|
|
|
|
|
|
My machine have a windows 7 operating system. and I have developed one application in .net with MS Access 2007 database. If I replace MS Access file it is converting in read only. And it is showing old data.
But in Windows Xp it is working properly.
Any solution ???
|
|
|
|
|
Yes, don't use Access. Windows 7, or any other OS, is not going to mark a file as ReadOnly on its own, what are you doing differently? I know the language. I've read a book. - _Madmatt
|
|
|
|
|
It might be that you forgot to close the connection to ms access...
|
|
|
|