Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










Web Forms :: Repeater Losing Data On Postback


Private Sub UpdateOffensiveStats()

Repeater losing data on postback


View 2 Replies (Posted: Jul 03, 2010 03:37 AM)

Sponsored Links:

Related Forum Messages For ASP.NET category:
Web Forms :: Losing Data Across Postback?
I have an upload control (csv file) of which I use the stream to retrieve data in a datatable that I then bind to a datagrid, sitting in a repeater control.I have to bind more than one record to the repeater, therefore I need to find a way of storing the stream for each binding, so that I can bind it to the datagrid again, via itemdatabound event of repeater.

I have tried storing the stream in the repeater's datatable but on each postback, the content of the stream gets lost. The stream still exists, but its length is set to 0.I have tried storing it in a session object, but again it is reset to 0.

I have tried using viewstate but I get a xmlserialization error. Saying IXmlSerialization is not implemented.I am desperate to find a work around as I am feeling the pressure at work.

Posted: Feb 19, 2010 05:19 PM

View 3 Replies!   View Related
Forms Data Controls :: Losing Gridview Row Value On Postback?
i have a global field called hotelId. i then have this piece of code that gets a value from gridview row:

[Code]....

the local variable is assigned to my global one, which gets passed to my method along with other variables. while stepping through i can see the value is set, butwhen ihit the submit button variabl is passed to another method except my hoteId. it gets lost...

Posted: Nov 03, 2010 02:05 PM

View 3 Replies!   View Related
State Management :: Losing Data Between Postback?
I am in beginner level on developing web pages. I was coding on desktop applications and as you know it is easy to say that web applications are extremely different than desktop applications.

I wonder why data are lost between postbacks.???? And what is the best way not to lose the data belonging to a specific control (especially gridview). Session or viewstate or anything else?

Posted: Mar 27, 2010 08:44 AM

View 10 Replies!   View Related
Web Forms :: Avoid Losing Dynamic Controls On Postback Event
I have dynamic controls added during page load.Ihave the following codeIf Not Page.IsPostbackthen do nothing. Now the question is why the controls are still on the page but it's not visible (accessible) from server-side method?

Posted: Sep 08, 2009 04:44 AM

View 2 Replies!   View Related
Forms Data Controls :: Getting Repeater's Field Value Without Postback?
i use div and repeater to show categories for searching part. there is a div. when iclick it, repeater opens and if i select a category its name shows on div. this part is ok.Now i do searcing. so i have to take the span's value(or repeater's value).

Posted: Nov 28, 2010 08:42 PM

View 2 Replies!   View Related
C# - Losing The Session After The Postback?
I have been using session variables in my asp.net application for passing the next property:

[DefaultValue(true)]
public bool IsModificationMode
{
get
{
return (bool)Session["ModificationMode"];
}
set { Session["ModificationMode"] = value; }
}

In the PageLoad, I set it's value.

Now after the Postback, I am losing it's value having a a NullReferenceException

Posted: Sep 1 10 at 11:14

View 4 Replies!   View Related
Losing Textbox Value On Postback?
In a page I have a link; clicking on it opens a dialog and sets a textbox value for that dialog.

However, once I click on submit in that dialog, the textbox value is null.

Link:

<a href="#" onclick="javascript:expand('https://me.yahoo.com');
jQuery('#openiddialog').dialog('open'); return false;">
<img id="yahoo" class="spacehw" src="/Content/Images/spacer.gif" /></a>

[Code].....

Posted: Jun 9 10 at 7:49

View 2 Replies!   View Related
Forms Data Controls :: Firing Postback From Repeater Row Click?
I have arepeater which contains a hiddenlink button that fires when I clicka row in my repeater.

Here is the markup for my repeater:

<div id="divResults" style="height: 290px; overflow-y: auto;">
<asp:Label ID="lblNote" runat="server" Text="Note: select a row to edit."></asp:Label> [code]...

Here is the javascript thats added to each row in therptLocations_ItemDataBound:

Row.Attributes.Add("onclick",
"javascript:__doPostBack('ctl00$mainContent$rptLocations$ctl0" + (e.Item.ItemIndex + 1).ToString() +
"$lbtn_SelectRow','')");

