Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:626282
More Search Options
RSS Available
Matching Posts
Re: Binding to Label Web Control (kinda a newbie question)
That's a very strange thing you're trying to accomplish, and not very efficient. #Eval only works in repeater, gridview, etc. I would just do a code behind to retrieve the title and set the label to that value. ie. CategoryTitleLabel.Text = myDataReader["CategoryTitle"].ToString()
Posted to
Web Forms
(Forum)
by
tedqn
on 11/16/2007
Re: ajax updatepanel not editable if values are database driven
You need to put the code to retrieve values from database in PageLoad() { if(!IsPostBack) { // prefill fields with values from database } }
Posted to
Web Forms
(Forum)
by
tedqn
on 11/16/2007
Re: c# syntax clarification please
Thank you all for your advice. It makes sense now.
Posted to
Migrating from ASP to ASP.NET
(Forum)
by
tedqn
on 11/14/2007
Re: sqldatsource:SelectParameters:FormParameter not effective till postback?
Excellent. CookieParameter works fine. Can't believe I didn't notice that and ended up doing it the hard way (code behind onload to assign the plain Parameter value with cookies value).
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
tedqn
on 11/14/2007
sqldatsource:SelectParameters:FormParameter not effective till postback?
I have a simple gridview that loads on page load. It uses an on page sqldatasource declaration in which there's a parameter in which value is already available in cookies. I added an asp:HiddenField and set that value on PageLoad() to the value of the cookies. I then set a FormParameter in the sqldatasource mapped to that hidden field. However that appears to have no effect at all. I'm guessing the sqldatasource will only use the form field after postback.
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
tedqn
on 11/14/2007
c# syntax clarification please
I use <%# Eval("SomeField") %>, <%# SomeFunction(SomeInputValue) %> in ItemTemplate for gridview, repeater, etc. and it works fine. But when using it in javascript code, it doesn't get processed ie. var el = document.getElementById("<%# MyTextBox.ClientID%>") ). I have to use <%=xxxx%> to make it work. What's the difference? Also, is it possible in .net to continue running script blocks like ASP directly in the page, such as <% while objReader
Posted to
Migrating from ASP to ASP.NET
(Forum)
by
tedqn
on 11/14/2007
Need more info than args.get_postBackElement().id
The gridview has Edit option on each row and pages at the bottom for paging. For paging, I just refresh the current gridview (UpdatePanel) with content of the next page. For edit, I need to load the content of a row into a separate UpdatePanel. The mouseover of edit & paging show the same elements __doPostBack('ctl00$ContentPlaceHolder1$grdEvents','LoadEdit$0') __doPostBack('ctl00$ContentPlaceHolder1$grdEvents','Page$0') I need to be able to access the variable
Posted to
ASP.NET AJAX UI
(Forum)
by
tedqn
on 11/5/2007
CascadingDropDown - possible to make dropdown2 a checkboxlist?
I have a dropdownlist1 which serves as the filter to limit the checkboxlist choices. Currently I'm using UpdatePanel to dynamically refresh the choice list base on the selection in the droplist. However, I'm thinking about replacing that method with a web service to make it faster rather than calling the whole page asynchronously to refresh the choice list. The CascadeDropDown appears to be a solution but it only works for dropdownlists.
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
tedqn
on 3/23/2007
Re: Gridview edit - client side validation
I'm positive that the submit update button won't do anything with CausesValidation="true". It took me two days to figure out why that stupid button won't trigger a postback. I don't understand how the ValidationGroup can help since the CausesValidation is false so it won't be triggered at all. I can understand why CausesValidation="false" is required for Cancel, Edit, Delete but requiring it for Update is a .net mistake. Yes the ID is always there when submitting an update but most of the time, we
Posted to
Data Presentation Controls
(Forum)
by
tedqn
on 3/22/2007
Gridview edit - client side validation
Currently I have to set CausesValidation="false" in order for the gridview edit to submit. Therefore asp:RequiredFieldValidator won't work. I currently handle the validation upon post back but wonder if there's a way to handle it client side instead of wasting a post back to the server. <EditItemTemplate> <asp:TextBox ID="EditLabel" runat="server" Text='<%# Eval("Label") %>' CssClass="white1" Width="200px" MaxLength="100"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator3
Posted to
Data Presentation Controls
(Forum)
by
tedqn
on 3/21/2007
Page 1 of 3 (25 items) 1
2
3
Next >
Channel 10:
How to Use "Play to" and "Remote Media Streaming" in Windows 7
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Channel 10:
Bing's Top Searches Reveal Our Celeb Obsessions
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Silverlight:
Building extensible Silverlight applications with MEF
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
ASP.NET:
Script# Update - v0.5.5.0
Channel 10:
Difference between DirectX 10 and DirectX 11
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online