|
Thank you for your reply it was very impotant
|
|
|
|
|
Hello All
I have created an ASP.NET 2.0 DetailsView and am binding it at RUNTIME to a dataset by doing this
DetailsView1.DataSource = ds
The control is in Edit Mode and when it is loaded I can see the data fetched from the database.
But when I want to update the data in the DetailsView into the database , under the ItemUpdating event I call DetailsView1.UpdateItem(True) method.This unfortunately does not work.
My Questions are
1. Is it possible to use this method when the control has been bound at runtime? Cause all the code snippets I have seen so far are oing it at design time
2. If it is possible is there any property thats needs to be set OTHER than CurrentMode = 'Edit'?
3. Is there any way to access the value in the textboxes of the DetailsView at runtime
Thanks and Regards
Ramya
Ramya V
|
|
|
|
|
ramya.venkateswaran@gmail.com wrote: 1. Is it possible to use this method when the control has been bound at runtime? Cause all the code snippets I have seen so far are oing it at design time
Yes. But if you don't provide the DetailsView control with a datasource control you then need to create an handler for the ItemUpdating event of the DetailsView and put your code to execute the update command.
ramya.venkateswaran@gmail.com wrote: 2. If it is possible is there any property thats needs to be set OTHER than CurrentMode = 'Edit'?
You can use the ChangeMode method.
ramya.venkateswaran@gmail.com wrote: 3. Is there any way to access the value in the textboxes of the DetailsView at runtime
You first need to get reference to the TextBox using the FindControl method, you then can access the value of the control.
|
|
|
|
|
Open/Save word documen in the server
i need to open the word document in the server and display it
to the user, and save changes if any to the server back
i am able to open and display it in explore (.doc file is in url)
but save back to server ?? so for this i need some control with in with
i can open and save ,
if any of u had gown through the same problem.
pls respond
Understanding comes from failures
SUCESSES comes form understanding failures
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
Dear all,
I have a submit button, two dropdown list, one textbox and some check boxes. I want to validate the form. The problem is I used javascript function for validating check boxes and validation control for rest of the controls. I add button.attribute.add() for adding javascript.
But at the same time they are not working. only javascript function is working ,validation control not working. If i comment button.attibutes.add() function then only validation controls working.
I want to work both valiadtion control and javascript function at client side. Please suggest any option
Thanking You
BInu Varghese
|
|
|
|
|
Hi,
The validators used in .NET are client side validators. And javascript is rendered for all the validators that you use in your project.
But, if you add both , you can.
Give me the code, I'll try to help you out
Thanks,
Sushant Duggal.
|
|
|
|
|
Hi! How can I do file uploading without postback on the page? How I can understand it's possible with Ajax...
Sorry, for bad english...
|
|
|
|
|
Try this[^]
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
hi all,
I have create one ascx file,then i called my aspx form in Programmatically
this is the code
Dim c1 As Control = LoadControl("Web.ascx")
Page.Controls.Add(c1),Problem is i want add linkbutton,
Dim link As System.Web.UI.WebControls.LinkButton
link = c1.FindControl("linkbutton") but error showing,
this is the error
Control '_ctl0_LinkButton1' of type 'LinkButton' must be placed inside a form tag with runat=server.
cheers
|
|
|
|
|
When adding controls dinamically to a page, you should add them inside a placeholder control.
This assures that your controls will render correctly. Sometimes when not adding the controls in the place holder they will work other times they won't. Just like in your case.
So, add a place holder control in the page controls collection, then add your linkbutton inside the place holder.
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
Because you add the dynamic control to the Controls collection of the Page instance, so it is placed outside the form element which is a child of the parent Page. So like Mircea suggested, you simply place a container like PlaceHolder control onto the web page inside in the form element, and add the dynamic control to the container.
|
|
|
|
|
Sir,
The problem is
dim a as integer
a = 15
a = 15 / 10
Answer comes 2 because a = 1.5 and a is rounding off to 2.But I want 1 . Please solve the problem.
Thanks and regards
Amaneet Brar
|
|
|
|
|
Declare variable 'a' as double.
|
|
|
|
|
The / operator is a floating point operator, not an integer operator. What your code really is doing is this:
Dim a As Integer<br />
a = 15<br />
a = Convert.ToInt32(Convert.ToDouble(15) / Convert.ToDouble(10))
Use the \ integer operator instead:
a = 15 \ 10
If that doesn't help you need floating point operations after all. Use the Floor method:
a = Math.Floor(15 / 10)
---
b { font-weight: normal; }
|
|
|
|
|
Hi all,
iam currently developing a website. in the home page,client needs a option to view the site both in 'English' or 'tamil'. how to achoeve it. Should i have to develop separate pages for different languages? Plz help me out with some examples
Regards,
Boon
|
|
|
|
|
u can save language object text in database and to change language set one switch example dropdownlsit with languages then in selected index changed of dropdownlist u can load object's text in selected language in your dropdownlist.
|
|
|
|
|
|
hi all i want to know about how to create random images with a random 6 digit number in asp..have ever seen this on any page like yahoo new user .....
Please give me detail how to do this task in asp.
Thankyou
Life is not easy ,let's make it.
|
|
|
|
|
|
Sir,
I am dividing 10/2 , the remainder will be zero.I want to find the remainder progrmically.Please send the code
Thanks and Regards
Amaneet Brar
-- modified at 3:56 Saturday 10th June, 2006
|
|
|
|
|
Please don't cross post. Also, just a suggestion if you want your questions answered: Don't just ask for the code. Nobody will bother to write it for you, if you're just gonna copy paste in in your application, and not even care to understand how it works, or to understand the ideea behind it. It is unprofessional. Remember that the people who answer these forums are here because they want to help others when confrunting with problems. Not writting their code, knowing that the person will not even bother to think about it. That is a waste of their time.
Personally I don't answer any of the questions that ask just for the code.
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
Hi Developer
Any one here who has succesfully integerated with Paypal Payment Pro using ASP.net.
Please let me know from where I can get help related this topic. I am very short of time please reply sooon.
Thanks in advance
Lets work it Out.........!
|
|
|
|
|
|
sir,
I have a string called "This is a string" .Now I want to select some portion of the string eg "this is" and remaining part will remian unselected.after then the string will be inserted into the label control where the selection will reflect on the "this is" string(I mean blue colour will be the background of the string).Like in search toolbar where the search keywords will be inserted in the textbox finally the search description comes withe selected searched keywords.I hope you are getting my question what I mean to say.Please send the code for that.
Thanks and regards
amaneet brar
|
|
|
|