|
image1.style.display ,display is not the propery of style. any other soliution
|
|
|
|
|
Sorry, that format works in javascript. I c# do it as
for not showing
image1.Style.Add("display", "none")
and when you have to show then
image1.Style.Add("display", "") Cheers!!
Brij
|
|
|
|
|
|
Hi,
I am getting problem on, i had a login page which it is inherited to the master page means for userid and password will be on the top of the corner page to which login, my problem is if i click on the register page it transfers to the register page but when i try to login from that page error is raising on javascript which i kept the function on key press enter after entering the user details. for example i checked the functionality in the codeproject page username and password, if we click on register page it takes to the register page from here if i enter the user details and press enter it is working .could anyone help to resolve this problem.
Thanks & Regards,
Nath
|
|
|
|
|
Can you please also provide some code to explain what are you saying, in this it is not clearly understandable
|
|
|
|
|
function doClick(buttonName,e)
{
//the purpose of this function is to allow the enter key to
//point to the correct button to click.
var key ;
if(window.event)
key = window.event.keyCode; //IE
else
key = e.which; //firefox
if (key == 13)
{
//Get the button the user wants to have clicked
var btn = document.getElementById(buttonName);
if (btn != null)
{ //If we find the button click it
btn.click();
event.keyCode = 0
}
}
}
this is the javascript function which i used when user cliks on enter button to login. please could you check the functionality of the codeproject dont sign in the page click on register page you will be redirected to the register page at the same time you can login to the code project by giving your user details and click on enter button it is working even when you are in register page i had the similar to that but when i was in register page if i try to enter any letter in the userid and in password javascript error is firing
|
|
|
|
|
Can you post the error details? Cheers!!
Brij
|
|
|
|
|
Microsoft JScript runtime error: Object expected when i was entering a user details in emailid or password for every single letter the same error repeating. This is of due to while i was entering the details to login, the current page is register page
Thanks & Regards,
Nath
|
|
|
|
|
function doClick(buttonName,e)
{
//the purpose of this function is to allow the enter key to
//point to the correct button to click.
var key ;
if(window.event)
key = window.event.keyCode; //IE
else
key = e.which; //firefox
if (key == 13)
{
//Get the button the user wants to have clicked
var btn = document.getElementById(buttonName);
if (btn != null)
{ //If we find the button click it
btn.click();
event.keyCode = 0
}
}
}
txtEmail.Attributes.Add("onKeyPress", "doClick('" + lnkbtLogin.ClientID + "',event)");
txtPassword.Attributes.Add("onKeyPress", "doClick('" + lnkbtLogin.ClientID + "',event)");
in the master page i kept this coding on keypress enter to login
my problem is if i click on register page, if i want to login lying on the register page if i trying to enter emailid and password javascript error is firing for every single letter and if i continue and click on keypress it is firing for the register page and it is not logging in if i click on signin button it is working could you help me
Thanks & Regards,
Nath
|
|
|
|
|
suppose i have four hyper link in my page if user click on any hyper link then a file will be downloading in client machine. if user click on 4 links one after one then 4 file will be downloading in client machine. so i want that if user click first time on any link then a file will be downloading and if user click on second link when first file is downloading then i want to show a message to user that already one file is downloading from your IP and stop second file download. when first file download will be completed if then user click on second or any other link then another file will download in client pc. when file is downloading in client pc then we have no control over it and ever we not being able to know when download complete. so it is getting hard for me to implement by code.
i think from my question anyone can understand what i want that at a time one user can download one file at a time and will be able to download next file when first file has been downloaded in client pc.in this way i can restric the user to download large files more than one at a time.
how to implement this with code in asp.net. please help me with sample code or idea.
thankstbhattacharjee
|
|
|
|
|
You could store the user's IP address and time of download commencement in a database, and not allow another download for a certain period of time, eg: 30 mins... if they click another link, it checks if the time has expired, if it has, let them have the time and save the IP address and time, if it hasn't, don't let them download!
|
|
|
|
|
place a application state value at the end of the method(thread).
frequently check that AppState value. if present then your thread ends otherwise thread is in process
|
|
|
|
|
hi,
We have one web application. When we run this application first we will get login page there we given our credentials(Windows Authentication). It is working fine.
Now we deployed this application, now it is not redirecting next page even if we given proper username and password.
Can anybody help me how to resolve this one.
|
|
|
|
|
Tell me few things.
-Are your webserver is in same domain?
-Have you used ASP.Net membership provider or your own custom.
-What authentication mode you have have selected at IIS?Cheers!!
Brij
|
|
|
|
|
Hi,
I am trying to implement the Sqldatacaching in my application...am using asp.net2.0 and sql server 2005...
I dont know how to enable the notification services and all,, so can u anyone please explain me..
Thanks in Advance
kannak.....kannak
|
|
|
|
|
|
|
Hi,
Thanks for responding me...i got it how to enable the notification services and all.......
regards
kannak.........kannak
|
|
|
|
|
Cheers!!
Brij
|
|
|
|
|
i would like to know what is the component equal to servlet context in asp.netmodified on Tuesday, February 9, 2010 11:51 PM
|
|
|
|
|
I dont Know Much abt servlet context ..!But what are you tring to do ?If you tell what u want to do .Group can help you go in the right direction..!
Here most people dont know much abt java..!So you are asking the people who knows both languages..!That might not be a good idea..
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Please post your specific question.It'll better to get the answer. Cheers!!
Brij
|
|
|
|
|
i apologize; in my asp.net app i have a list of values taken from the db, for ex: list of items, this list
of items will be displayed in several pages in combo boxes. what i want to know is without going to db each time i need to show the items is there a way to take them at first attempt and keep them ,that will be used with in many pages.
what is the standard way ?
this can be done in java using the servlet context.
|
|
|
|
|
1.Create a class file for that particular table using GetSet method(Say Calss1)
2. Execute your Query (optional ExecuteReader)
if ExecuteReader
-----------------
SqlDataReader Dreader = thisCommand.ExecuteReader();
List<TblValue> lstTblValue= new List<TblValue>();
while (Dreader .Read())
{
Calss1 objClass= new Calss1();
objClass.TblFiled1= Dreader["TblFld1"];
objClass.TblFiled2= Dreader["TblFld2"];
TblValue.Add(objClass);
}
close the db connection
4. Now this list will have your returned column value, and objClass will have the result from the table for ever ( until next execution hits that class)modified on Wednesday, February 10, 2010 2:32 AM
|
|
|
|
|
If this list is user specific then you can put in Session varialble and if not User specific then you can put it in Application variable or Cache. Cheers!!
Brij
|
|
|
|