|
put a onchange attribut into your select box :
...
and then write a JS function:
function copyEmail ()
{
var selectElement = document.getElementById ( 'yourSelect' );
var textElement = document.getElementById ( 'yourTextBoxID' );
textElement.value = selectElement.options[selectElement.selectedIndex].value;
}
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
hi CWIZO,
you helped me a lot cause the code you given is working great.thank you very much.
with regards,
susa
|
|
|
|
|
Hey no problem
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi,
I would like to be able to send emails from the asp.net 2.0 website when recovering a password using the password recovery control.
I do have the IP addresses for email Gateway and the mail server.
Where do I set these settings please? Is it somewhere in the web.config?
Thanks
|
|
|
|
|
There are two options:
+ Use the ASP.NET Web Application Administration tool to configure the SMTP settings for your app in the Application tab.
+ Manually configure the stmp setting[^] in the web.config.
|
|
|
|
|
I'm trying to pass the page object into a vb class contained in my project I understand that the call is:
classname(this)
but how would the Page object be defined in the class and in the parameter field for the constructor.
Thanks in advance
|
|
|
|
|
public classname(aPage as System.Web.UI.Page)
or import the system.web.ui namespace and just refer to it as page. You will need to add a reference to your project containing the class to the system.web dll.
|
|
|
|
|
Thank you for the quick reply.
I have another question, Can i then reference say a textbox from the page in that class?
how would I do that?
aPage.textbox?
|
|
|
|
|
My first suggestion would be to try it and see...
|
|
|
|
|
Its erroring as the class just knows its a Page but doesnt know the controls on the page so i think i'll have to find the control somehow
Thanks again
|
|
|
|
|
Try the controls collection. If you're using .net 2005 then you might want to read up a bit on what kind of issues you might get as the page is made up of two combinded partial classes (i think).
|
|
|
|
|
Yea I came across an article on that issue, the page.findControl(controlId) function will return the control and i'll need the contol collection to loop through dynamic controls
Thank you for your help
|
|
|
|
|
hi,
i have a txtbox in grid where user gives the input.i have to store the text into database. but iam unable to get the text. this is code iam using:
Dim TxtBox As TextBox = CType(DataGrid1.Items(count).FindControl("TxtTimings"), System.Web.UI.WebControls.TextBox)
Dim Timing As String = TxtBox.Text
Response.Write(timing)
please help
Thanks and Regards,
David Boon.
|
|
|
|
|
Are you getting an error? Where is this code running (in datagrid command event or after a button click?)
|
|
|
|
|
hi,
the code is written in button click event. iam not getting any error. the value is null and no action takes place
|
|
|
|
|
Dim TxtBox As TextBox = CType(DataGrid1.Items(count).Cells(indexOfCellWIthTextBox).FindControl("TxtTimings"), System.Web.UI.WebControls.TextBox)
I think that's the syntax - you could give that a try.
|
|
|
|
|
i have tried still not working
|
|
|
|
|
Hi,
I have implemented login security into the asp.net 2.0 web application.
Now I see that there is a file called ASPNETDB.MDF in the App_Data folder of the project. I do know that during the configuration I assigned a new database in sql server to keep these security settings, i.e users, etc...
My question is that is it ok to delete the .mdf file which is in the App_Data folder as it does not seem to be used?
And is it best to have one database in the sql server which holds the data as well as the security settings or is it best to have a separate database, i.e. one for data and one for the security?
Thanks
|
|
|
|
|
By default, the ASP.NET 2.0 uses the Local SQL Server Express database file in the App_Data folder as the data store for the services like Membership, Roles, Personlization ....If this file is not available, the ASP.NET 2.0 will automatically add it for you. So if you don't intend to use this file, you can delete it, and use the web.config file to configure a new database in your SQL server (containing both app data and securiry settings) for your application.
|
|
|
|
|
Hello every body
Could you please tell me how to open a new window from a page instead of redirect it with Response.Redirect or Server.Transfer?
Thanks
|
|
|
|
|
u can use the javascript window.open
coolsweety
|
|
|
|
|
i know the question is stupid but my client required popupdata on mouse over
so pls explain
1)can i retrive database in mouse over (scripting)
if yes give the demo
2) is there any metod to incoprate client side scripting and databseconnection
|
|
|
|
|
Make a new webpage in which you will display the data from database. Then show that window with javascript when you need it.
You can not access a databse from JavaScript.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
But you could use AJAX to callback and display the data. If it's just a tooltip you require, most server controls will provide that functionality and the data could be bound when the rest of the control is bound...
|
|
|
|
|
hi all,
im developing an application which has a textbox for mail id .i have a regular expression validator for that to check the mail id.my requirement is to check multiple mail id's if i enter into the textbox.i need java script for that.because with reg exp validator we can check only one mail id . please help me.
with regards,
susa
|
|
|
|