When I click the repeater row it fires the SetLocationControlsmethod. As you can see my repeater is wrapped in a DIV of height 290px. When the are more than 9 rows in my repeater you have to scroll the div down to view this row. When I click this row it does the postback but doesn't fire the SetLocationControls method. I've had a look in the source it's created the click event to the repeater row like all the other rows. why this method isn't firing on the rows that aren't initially visible in my DIV?

Posted: Jul 19, 2010 01:47 PM

View 21 Replies!   View Related
Forms Data Controls :: Change Literal In A Repeater After A Postback?
I want to change the value of a literal within a repeater ItemTemplate after postback, based on a value detected at postback.I can't render the whole repeater again though I think because it's actually a radio button in the control that inititates the postback and so I need that control / value to be persisted.

Posted: Jul 09, 2010 01:29 PM

View 1 Replies!   View Related
Listbox Losing Selection After Postback?
I enabled postback and viewstate. So shouldn't my listbox remember what was selected after the postback?

<asp:ListBox ID="ListBox1" AutoPostBack="true" EnableViewState="true" runat="server"></asp:ListBox>

Posted: Sep 28th, 2009, 05:22 PM

View 2 Replies!   View Related
Hidden Field Losing Its Value On Postback?
I have a ascx page where I am using a hidden field to store the value of a the drop down box as it is generated using a google address finder. My problem is that when I try to store the value directly in the hidden field :

hfDdlVerifyID.Value = ddlVerifySS.SelectedValue;

in the event of a button click, the value is stored but on postback is lost again. Whereas, if i try to use Scriptmanager to do it, nothing is stored.

getBuild.AppendLine("$get('" + hfDdlVerifyID.ClientID + "').value = $get('" + ddlVerifySS.ClientID + ").value;");
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "storeHidden", getBuild.ToString(), true);
// Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "storeHidden", getBuild.ToString(), true);
string test = hfDdlVerifyID.Value.ToString();

[Code].....

Posted: Jun 7 10 at 19:57

View 1 Replies!   View Related
Losing Most Of The Page Content On Second Postback?
I have a form with a update panel. This posts the form and validates it. Returning a errorMessage string of any invalid field such as "Field xyz is a required field, Field abc needs to be a quantity"

When I enter incorrect date it posts back fine and displays the text in a div at the bottom of the page which the update panel is aimed at to update. (and only this it should be changing)

This works but the second time I hit say (say i enter invalid data twice) the Complete form will disappear leaving me with just the banner of the site and the error message that is returned.

Ive tried commenting out the entire of the code post back so that the button doesn't actually do anything but it still has the same problem(of course this time it wouldnt have a error message created)

So i can only think it is something to do with the updatepanel itself and how it works but i have been staring at this for ages and have no more ideas!

Posted: Jul 5 10 at 10:48

View 2 Replies!   View Related
State Management :: Literal Losing Value On PostBack?
Never had this happenbefore. I just upgraded my site from 3.5 to 4.0. Here's the scenario:

1.) I have a literal ona webform, in anUpdatePanel.

2.) On PostBack, the Literal's "Text" property loses it's value. The ViewState is enabled throughout the page. Further, I changed the Literal to a label and it also has this problem. The TextBox's appear to keep their values.

3.) If I remove all of the Ajax controls(which currently is just the UpdatePanel and the ScriptManager) then the Literal control keeps it's value through PostBacks.

4.) There is no client side JavaScript where I'm manually changing the values of these controls. They are only editted in the server side events.

I have read that setting the AutomaticDataBind property in the web.config could remedy this but I can't find any documentation on it and I don't know where to put it in the web.config to even try it.

Posted: Dec 13, 2010 05:51 PM

View 7 Replies!   View Related
AJAX :: CascadingDropDown Losing Selected Value On PostBack?
I am using the AJAX Contol Toolkit and 4 CascadingDropDown extenders with an ODBC connection in a Web Service. The original load of values in each level works great. I then use these values to set the create the SQL for the SelectCommand for a Gridview.

The problem I am having is that when I submit the page to perform the search, the first 2 dropdowns repopulate and set the selected index accordingly, but the 3rd dropdown does not retain its selected value. It does populate with the values, but the selected value does not get set.

The correct values are available for the SelectCommand which returns the correct values.

Posted: Nov 19, 2010 09:01 PM

