|
problem is solved now it was a javascript issue, but it was not caught in webdevelopment server. Thanks
Shankbond
|
|
|
|
|
i have 2 listboxes & 2 button. In 1st listbox, there are some items when i select many items from 1st listbox & press button1 then selected items add in 2nd Listbox & remove from 1st listbox. Afterthat i select many items from 2nd listbox & press button2 then selected items add 1st listbox & remove from 2nd one.
How to do this?
|
|
|
|
|
Did you try to implement this? Just you need to need remove few items from Listbox and adding it into another Listbox.You do easily on the buuton's event. What is the problem? Cheers!!
Brij
|
|
|
|
|
|
Yoy may try this.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Do While listbox1.SelectedIndex >= 0
listbox2.Items.Add(listbox1.SelectedItem)
listbox1.Items.RemoveAt(listbox1.SelectedIndex)
Loop
End SubSigurd Johansen
|
|
|
|
|
hi,
i want to display loading image when i change the dropdownlist index and depending on that another dropdownlist wil load the item.So on that time i want to display the loading.gif image and user can able to know that item is under loading.i am using ajax on postback to load items on dropdownlist.
So any one able to help me to show this image on postback of loding dropdownlist.
Thank you.
|
|
|
|
|
You must be having that loading image. Before postback just show that image from javascript and when you get the data from server ,before showing it hide the image.
Let me know if you face any issue.Cheers!!
Brij
|
|
|
|
|
if you have any code for that then please forword me.i need it.
|
|
|
|
|
Do one thing,On selection Changed event of you dropdown, put the fistline of code as
image1.style.display=''
and the last line in selection Changed event put
<code>image1.style.display='none'</code>
This will also resolve you problem.Cheers!!
Brij
|
|
|
|
|
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
|
|
|
|
|