I have two textboxes in a magic ajax Panel..
One textbox is to get the cardnumber(txtcardnumber) and another one is to get the PIN number(txtpinno)...Using this textboxes i have to get the corressponding values and then click the button(btnbuy)to proceed further and clear button(btnclear) to clear values in the text boxes.. Everything is ok till this ,but after the process is completed the clear button is not firing..Any one help in this regard..
I want to connect database(sqlserver2000) in .aspx file Not in Code behind File.
I assume you are using ASP.NET 2.0. When creating new ASPX page, visual studio will ask where you want to place the code. Single file or separate file. Choose single file , In this you can write all your code in ASPX file. Use the connection as usual here.
You can put it in your Web.config file in connectionStrings section , if .net 1.1 does not contain it, you can put it in appSetting part. You can see in MSDN how to read these settings from web.config.
I am using a custom Membership provider, and when a user is registered I want to send him/her an e-mail to complete the registration process. On codeplex, after you have regsitered they send the following email with a link in it:
Normally just after you have registered the system signs you in automatically. How do prevent this?
It depends the programmer who did it. If you don't want the system to be logged in automatically, don't create the sessions automatically after the registration process. Redirect user to login page to login manually. If you want to send a confirmation link then make a page for confirmation. Generate a link with a unique id to identify the customer. When the page is loaded change active flag in the DB which allows them to login.
Plz help me,i want to match textbox value to table'a value like in below code E_CODE.when i write ds.Tables["EMPLOYEE"]["E_CODE"] it gives error like
Can not apply indexing with  to an expression of type System.Data.DataTable.
I m using asp.net with C#
strSelect = "Select E_CODE from EMPLOYEE";
da.SelectCommand = new SqlCommand(strSelect, conn);
for (int i = 0; i < ds.Tables["EMPLOYEE"].Rows.Count; i++)
if (txtECODE.Text == ds.Tables["EMPLOYEE"]["E_CODE"])
string strSelectall = "Select * from Employee";
da.SelectCommand = new SqlCommand(strSelectall, conn);
GrdEmpInfo.DataSource = ds.Tables["EMPLOYEE"];
I don't think there is anyway to implement.
Although their names looks very similar.
I think you should change a method to do this.
Because one use Image Stream,another(WebControl.Image) use a ImageUrl.
You've already got a System.Drawing.Image object,you can save it for a temporary file,then give the WebControl.Image instance correct path.
Overload the Page's Render,after base.Render() then delete the temporary file.
Hai to all,
Here i am able to give onle integer values.If i want the same for decimal values,how i have to give the code???
Here i am giving my code for integer values
int v1 = document.getElementById('txtinspected_f').value
int v2 = document.getElementById('txtinspected_m').value
if ( !isNaN(v1) && !isNaN(v2) && !isEmpty(v1) && !isEmpty(v2) )
int baln = parseint(v1) + parseint(v2)
obj.value = baln
alert("Please fill the fields with valid numbers")
if (txt == "")
and on the pageload,txt3.attributes.add("onclick","getBal(this)")
I have tried with float isstead of Int,but the result is not coming.
Is there any other way to get sum of two different txt's into third textbox.
please give me some idea.
also how to get morethan two zeroes(for decimal part) in a textbox while we enter a value.
THanks in advance