View 1 Replies!   View Related
Forms Data Controls :: Property Of Custom Control In Repeater Is Null On Postback?
A common problem in repeater controls where you want to display data for update (like a list of user phone numbers that can be updated and submitted back to the database) is where to store the database unique row identifier. So, I created a custom Textbox control that I've added a Data property to. I populate this data property with the unique row id. The problem is that when I post back the list and go through the repeater items the control's data property is null. The custom control looks like this:

[Code]....

The tag in the repeater looks like this:

[Code]....

I have a custom checkbox with the same data property and it works fine. I actually put in the same repeater with the textbox control and the checkbox control have the row id on postback but the textbox did not. Is there some limitation on the textbox control that might be causing this.

Posted: Jan 12, 2011 09:27 PM

View 1 Replies!   View Related
Javascript - Disabled Radio Button Losing Value After Postback
I have two radio buttons that are disabled with javascript when the page loads. RadioButton1 is checked by default. When I click the button to do a postback, the RadioButton1 is no longer checked.

Here's my code sample. The code behind is empty.

<asp:RadioButton ID="RadioButton1" runat="server" GroupName="group" Checked="true"/>
<asp:RadioButton ID="RadioButton2" runat="server" GroupName="group" />
<asp:Button ID="Button1" runat="server" Text="Button"></asp:Button>
<script type="text/javascript">
window.onload = function () {
var RadioButton1 = document.getElementById('<%= RadioButton1.ClientID %>');
var RadioButton2 = document.getElementById('<%= RadioButton2.ClientID %>');
RadioButton1.disabled = true;
RadioButton2.disabled = true;
};
</script>

Posted: Feb 14 at 22:52

View 4 Replies!   View Related
Checkbox Losing Value On Postback Due To JavaScript / JQuery Array?
I have a simple asp:RadioButtonList within a form tag but for some reason it isn't keeping it's value on postback

Here's what I've got

[code]....

Posted: Feb 1 at 10:17

View 3 Replies!   View Related
AJAX :: Losing Javascript Events On Async Postback?
I am creating a ASP.Net server control to manage locations. The control is a composite control containing severaltext-boxes,labels, and a link button. I use the AJAX Control Toolkit to provide a modal popup which contains a Bing map. All the Javascript is in its own file and used as an embedded web resource.

The link button is what opens the modal popup. It also needs to call a Javascript function that initializes the Bing map (onclick = "GetMap();"). There are instances when this server control is placed within an Update Panel (and there is no way to avoid this). When in an Update Panel the link button loses its onclick event. I understand that this is because during an async postback the portion of the DOM that defines the content of the Update Panel is thrown out and reinitialized, resulting in the event breaking.When the control is not in an Update Panel everything works as intended.

I have tried registering events on Page.Load and Page.Init, like so:

[Code]....

I have also tried flat out writing the function call to the page:

[Code]....

I have put breakpoints on the lines inside each delegate and they do not get hit. I am not aware of any special way to register events of a composite control's child control or the Page.Load/Page.Init events when being done inside a server control. Is there some special way to register these events? (Note: Both those code blocks above are in myCreateChildControls() method)

Below is the GetMap() Javascript function. As you can see it is pretty straight forward.

[Code]....

Posted: Apr 27, 2010 09:07 PM

View 3 Replies!   View Related
DropDownList Within Composite Control Is Losing Selected Value On Postback
I am building a composite server control that currently only has a TextBox and a DropDownList. Here is the code in all its foetal glory:

[Code]....

The control appears to work correctly across postbacks, that is until declarative values are set, e.g.:

<squee:Address runat="server" ID="a" Street="123 Fake St" State="VIC" />

After this, the text box continues to work correctly, but the _state member does not pick up the posted back values and instead just sticks to the declared value. I've checked the raw posted values in the Request object, and the new value for the list's UniqueID is there, but _state doesn't pick it up.

Posted: Feb 23 10 at 2:41

View 1 Replies!   View Related
JQuery :: TextboxWaterMarkExtender And Datepicker - TextBox Losing Value On PostBack?
I have a textbox that uses TextboxWaterMarkExtender and jquery-ui's datepicker plugin.Upon postback, my textbox is losing the value selected from jquery datepicker.Below is the sample code to see the behavior. Is there anyway I can make my textbox to retain selected value on postback?One thing to note is, if I use jquery watermark plugin, it does postback the value. But for certain reasons, I think I plan to use AjaxControlToolkit.

