|
Hi all...
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..
Regards,
Balaguru
|
|
|
|
|
Hi to all,
I want to connect database(sqlserver2000) in .aspx file Not in Code behind File.
Mohan balal
|
|
|
|
|
Mkanchha wrote: 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.
|
|
|
|
|
I am using asp.net 1.1, I want database connection code in .ASPx file. If you have some code or example Please Post it
Mohan Balal
|
|
|
|
|
There also you can put your code inside the script tag and making it runat=server
Best Regards,
Apurva Kaushal
|
|
|
|
|
Yup you can do so...just like asp...
<< >>
|
|
|
|
|
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 .
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
I am using a C# custom dll in my biztalk project, that dll is deployed in Global assembly. This dll reading some value from App.Config file using ConfigurationManager class.
But after deploying the dll to Global assembly, how will this assembly get the value from app.config file or anything needs to do to deploy this app.config file into somewhere....?
Regards
R.Arockiapathinathan
|
|
|
|
|
i want to handle image using kodak image edit for a data entry screen
sathish
|
|
|
|
|
What is kodak image edit?? can you give the link of it?
<< >>
|
|
|
|
|
kodak image edit is active x control it is most using in vb
sathish
|
|
|
|
|
Hi,
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:
https://www.codeplex.com/UserAccount/ConfirmRegistration.aspx?UserName=myusername&ConfirmationCode=rdJCzEfKcRvshBqa1YBYQr
Normally just after you have registered the system signs you in automatically. How do prevent this? I want the user to sign in manually.
Please can someone advise me?
Regards
ma se
|
|
|
|
|
ma se wrote: 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.
|
|
|
|
|
Thanks.
But the membership registration does everything for you, right?? Isn't it a property that I must set somewhere to not have the user signed in automatically??
|
|
|
|
|
Hi there,
I am also learning about membership...just set LoginCreatedUser property to false (default it's true)
<< >>
|
|
|
|
|
Hi
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#
conn.Open();
strSelect = "Select E_CODE from EMPLOYEE";
da.SelectCommand = new SqlCommand(strSelect, conn);
da.Fill(ds, "EMPLOYEE");
for (int i = 0; i < ds.Tables["EMPLOYEE"].Rows.Count; i++)
{
if (txtECODE.Text == ds.Tables["EMPLOYEE"]["E_CODE"])
{
ds.Clear();
string strSelectall = "Select * from Employee";
da.SelectCommand = new SqlCommand(strSelectall, conn);
da.Fill(ds, "Employee");
GrdEmpInfo.DataSource = ds.Tables["EMPLOYEE"];
GrdEmpInfo.DataBind();
}
Thanks
Care Career
|
|
|
|
|
Care Career wrote: if (txtECODE.Text == ds.Tables["EMPLOYEE"]["E_CODE"])
It should be ds.Tables["EMPLOYEE"].Rows[i]["E_CODE"].ToString();
Best Regards,
Apurva Kaushal
|
|
|
|
|
handling image as a different layer in asp.net
sathish
|
|
|
|
|
babusat wrote: handling image as a different layer in asp.net
What do you mean by a different layer ?
|
|
|
|
|
Hi there.
Can anyone help me. I need to convert System.Drawing.Image to System.web.UI.Webcontrol.Image so that i can display an foto in a imagebox.
Thanks
|
|
|
|
|
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.
Good luck!
|
|
|
|
|
Hai to all,
Here i am using javascript for adding two different values(txt1,txt2) and the sum shd come when we click on the third txt3.
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
function getBal(obj)
{
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
}
else
{
alert("Please fill the fields with valid numbers")
}
}
function isEmpty(txt)
{
if (txt == "")
{
return true
}
else
{
return false
}}
</end script>
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
Regards
<div class="ForumSig">kissy</div>
|
|
|
|
|
hullo,
new to asp.net,just reading a couple of e-books,but wondering why i would i would turn on autopostback for a control,an example would be good on my part?
cheers
waskira
The nature of your experience depends on the nature of your view
|
|
|
|
|
you can use it when you are using a drop down, and you want to change some data on your page when value in drop down is changed. you can it like this with radio button and check box too.
Regards
Shajeel
|
|
|
|
|
thanks,makes pretty much sense now,What you are saying is that,if i want to change the values in all the other fields related to those in dropdown,i set the dropdown to autopostback?
Is this what you mean?
|
|
|
|