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:768216
More Search Options
RSS Available
Matching Posts
Re: Auto Increment to Label Control
I just realized something easier you could do. Just put a hyperlink to the 2nd page on the 1st and then in the 2nd page's Load event check the IsPostBack property. If it is false then you know you need to create a new record and assign it's ID to the label. Much simpler than doing it in the 1st page and then redirecting. It would be like this: protected void Page_Load(object sender, EventArgs e) { if (this.IsPostBack == false) { // Insert record here and set the text of the label } }
Posted to
Web Forms
(Forum)
by
DotNetAdvisor
on 11/6/2008
Re: adding "required field" to <asp:label> control
How about this: <asp:Label ID="ID" runat="server" AssociatedControlID="firstName">First Nam: <span class="required">(required field)</span></asp:Label>
Posted to
Getting Started
(Forum)
by
DotNetAdvisor
on 11/5/2008
Re: Auto Increment to Label Control
I think you would be better off just inserting the data from the 2nd page rather than doing an insert and an update. But if you want to stick with this then once you insert the record pass the ID through the querystring in your redirect.
Posted to
Web Forms
(Forum)
by
DotNetAdvisor
on 11/5/2008
Re: custom control not remembering values
You're welcome. Can you mark this thread answered so I don't keep coming back to it? Thanks!
Posted to
Custom Server Controls
(Forum)
by
DotNetAdvisor
on 11/4/2008
Re: digit formatting
ToString("n3") should do that for you.
Posted to
C#
(Forum)
by
DotNetAdvisor
on 11/3/2008
Re: Retrieve Data from 25 related tables. Please help
I don't believe there is a limit to how many tables you can join but keep in mind the more you do the lower the performance will be. I have worked on databases for almost 10 years and I cannot remember a time when I've had to join 10 or more tables in a query. I've gotten close though. I imagine that if that many tables need to be joined that perhaps the schema wasn't designed as optimally as it could have been.
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
DotNetAdvisor
on 11/3/2008
Re: digit formatting
Another option is like this: int num = 10000000; string numString = num.ToString("n0"); The zero indicates how many decimal places you want displayed.
Posted to
C#
(Forum)
by
DotNetAdvisor
on 11/3/2008
Re: custom control not remembering values
You need to store the value in viewstate so it gets persisted across postbacks. Change your property to this: public string Value { get { return ViewState["imgVal"] as string; } set { ViewState["imgVal"] = value; } } You can eliminate the imgVal variable when you do it like this.
Posted to
Custom Server Controls
(Forum)
by
DotNetAdvisor
on 11/3/2008
Re: Server side validation affecting client side validation
[quote user="daviessi"] I'd be interested to find out if anyone has a solution to this. I have a similar problem. My page has some textboxes, radio buttons, etc that are enabled and disabled by javascript depending on what the user clicks on. For example on a page that allows users to change their contact details (residential, postal, email, phone): By default when the page loads, the fields for the user's address are disabled (by javascript invoked onload). If they click on the
Posted to
Web Forms
(Forum)
by
DotNetAdvisor
on 10/23/2008
Re: Repeater Child Control ID inconsistent
What I was thinking was you could build a string array in the ItemDataBound event and use that array to create a javascript array of the dropdowns. Then you can iterate through that array in your javascript function. Here's some sample code: Private dropDowns As New System.Collections.Generic.List(Of String) Protected Sub MyItemControl_ItemDataBound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs) Me.dropDowns.Add(e.Item.FindControl("cboSort").ClientID) End Sub Protected Sub
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
DotNetAdvisor
on 10/22/2008
Page 1 of 87 (868 items) 1
2
3
4
5
Next >
...
Last ยป
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
TechNet Edge:
ISA to TMG Migration Guidance
Channel 9:
Life at Microsoft: Episode 3
TechNet Edge:
Microsoft Windows Server 2008 to AITP
ASP.NET:
How important is medium trust to you?
WindowsClient:
Microsoft Web Platform & You
WindowsClient:
New Book: Developing for Microsoft Surface
Channel 9:
BugCamSmash in Action!
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online