[Code]....

Posted: Feb 25, 2011 09:11 PM

View 2 Replies!   View Related
C# - How To Browser Occasionally Losing HttpCookie For Authentication After Postback And Redirect
This has been a nagging issue for some time, but very sporadic and difficult to isolate.

From time to time, browsers that have authenticated on a web application, have been open for a while, have logged in and out of the same web application multiple times, have multiple tabs, are pretty much any browser (Chrome, IE, Firefox, Safari), and seemingly at random, lose their ability to retain an AuthCookie after being set and followed by a redirect. Closing the browser and starting a new session resolves the issue, as does opening up a different browser and attempting to authenticate.

Our team uses forms authentication for all of our websites and web application. This is a pretty typical setup where a login form is displayed, the user enters credentials and a cookie is set on the click event of the postback, then a redirect occurs to the same page where the cookie is then referenced and used to complete authentication.

In this situation

FormsAuthentication.FormsCookieName = ".WebAuth"

Within Event:

FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, Username, DateTime.Now, DateTime.Now.AddMinutes(SessionTimeout), false, Username); HttpCookie faCookie = new HttpCookie(FormsAuthentication.FormsCookieName, FormsAuthentication.Encrypt(authTicket));
Response.Cookies.Add(faCookie);
Response.Redirect(Request.RawUrl, true);
After the redirect, on PreInit:
HttpCookie authCookie = Request.Cookies[cookieName];

At this point, the authCookie variable is typically not null, but in these isolated circumstances that I've outlined above, the cookie comes back null after the redirect.

This happens very randomly, sometimes weeks before affecting one of our developers. As I said, restarting the browser resolves the issue.

Today I had it happen on our dev server while using Chrome. I had logged into the application, allowed the application to session timeout, and then attempted to login again. The attempted login then failed to set the cookie. I remotely attached Visual Studio to the process on the server to begin debugging. The entire time I could step through my code, even deploy new code versions to the server with updates, restart the app, restart IIS on the server, attach and reattach to the project, and the issue persisted in Chrome. In Firefox, I was able to authenticate without issue.

From Chrome, the login would validate, attempt to set a Response Cookie as outlined above. Prior to redirect, I could see the properly set Response Cookie, as well as its counterpart in the Request Cookies. However, on each redirect after a seemingly successful login, the Response and Request Cookie are gone.

I enabled Trace on the application to view the cookie collection:

There is a .WebAuth in the Request Cookies Collection, as well as ASP.NET_SessionId and several ASPSESSIONIDxxxxxxxx, but when the page loads, only the ASP.NET_SessionId and ASPSESSIONIDxxxxxxxx cookies are available in the Request.Cookies scope, no sign of the .WebAuth. However, in the page's Trace information after render, there multiple .WebAuth cookies listed, it is just that the page seems to have no access to them.

Primarily, on a working version after authentication there is both a .WebAuth Response and Request Cookie in the page's Trace info. But on a non functioning browser window, the Response Cookie is absent.

Has anyone else had any experience with this? It is such a nagging issue, and so sporadic, but I would love to be able to resolve it. My concern is that it may be affecting users and we would have no knowledge since the description of the issue is so convoluted.

Posted: Dec 29 10 at 20:29

View 1 Replies!   View Related
Installation :: Open Window Losing Focus To Button Postback?
OK I have a button that opens a window using the onclientclick event and also the onclick event goes to a server side event.

<asp:Button ID="btn" runat="server" Text="UnDock"
OnClientClick="OpenWindow()" OnClick="btn_Click" />

here is the javascript:

[Code]....

[Code]....

[Code]....

[Code]....

[Code]....

[Code]....

[Code]....

[Code]....

[Code]....

[Code]....

[Code]....

Posted: Sep 10, 2008 06:24 PM

View 1 Replies!   View Related
Custom Server Controls :: Extending A Control And Losing Values On Postback?
I've created loads of user controls, but this is my first time dealing with extending a server control. The problem I'm getting is that the base control's data is not being persisted across postbacks in a Master/Content page.I'm actually trying to get this working using a Telerik control (for my sins), but the same issue happens with a standard Web TextBox control. Code:

[Code]....

Now, I've copied the way I handle the control state as I do it with user controls (ControlState), and it isn't working. Can someone point me in the right direction please? All the examples I find refer to creating user controls, not extending existing controls. Specifically why nothing is being persisted on post back.

Posted: Nov 24, 2010 03:14 PM

View 7 Replies!   View Related
C# - Repeater Within Repeater (ajax Based Web App) - Cannot Use Any Postback Methods
For the solution, I cannot use any postback methods, because this is all working through ajax. The solution need to be implemented in the asp.net code. I have a List<WebPage> that contains a list of Links (List<Link>) and I need for all the links to bind repetitive information such as page title, id, url. Here is my current repeater.

<div id="result">
<asp:Repeater runat="server" id="results">
<Itemtemplate>
<asp:Repeater runat="server" datasource='<%# Eval("Links") %>'>
<Itemtemplate>
<tr class="gradeX odd">
<td><%# Eval("Id") %></td> //property of WebPage (part of results repeater)
<td><%# Eval("Title") %></td> //property of WebPage (part of results repeater)
<td><%# Eval("Url") %></td> //property of WebPage (part of results repeater)
<td><%# Eval("URL") %></td>//Property of Link
<td><%# Eval("URLType") %></td> //Property of Link
<td><%# Eval("URLState") %></td> //Property of Link
</tr>
</Itemtemplate>
</asp:Repeater>
</Itemtemplate>
</asp:Repeater>
</div>

of course this doesnt work, how can i do this?

Posted: Jun 23 10 at 15:17

View 2 Replies!   View Related
How To Persist The Data From A Repeater After Postback
I have a repeater that displays financial data and prices for various stocks.

On this page, I also have an "export" button that needs to take the data ~on the screen~ and convert it into a CSV for the user.

The problem is, after I databind my list of "Stock" entities:

List<Stock> stocks = GetStocks()
rptStockList.DataSource = stocks;
rptStockList.DataBind();

The data is not persisted on postback.

Also, the data on this page is constantly being updated via an UpdatePanel and a Timer control (being re-databound each time). Every 30 seconds the prices displayed for the various stocks in the repeater control change.

Now, I have a linkbutton that has a click event method in the code-behind that is supposed to export the ~data on the screen~ for the user. I need to grab the current values for the list of stocks last databound to the repeater. I can't simply go grab the latest values from the database because those will have been changed in the time between the last refresh.

protected void lbtnExportStocks_Click(object sender, EventArgs e)
{
// No longer have the stock data used in the repeater control
ExportStocksToExcel();
}

I know that ASP.NET doesn't persist the datasource for the repeater on post-back but I need to still be able to either re-construct this list of Stock entities so I can send them the CSV or I need persist it in some way.

I don't want to do anything that is too heavy handed in terms of performance because during certain days of the week this application can have some heavy usage.

What is the proper solution to this type of situation? Should I iterate through the Repeater's "Items" collection and reconstruct the Stock entities?

Posted: Jul 1 10 at 18:17

View 4 Replies!   View Related
Repeater Databound Loses Data & Event On Postback - Is There A Best Practice Solution
Currently struggling with a problem that I've encountered variations on in the past. At the moment a worthwhile solution escapes me, but it seems such an obvious issue that I can't help wondering whether or not there's a "best practice" approach I should adopt.Without code, here's the issues in a nutshell:


page has databound control (a repeater) which isn't populated until user inputs data and clicks a button.Repeater item template contains a buttonUser clicks button, page posts back. On load, the repeater is actually empty so event is never handled because the originating control no longer existsGo back to the beginning of wretched cycle I've confirmed that this is the problem because if you provide the repeater with some static data on page load, everything works fine. But of course that's no use because it has to be populated dynamically.Is there a commonly approved way round this headache? I can store the data in session and re-use it on page load, but it seems terribly clumsy.

Posted: Oct 7 10 at 11:16

View 2 Replies!   View Related
Forms Data Controls :: Hiding Table/panel In A Repeater If No Data Repeater In A Nested Accordion?
Description of issue shown after code listing

Asp code:

[code]....

The above does not throw any compile errors but it does not work correctly.

accParent produces 6 headings, the first with 3 children, the second with 3 children, the other four each with one child.

The accordion hides the Times and Locations (showme panel) from the first accChild item in the first heading, which is incorrect as there are records to display, but does not hide the panel from the accChild of the last two headings, where there isn't any data to display.

