When I attempt to save the record, I get an error: Invalid postback or callback argument. Event validation is enabled using. (and much more, you get the gist) Turning off event validation isn't an option. I've attempted to add code to the page render (RegisterForEventValidation) to get around this to no avail. Is there an accepted way in ASP.NET 2.0 to add items dynamically to a dropdownlist via the client and to have the ddl postable after that?
i have place some .txt files in my web application root directory. now i want to open a popup on button click with save button so that client can save this file on his/her PC. also can we auto set the path??? mean client jst press save button and file automatically stored his "D:\Foldersample.txt".
I have a webform (parent) with embedded webgrid(child) which uses sqldatasource. What I wanted to accomplish is to save both the form data and the grid data when the Save button is clicked. I tried to save form data(parent) in sqldatasource1_inserting event, does not work. I think there should be a way to do it, just do not know how.
I have a dinamically gridview, populated according with the SQL sintaxe from the user, with a TextBox. I enable in the gridview an Edit button, and the rowEdit works well when fired. But my problem is Update button. How to save the record edited, in a dinamically gridview, when I can't programatically set the fields to be saved? Ie, I need to iterating with all fields in the gridview edited record and update. How to do this?
I have another problem is that I have Placed a file upload control in Empty template of Gridview to have multiple record insert. I have used viewstate to save multiple record into database. But problem is that I am able to find the control but it not giving any value.I have following code.
I am using ListView for the first time. I have a requirement that in a listview if I Edit a record and before clicking teh Edit button of tthis record if i click on the "Edit" button in other record, my first record should be saved and second record should open in Edit mode.
I'm serving images through an httphandler and when the user goes to save the image via the right click save file browser, full URL of the image is displayed instead of only the file name. How do I rewrite or change this image url to make it more user friendly?[URL]
Or do I need to create my own image save/export menu and chop off that file name when saving?
I'm looking for a Speech SDK to use in VS 2005. I've come across an SDK that is designed to be used for VS 2003 Microsoft Speech Apoplication Kit 1.1 but can't find any info about 2005.
My app calls for creating spoken messages from data in an ASP.net or AJAX application. For example, I want it to say the Date/Time of a recording and then play the recording. The Date/Time is part of the database so I just want to be able to use a command like the following. (except on an ASP.Net page.
Dim voice As New SpVoice dim speakText as string = now.toshorttimestring voice.Speak(SpeakText.Text)
I have a one-to-one relationship on two tables with are represented by 2 classes in my EDM. I am trying to save a new record and am confused how to save to the second entity. I have tried the following.
Dim myObject as new MyObject myObject.prop1 = 5 myObject.prop2 = "Test" myObject.myOtherObject.prop1 = 3 myObject.myOtherObject.prop2 = "Hello"
But I get an error when I hit myObject.myOtherObject.prop1 = 3 because myOtherObject hasn't been initialized. How do I initialize an child object under myObject?
I am using uploadify for a photography site I am building. I have an HTTPHandler that I'm using to save the posted file. What I am wondering is if I can resize images, insert a record of the image into a db and save the image from the HTTPHandler? This is my first experience with HTTPHandlers so forgive me if there is an obivious answer for this.
the problem is when i am click on the button progreesbar is coming but after the completion of geterating the file (file Generated) but the button is still disabled and progressbar image is still showing.
for save to the xml file i am using this code after the xml write successfully.
I have a table in orcale database where I am inserting records. I am able to insert a record in a table but it is not being saved permenantly.When inserting there is no error. what could be causing this?
I came across a really useful tutorial on doing text to speech using vb.net and the Microsofts Speech API, the tutorial is herehttp://www.beansoftware.com/ASP.NET-Tutorials/ASP.NET-Voice-Speak.aspxy problem is that I don't know how to change the voice to microsoft mary, microsoft sam etc.. Here is the code that I have written Imports SpeechLibPartial Class _Default
Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
I am creating the user ,using asp.net + C#.there is the form (UI) who collects the information and send data to Business layer. now, while collecting the information from UI I want to also save the image of user, at file system in application domain.There is function in the business layer as SaveImage, which returns the path where it is saving. Scenario:1) Save image first and then save other information in DB.