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:790497
More Search Options
RSS Available
Matching Posts
Re: Validate the "-Select Item-" in a bound DropDownList
You don't need a button to fire the client-side validation - a DropDownList has a CausesValidation property you can set to true which will cause the page to be validated and cancel the postback if it fails.
Posted to
Web Forms
(Forum)
by
ramblor
on 11/16/2008
Re: Retrieve ID of newly inserted record
There's an article which might help you here: http://www.mikesdotnetting.com/Article.aspx?ArticleID=54
Posted to
Access Databases and AccessDataSource Control
(Forum)
by
ramblor
on 11/12/2008
Re: SelectedIndexChanged not firing for DropDownList
Without seeing the code it's difficult to say what the problem is. Have you tried debugging to see if the code which populates your DropDownList is run again? (I can't really see it being something to do with the ViewState as I've never seen a problem like that before)
Posted to
Web Forms
(Forum)
by
ramblor
on 10/16/2008
Re: SelectedIndexChanged not firing for DropDownList
Your new bug sounds like you're adding the ListItems on every postback. Are you doing it within a if (!Page.IsPostBack) section so it only gets populated on the first load?
Posted to
Web Forms
(Forum)
by
ramblor
on 10/16/2008
Re: ASP can't read the new value of textbox, this was changed on javascript
Are you checking Page.IsPostBack in the Page_Load event before setting the textbox value, that is: if (!Page.IsPostBack) { if (!String.IsNullOrEmpty(Request.QueryString[ "LatS" ])) { txtLatSouth.Text = Request.QueryString[ "LatS" ]; } } This way the textbox with only be set to the querystring value the first time the page is loaded and not when it's posted back from the button click.
Posted to
Web Forms
(Forum)
by
ramblor
on 10/16/2008
Re: SelectedIndexChanged not firing for DropDownList
Have you hooked the DropDownList OnSelectedIndexChanged event up to your method, e.g. < asp:DropDownList ID= "DropDownList1" runat= "server" AutoPostBack= "true" OnSelectedIndexChanged= "DropDownList1_SelectedIndexChanged" > < asp:ListItem Text= "Red" /> < asp:ListItem Text= "Green" /> < asp:ListItem Text= "Blue" /> < asp:ListItem Text= "Yellow" /> </ asp:DropDownList >
Posted to
Web Forms
(Forum)
by
ramblor
on 10/16/2008
Re: Drop Down List control and RequiredValidator
[quote user="callan1"]Here's my drop down, with the intial value set to '--' as it is in the db[/quote] Is it definitely the value of the first item that is "--" and not the text itself, that is the TitleIDNo would have to be "--" for your RequiredFieldValidator to work (rather than the TitleDesc).
Posted to
Web Forms
(Forum)
by
ramblor
on 10/16/2008
Re: How to validate bind drop down list???
This thread might help you: http://forums.asp.net/t/1301657.aspx
Posted to
Getting Started
(Forum)
by
ramblor
on 10/9/2008
Re: Simple Page_Load Question
no worries. if you mark our posts as answers then i'll forgive you for thinking i'm a man
Posted to
Getting Started
(Forum)
by
ramblor
on 9/8/2008
Re: Simple Page_Load Question
You can't change the order of the events, but you could try moving your code from Page_Load into Page_PreRender which should be executed after the Button_Click event.
Posted to
Getting Started
(Forum)
by
ramblor
on 9/5/2008
Page 1 of 102 (1011 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online