am having two textboxes and a label in a gridview control, i am adding a javascript function to the second textbox onblur event attribute and display the result in the label, the function works fine and result is displayed in the label, but when i am saving the grid data into the database, the label is returned 0 or empty, but i am able to see the value , how to overcome this.
I need to save some data and return the ID that is created in the SQL 2005 database. I need the ID to pass to another object before saving that so I can associate them correctly.
What is the best way to accomplish this with Ext? Is there anything built into the Framework that makes this simple?
function AddPromotionType() { var currentDate = new Date(); var newTypeJsonObject = { promotionTypeId: '0', promotionType: Ext.getCmp('txtPromoType').getValue(), updatedBy: userid,
i am having two textboxes and a label in a gridview control, i am adding a javascript function to the second textbox onblur event attribute and display the result in the label, the function works fine and result is displayed in the label, but when i am saving the grid data into the database, the label is returned 0 or empty, but i am able to see the value , how to overcome this.
i have formview which i populate with some data that coming i store inside class, inside the form view there are two textbox controls that are "hardcoded" inside the FV markup and an ASP Table:
[Code]....
its all work fine, but once i press on the update button inside the formview the page get reloaded with the two "hardcoded" controls that in the markup but all the controls that i added during run-time are no longer there!
i can see them in the form collection but they not visible in the page.
I have an aspx page that loads a static graphic and put session strings in it. I used Image1.Save(Server.MapPath("gen_img2.jpg"), ImageFormat.Jpeg), but it's not saved on the server. I thought this was a user permission problem, so I assigned the ASPNET account write permission to the folder, and it still doesn't work. Did I use the wrong account? I use winserver 2003 and IIS 6.
I have a text field into which I'm saving order details, using LINQ to SQL.
Each order may have a different number of columns, depending on the type of order, so I thought I'd just create a single structure to take care of everything, and display details in tab delimited columns.
The text is created properly prior to saving to database:
[Code]....
However, when stored in the database, the spacing is no longer maintained.
i am having problems with an asp.net c# site whereby i am setting a session state object to true and then redirecting to another page that needs to check the value of the session state object and it is null.
Sometimes it is set correctly and other times is is simply null.
When i debug on my local machine it works perfectly every time. Only when i upload to my web server does this temperamental behaviour happen.
As it is based around the security of the site it is obviously important that the session data be valid and accurate every time.
Is session state data unreliable?
AFAIK its set to inproc, cookieless, 30 min timeout, vanilla installation of IIS.
Does anyone have any suggestions? Perhaps i need to thread.sleep inbetween the storing of the session data and the reading?
NB: the time between the write and the read is about 70ms.. ample time for the data to be written to RAM.....
i let the user to edit and save the pdf file How to do this is there any api from adobe for controlling pdf file in asp.net web page can i have some sample codes
I write the following code but there is an error. I just want to retrive the image which I have save into tha database from the sql server and to display in the picture Box(image)
I don't believe the built-in membership saves username in session, does it? If I'm not mistaken it's saved in a cookie.I've implemented the ImageManager add-on for tinyMCE and trying to set the default folder for images based on authenticated user's username. Looks like out of the box, ImageManager allows this by getting the username from session.
I am converting my datetime object with current date and specific time 23:59:59 as shown underneath.
[Code]....
But when I check in my sql table datetime column, it is changes seconds part of time from 59 to 00, so for instance, if I have a datetime, 2010-08-11 23:59:59, it changes this to 2010-08-11 23:59:00. How should I fix this.
In the following code i want to save the value selected by user from drop downlist into database. but whatever value is selected by user, first value is saved to database
I'm saving many text files. Filenames are urls. File has whole html of webpage from url. All text files are saved in one folder.
My problem: I need to compare two files of same url, but how?
filenames of same webpage are the same, I cant save 2 files with the same name.add version of url is stupid because I cant add it into my webapplication.
used Ajax.BeginForm for form submitting.For the fields I want to show watermark if there is no data in database.But on submitting watermarks are saved in database.
I followed the following linkhttp://weblogs.asp.net/justinsaraceno/archive/2008/02/22/reorderlist-with-objectdatasource.aspxand manged to make the orderlist work fine except one thing and probably the most importent thingwhich is saving the reorder back to the databasewhat I changedfirst I'm using it as a c# web form inside a visual basic.net website. Is this OK?second I changed the connectionString to point to my database wich is in SQLEXPRESS ( NOT ATTACHED in App_Data inside the website as the example shows)third I changed the select and update statements and parameters to my needsafter all that it works but without saving the reorder back to databaseReorderClass.cs
I have created a panel which is invisible, when the record is saved I display the panel instead of showing a messagebox.
I wanted to make the box go away after a while so added jquery to my page and used the fadeOut function to fade the div away after a few seconds as I wanted to avoid it being displayed all the time:
[Code]....
This works by simply making the panel visible when the save button is clicked on in code behind. However every postback after this the panel is still visible so the function keeps going. Obviously I can't make the panel invisible again on page load as otherwise it will never work.
I am currently learning vb.net with sql. I have two textboxes (txtValue and txtText) , a dropdownlist (ddl1) and save button (btnAdd). I insert value to txtValue and txtText (eg: txtValue: A and txtText: Apple). When I click button Add, The value will display in dropdownlist (like this; A - Apple) and both data will be save in the sqlserver (db).
I am having issue where when i click button Add, the data is not display in the dropdownlist. But when i refresh my browser, the data will display in dropdownlist.
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load If Page.IsPostBack = False Then Dim rs As DataSet ddl1.Items.Clear() ddl1.Items.Add("")
I bind my data to say GridView or Datagrid or Repeater and give user the ability to remove columns and save his preference and to show the saved preference when he logs back again. (In nutshell customizable Grid.) How to go about it?