Posted: Nov 10, 2009 12:57 PM

View 7 Replies!   View Related
Forms Data Controls :: Dropdownlist In Repeater And Datasource Doesn't Match To The Data Which Bind To The Repeater
i have dropdownlist in the repeater and the datasource does not match to the data which bind to the repeater... the error msg: "dropdownlist has a SelectedValue which is invalid because it does not exist in the list of items"

Posted: Nov 19, 2009 06:34 AM

View 9 Replies!   View Related
Forms Data Controls :: How To Print A Message In Child Repeater If No Data Corresponding To Parent Repeater
protected void Page_Load(object sender, EventArgs e)

[Code]....

Posted: May 12, 2010 09:51 AM

View 2 Replies!   View Related
Web Forms :: Login Without Losing Data
Is there a way to keep (automatically) the data posted before a redirects to theanother page?And then reapply the post data to the this Page upon return? Here is what I want to do :

[Code]....

I noticed that some websites are already doing that. Such as phpbb forums, when composing a message and the session expiredwe areredirected to the login page and then we return to our post without anything lost. However, I know that it is in PHP but it remain a web application at all;) I thought of a system of modal box that will appear directly in my MasterPage so don't need to redirect, but I do not like the idea. If I don't find any solution this could be a workaround. But I don't like it.

Posted: Feb 19, 2010 03:32 PM

View 2 Replies!   View Related
Forms Data Controls :: Table Server Control State Keep Losing Its Data?
i read the tutorial on msdn,what i want is to basically make astructure like of gridview, but not gridview.i want that when a post back occurs by any control the table does not lose its data, it preserves its state.as a result i am not able to add rows to the table in an increment fashion, everything gets destroyed on postback.

[CODE]...

Posted: Jun 22, 2010 08:01 AM

View 1 Replies!   View Related
Forms Data Controls :: DetailsView And ObjectDataSource Losing Form Data On ExceptionHandled?
Having an issue here which is causing a bit of Friday arvo stress...

I have a DetailsView linked to an ObjectDataSource. On an Insert / Update the ObjectDataSource fires an OnInserted / OnUpdated. This checks business object for errors, if so an exception is caught, an alert is displayed and e.ExceptrionHandled = true is set..

This all works perfectly - except.. all the bound form data that the user has typed is lost from the DetailsView. I'd imagine this is because the business object returns an empty object to the DetailsView.

I can't figure how to fix this.. obviously I don't want a user to have to retype a whole form if an input error is made.

Here is a code snipped of my ObjectDataSource and function..

<asp:ObjectDataSource runat="server" ID="odsIndividual"
SelectMethod="GetIndividualByID"
UpdateMethod="UpdateIndividual"
InsertMethod="InsertIndividual"
TypeName="MCPS.BLL.BO.IndividualsBO"
DataObjectTypeName="MCPS.DAL.Individual"
OnUpdated="ItemUpdated"
OnInserted="ItemInserted">
protected void ItemInserted(object sender, ObjectDataSourceStatusEventArgs e)
{
string alertMessage = "";
if (e.Exception != null)
{
if (e.Exception.InnerException != null)
{
Exception inner = e.Exception.InnerException;
if (inner is ApplicationException)
{
alertMessage += inner.Message;
Methods.Alert(this, alertMessage);
}
}
e.ExceptionHandled = true;
}
// logic here
}

Posted: Oct 16, 2009 06:41 AM

View 3 Replies!   View Related
Forms Data Controls :: Inner Repeater Is Not Getting The Proper Search Param From The Parent Repeater?
THE PROBLEM IS THAT THE DATES FOR THE FIRST EVENT IS THE SAME DATES AS FOR THE 2ND EVENT. IF YOU NOTICE THE SQL QUERY KEEPS SAYING e.WebCastID =2 instead of it being 1 and then 2.

[Code]....

[Code]....

Here is the output:
DB2
Oct 15 09 - 10:00 AM select * from tblWebcastEvents e WHERE e.Active=1 AND e.WebCastID = 2 ORDER BY e.EventDate ASC Register Now
Oct 15 09 - 11:00 AM select * from tblWebcastEvents e WHERE e.Active=1 AND e.WebCastID = 2 ORDER BY e.EventDate ASC Register Now
boo: select * from tblWebcastEvents e WHERE e.Active=1 AND e.WebCastID = 1 ORDER BY e.EventDate ASC
Real Time
Oct 15 09 - 10:00 AM select * from tblWebcastEvents e WHERE e.Active=1 AND e.WebCastID = 2 ORDER BY e.EventDate ASC Register Now
Oct 15 09 - 11:00 AM select * from tblWebcastEvents e WHERE e.Active=1 AND e.WebCastID = 2 ORDER BY e.EventDate ASC Register Now
boo: select * from tblWebcastEvents e WHERE e.Active=1 AND e.WebCastID = 2 ORDER BY e.EventDate ASC
THE PROBLEM IS THAT THE DATES FOR THE FIRST EVENT IS THE SAME DATES AS FOR THE 2ND EVENT. IF YOU NOTICE THE SQL QUERY
KEEPS SAYING e.WebCastID =2 instead of it being 1 and then 2.
select * from tblWebcastEvents e WHERE e.Active=1 AND e.WebCastID = 1 ORDER BY e.EventDate ASC
1 1 2009-09-30 10:00:00.000 CDT US 1
2 1 2009-10-01 11:00:00.000 CET EU 1
select * from tblWebcastEvents e WHERE e.Active=1 AND e.WebCastID = 2 ORDER BY e.EventDate ASC
3 2 2009-10-15 10:00:00.000 CDT US 1
4 2 2009-10-15 11:00:00.000 CET EU 1

Do you know why it is not giving it the proper WebCastID ?

Posted: Sep 29, 2009 07:37 AM

View 1 Replies!   View Related
Forms Data Controls :: Repeater Inside A Repeater (dataBound) Code Behind?
got an example of a repeater inside a repeater (dataBound) code behind?

Posted: Jan 31, 2010 07:36 AM

View 3 Replies!   View Related
Forms Data Controls :: ImageButton Inside A Repeater That Is In Another Repeater & Events?
I have a user control that displays a shopping cart in an ecommerce application.

The main cart display is a repeater that renders as a html table. In one of those table columns, there is another repeater to display people associated with the products int he cart (it's a repeater in case there is a line item >1 with multiple people).

I've added an ImageButton that I want to use to change the person associated with the item. At first, when I'd click on it I was getting this error:

Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

So as an experiment I disabled EventValidation on the page (not the control it's self) and now I do not get an error, but I also do not ever hit the breakpoint I set in the innermost repeater's ItemCommand event.

So I wonder how I might do this without disabling EventValidation, because this control will show up on multiple pages and we don't want to edit them all. Also, I'll need to know not only the repeater containing the control's row that the event came from but also the row index of the repeater containg this one. Is this possible?

Posted: Jan 18, 2010 10:22 PM

View 3 Replies!   View Related
Forms Data Controls :: Repeater Paging - Retrieve Hyperlink Variable Inside Repeater?
I have repeater in which I have 2 hyperlink in the footer of the repeater and I want that the hyperlink can navigate from the page_load

Posted: Jul 12, 2010 12:35 PM

View 2 Replies!   View Related
Forms Data Controls :: Binding Parent Repeater Item Index In Child Repeater Control?
I want to bind parent repeater item index in child repeater control using inline code not code behind side.

For example

[Code]....

Posted: Jun 17, 2010 07:30 AM

View 2 Replies!   View Related
Forms Data Controls :: Hiding A Repeater Div Using A Link Outside The Repeater?
I'm so confused I wasn't even sure what to make the title so that it would make sense.

Here is what I have:

[code]...

I have links at the top of the page that are the letters A-Z. What I want to do is click on one of the letters, then show only the div IDs that start with that letter. I can't figure out how to do this since I'm dynamically creating the ID names. I had it set up nicely with Javascript and CSS, but the function call was inside the repeater. The layout is changed now, and I don't understand how to make the div ID available outside the repeater.

Posted: May 25, 2010 07:29 PM

View 2 Replies!   View Related
Forms Data Controls :: How To Use Button In Repeater Inside Repeater
I am using Nested Repeater repeater1 and repeater2 in my project . one button is there inside repeater2 but i cant use that button using e.commandname

so how to use that button and how to write code on it.

Posted: Feb 06, 2011 06:51 AM

View 3 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved