AJAX Calendar Extender / Textbox Values Always Null After Postback?

Nov 9, 2011

Im sure this is a very simple and easy to answer question but I've been looking at this too long and being new to ASP I cant seem to find a solution that works.

I have an ASP calendar extender, I click it and the calendar displays as expected, the selected date appears in the textbox, but when the page then posts back I cant get the selected date value from either the textbox.text or the calendarextender.selecteddate properties, I tested this by trying to assign these values to a string variable in the page_load event.

[Code]...

View 1 Replies


ADVERTISEMENT

.net - Error Associated With Ajax Calendar Extender

Mar 25, 2009

I have a textbox to display date.Onclicking on textbox ajaxcalendar has to be displayed infront of textbox .But now its coming behind textbox.So not able to select date.Can anybody help to bring calendar infront of textbox.

View 1 Replies

Use Ajax Toolkit In ASP.NET Page To Display A Calendar Extender?

May 31, 2010

I'm trying to use Ajax Toolkit in ASP.NET page to display a Calendar Extender with this code, but it's not working for me.

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

[Code].....

View 3 Replies

Ajax Auto Complete Extender Not Working Right

Mar 22, 2012

I'm trying to use an ajax auto complete extender, but it's not working. I put a break point on the GetCompanyNames method in the web service, but it doesn't even hit the break point.

Here is my ajax autoextender
<asp:TextBox TabIndex="1" ToolTip="* Required - enter the Company name" ID="txtCompanyName"
runat="server"></asp:TextBox>
<ajaxToolkit:AutoCompleteExtender runat="server" ID="acCompanyName" TargetControlID="txtCompanyName" ServiceMethod="GetCompanyNames" ServicePath="~/WebServices/AutoComplete.asmx" MinimumPrefixLength="1"
EnableCaching="true">
[Code] .....

View 1 Replies

Use AJAX Auto-complete Extender *without* A Webservice?

Apr 23, 2009

Using ASP.NET 3.5 with VB codebehind.

I don't want to use a webservice to populate an autocomplete extender on a textbox. In this case, it's where the user is entering email addresses and I don't want to make a trip to the database every single time. I'd much rather keep a collection in session state and 'bind' the autocomplete to that.

Is it possible to set ServicePath and/or ServiceMethod to something in the codebehind as opposed to a webservice?

View 3 Replies

Asp.net - DateTime In Calendar Extender?

Mar 11, 2009

I am using calendarextender control in asp.net.It displays only date ,not time.But while inserting to database ,time is inserted automatically.But while retrieving the data from database using date in where condition ,no correponding records displays.What modification in storedprocedure i can do to resolve this problem.

View 2 Replies

Asp.net - Textbox Values Disappear On Postback?

May 11, 2012

I have an asp.net page with a button that adds an additional row to a gridview for input to the database. The gridview consists of 3 textboxes(template fields), when I add a row the information already entered somehow disappears on the postback. I want the button to add additional rows without disspelling the data in the other rows, until I hit the submit button. Here's my code

Private Sub AddNewRowToGrid()
Dim rowIndex As Integer = 0
If ViewState("CurrentTable") IsNot Nothing Then

[Code].....

View 1 Replies

Postback Without Refresh On Dropdownlists (no AJAX)

Mar 29, 2011

Autopostback works but when one dropdownlist is selected the page refreshes. When the user select one dropdownlist, another dropdownlist will then populate if not its empty. After submitting the form, selecting dropdownlist will remove all the validation message. What i want to achieve is to have javascript to manually postback instead of using autopostback so that the validation message will still remain after selecting from dropdownlist but

View 1 Replies

Asp.net - Preserve Data-structure On AJAX Postback

Dec 29, 2009

[Code]...

The first time the page loads my structrure is filled correctly. After an AJAX postback all the structure fields are setting to nothing. (It seems that the Dim OldPInfo As New PInfo is called again), but i should better ask the SO Experts.

View 1 Replies

Allow Null Values To Appear On The Textbox?

Jun 3, 2011

what is the code for allowing null values to appear on the textbox

Dim i As Integer
dg1.DataSource = bs
i = dg1.CurrentRow.Index
Patient_Profile.Txtpatient_id.Text = dg1.Item(0, i).Value

View 3 Replies

Asp.net - Ajax Calendar Control Toolkit Style Sheet?

