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:643730
More Search Options
RSS Available
Matching Posts
databound textbox, how can I programmatically set the default value?
In my form, I want to place a default value in one of the fields of a form when it goes into edit mode. This default value is computed, so I cant just hardcode a value into my edititem template. Also, this textbox already has a databound value - how do I programmatically update that databound value? All of my attempts at tying an update of my textbox to an event have failed. I believe it is because every event I tried to assign the default, a page refresh is occurring and the re-databinding overwrites
Posted to
Data Presentation Controls
(Forum)
by
lutz2
on 11/12/2006
Re: need page design suggestions
Thanks again, all very good answers helping me through this "putting it all together" phase. no worries about the VB/C#, its the concepts I'm unclear on. :) My only objection to stored procedures is having code/logic in several different places. I understand its value in a larger environment, but I want simplicity/consistency for now.
Posted to
Getting Started
(Forum)
by
lutz2
on 5/8/2006
Re: need page design suggestions
Thanks You said: "From your post it seems like getting this value to the NEXT page is your problem as I don't think you want to hit the DB again. " I'm not sure about that. - I want the results from the previously mentioned query to be available for an INSERT into a different table, but on the same page. One of the things I tried, which worked, was using an sqldataadapter for the membername query, and attaching it to a DetailsView - but then I had to write some convoluted code to access the values
Posted to
Getting Started
(Forum)
by
lutz2
on 5/8/2006
need page design suggestions
1) The page is intended to be a data entry form for inserting a new record in a table. I am using the sqldataadapter with a formview defaulted to insert mode to handle this. 2) Some of the values for fields in the record to be inserted are computed. I want to use the membername and memberid from the SQL statement below - the username parameter in the WHERE clause is getting the name of the current page user ( Page.User.Identity.Name) - This query works okay: SELECT dbo.aspnet_Users.UserName, MemberInfo
Posted to
Getting Started
(Forum)
by
lutz2
on 5/8/2006
Re: N Tiered Environment
I didn't look at the presentation, but in practice the busines logic often resides on a separate app server, not the web server. I'm sure there must some way in .NET to specify all your object data sources as being on a different machine, and I suppose the 'web services' abstraction provides other ways to deal with it.
Posted to
Club Web Site Starter Kit
(Forum)
by
lutz2
on 4/28/2006
Re: CSS with content areas on master page gets hosed in weird spots
I don't know if this is your exact problem, but I too had some right blocks posting below left blocks, rather than adjacent to. Here is how I fixed that problem: 1) In the visual design view (not the source code/html) of the .aspx page in question, click the div area that's misplaced. 2) Now that it is selected, right click it for the context menu and select "Properties". 3) In the properties pane of the div - make sure the Class property is "rightblock". 4) The Style property for the rightblock
Posted to
Club Web Site Starter Kit
(Forum)
by
lutz2
on 4/27/2006
Re: Why are you profiteering?
MaineOne. You are a professional. Somebody bought your product. Congrats! I respect your decision to charge whatever you like. I must admit that I went looking for your code and decided not to pay for it, mainly because I knew I needed to learn this stuff, and plowing through it on my own, killing errors every half-step of the way, makes for a memorable experience. Now let me give you some free marketing, and why my choice may not be the best for most people: For students who want to learn from it
Posted to
Club Web Site Starter Kit
(Forum)
by
lutz2
on 4/27/2006
Re: Best Practices
Yes, it exhibits every one of those traits to some extent. That may be a good thing for me. Those traits have given me many good lessons. For every page I've developed on my own, I managed to find an example of how to do what was needed in the Clubsite. The act of interpreting the code and pages to figure out what is going on gave the learning process more depth. The hassles with implementing the clubsite on a shared host and rooting out bugs was also helpful. However, I was committed to learning
Posted to
Club Web Site Starter Kit
(Forum)
by
lutz2
on 4/22/2006
Re: Conversion from type 'DBNull' - quick fix
Don't feel that way, I'm glad to help. I'm new to this. I've spent hours or even days of fighting with difficult issues, to find that the needed changes are "simple". Luckily I know pre-.NET VB, C and databases. Until just now, I did not know how to make the function global for the whole website, so that the function would not need to be declared in the script portion of every page where it is needed. The answer appears to be in ~/App_Code/Shared_routines.vb Place the function in Shared_ routines
Posted to
Club Web Site Starter Kit
(Forum)
by
lutz2
on 4/12/2006
Re: Conversion from type 'DBNull' - quick fix
1) in the Events_List.aspx, add the myCStr function to the code at the top of the page, inside the script tags <script runat="server"> (other code) ... function myCStr(... ... </script> In any of the lines that cause errors use the myCStr function. I dont recall what was there previously, probably the regular CSstr(...), but this example is shortly after the first <!-- begin news item --> < asp : Label ID ="descriptionLabel" runat ="server" Text =' <%# truncate(myCStr(Eval
Posted to
Club Web Site Starter Kit
(Forum)
by
lutz2
on 4/12/2006
Page 1 of 2 (19 items) 1
2
Next >
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online