May 30, 2012

<style>
.ajax__calendar .ajax__calendar_invalid .ajax__calendar_day
{
background-color:gray;
color:White;
text-decoration:none;
cursor:default;
}

i apply the Style, it'snot working,, i want to change the style of the disabled date,,,

View 1 Replies

Asp.net - ASP Ajax Toolkit Calendar Control Defaults To Mm/dd/yyyy?

Mar 25, 2010

I have a text box which has a Ajax calendar extender attached. You click on the text box, the calendar pops up, you select a date and that gets displayed in the text box. That all good but the date is displayed in mm/dd/yyyy format. Can this be changed?

View 1 Replies

Calendar And NULL Date

Jun 23, 2012

I am working with calendar inside GridView using VB. I have some NULL date on the DDBB. I can fix the problem using EVAL, but when I try to save the date from the calendar, I got an error telling me that their is no @variable declared.[code]Everything is fine but I got: Must declare the scalar variable "@tDate" trying to save.This is beacuse I'm not using Bind, but with BIND I cannot run checkDate.

View 1 Replies

Change Calendar Default Value To Null?

Jun 24, 2011

how to change calender default value to null?

View 1 Replies

Keep The Values Of Checkboxes After Postback?

Feb 29, 2012

I have a checkbox in datalist, after the button is clicked(postback) the value of checkbox is cleared. For example, if the checkbox in datalist is checked, when the button is clicked the checkbox appears unchecked when getting it's value

View 2 Replies

.net - Datalist Not Retaining Values On Postback

May 20, 2009

I have a datalist control that is not retaining it values during postback when the control causing the postback is outside of the update panel that the Datalist resides in. I have verified that viewstate is on for that usercontrol as well as all its parent controls. My basic situation is that I have a Datalist that contains a user control on a page. When the user selects several rows in a grid and presses a button, a datatable is filled on the backend and assigned to the Datalist which has its item template set to the UserControl.

On ItemDataBound I set specific properties in the control which customize the messages on that control to the specific item. This is then popped up using the AJAX Control Toolkit Modal Popup[ Extender. When the user presses Save the whole page posts back. Data is collected from the user controls and saved to the DB and the popup disappears. The issue I am currently having is that the DataList has 0 items when the save button is pressed instead of the appropriate number. THis issue just started appearing after we upgraded from .NET 2.0 to .NET 3.5.

View 1 Replies

Asp.net - DropDownList After Postback All Values/index Lost

Jun 11, 2012

I'm running into a little problem with a gridview and a dropdownlist. I can get the dropdownlist to load initially, but when it autopostback's it returns with no value. I am populating the dropdownlist in the RowEditing sub. I'm guessing that I must somehow rebind in the RowDataBound sub, but don't know how to go about it. If I try to find the control's SelectedValue I end up with nothing.

VB Code

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then

[Code].....

View 1 Replies

Javascript - Unable To Get Hidden Values While Postback Of A Button In .net?

Mar 24, 2012

I am using asp.net.I have taken one Hidden value and assigning value to that hidden variable in Java-script.

aspx: <input type="hidden" runat="server" id="hdnProductionIds" value="0" name="hdnProductionIds" />
JS:document.getElementById("ctl00_ContentPlaceHolder1_hdnProductionIds").value = "123";

I want to use that hidden value in server side coding(vb.net). But while do-post back, hidden variable value becomes Zero (default value)

View 1 Replies

Reference A Textbox Value Without Postback?

Jul 15, 2011

I have a child aspx page in an iFrame. There are a few textboxes, which are populated in the page load event.

There is also a LinkButton which the user clicks when s/he is finished editing the fields. There are some javascript functions and other things going on, so a full postback (ie: asp button) is out of the question.

Problem is, I need to reference the textboxes NEW values (user changes) after the linkbutton is clicked.

After playing with the interface a bit further, I realized the Page_Load event was firing as soon as the LinkButton was clicked. Of course this is where the data is initially loaded, so any changes the user made is immediately written over. Current plan of attack is to create an IsLoaded cookie value and check if true before the mentioned code executes.

View 2 Replies

How To Insert Checkbox Checked Value To Textbox Without Auto-postback

Nov 27, 2010

I have unlimited asp.net checkboxes to my webpage .How to insert checkbox checked value to textbox without autopostback.I i check checkbox1 and checkbox2 then in textbox it appear as 1,2 ...and after when i uncheck checkbox1 then in textbox the value would be 2.and if i uncheck checkbox1 and checkbox2 then value in textbox is blank

View 1 Replies

Programmatically Created TextBox Retains Text Value After PostBack Even If Control Is Cleared?

Jan 21, 2011

I have a drop down menu, and based on which item is selected, I call a web service and then dynamically create some text boxes.The first time I drop down the menu and select an item, it works perfectly, and the text boxes are created and populated dynamically. However, the next time I drop down the menu (after the first postback), and select something different..fter the second postback, the original values remain in the textboxes.

View 2 Replies

Forms :: Calendar To A Textbox?

Oct 1, 2010

Im sorry if this is a stupid request but I cant find any information or at least any usefull information on this. I have a database program just now that requires information to be stored in a database.

Right now I have the users entering dates manually, and I would like to have a small image that they click to bring up a calender, select the date which will then be automatically entered into a textbox. The calender must be able to go back in time as well as forward.

Im fairly new to VB but have experiance in Java. Would somebody be able to either provide me with the code or at least a walkthrough how do it.

View 3 Replies

Use OnKeyPress Event With No Script When Textbox Is Inside AJAX UpdatePanel?

Mar 30, 2011

I have a asp:textbox inside an AJAX updatepanel. My goal is to be able to update other controls, such as a asp:listbox that is inside the same updatepanel, while I type in the asp:textbox. I can easily do this using javascript. However, I am under a restriction, that is, I cannot use javascript.

View 1 Replies

Form With A Calendar And A Textbox With 2 Buttons

Mar 15, 2012

I have a form with a calendar and a textbox with 2 buttons. The calendar is the vb 2010 tool and the textbox overlaps it so that when a day is selected on the calendar you can make an appointment for that day. i have a save button and a back buton.I am having trouble with the save feature there is always a file error. [code]

View 1 Replies

Forms :: Textbox Populated From Calendar?

Sep 17, 2009

I'm trying to create a form application in which the user is prompted to enter a date in a textbox by clicking on a button next to it that would popup a calendar. Then the user would select a date from the calendar and the textbox would be automatically populated with the date selection. The user could also just type it in, but I would like to have some kind of validation before accepting the date. I will be converting the date to an integer in this format YYYYMMDD to pass it to a query on a SQL Server 2005 database. Don't ask me why they're storing dates as integers I have no idea I'm just working with what I have hehehee. I've been looking online and trying different things but haven't been able to figure this thing out.

View 2 Replies

Right Click Textbox For Month Calendar?

Sep 7, 2009

How do you right click a textbox to show a month calendar and then when a date is selected the dateis stored in the textbox.

View 5 Replies

Allow Null Values In Listview?

Feb 16, 2012

I've come across an error I'm not quite sure how to get rid of, I've got a listview with listview items making up the grid, I've got values coming from a database populating the cells however if there are any null values(in this case, there's null values in the date) it crashes my program. I'm not quite sure of a way to allow the listview to have null values in it, I figured it would default allow it but that's not the case.[code]....

View 1 Replies

Column Does Not Allow Null Values

Jul 30, 2009

I have a databound DataGridView and use a button to control updates.

The problem is that if a db Column does not allow a null value an error is thrown ("Column <ID> does not allow null values") and then the datagridview automatically removes the row. This error is raised as soon as the user leaves the cell and before the update command is issued.

View 3 Replies

DB Null String Need Values

Jun 9, 2012

I doing a project for my office. In that I am showing the values and strings from a particular table based on the date range and vendor selection. It is working fine with the date range. Except within the date range if the particular reader has no data it throws an error message like dbnull string.

[Code]...

View 8 Replies

DirectCast & Null Values?

Jun 4, 2012

I have an SQL query that gets a max value so that I can decide the next value to use in an ID field. The code works fine when there's a matching result, but if the query returns Null, it throws a Specified Cast is Invalid error.This is the code I'm using:

LastID = DirectCast(SQLQuery.ExecuteScalar(), Integer)
What would be the proper way to check for a null value?

I suspect this is going to be one of those cases where within 2 minutes of posting myquestion, I finally hit upon the right combination of terms in Google to find what I'm looking for...

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved