Click here to Skip to main content
15,890,336 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: question on gridview logic Pin
classy_dog9-Nov-11 5:37
classy_dog9-Nov-11 5:37 
SuggestionRe: question on gridview logic Pin
RaviRanjanKr19-Nov-11 9:56
professionalRaviRanjanKr19-Nov-11 9:56 
QuestionI want to catch event when user close page. Pin
buffering837-Nov-11 20:51
buffering837-Nov-11 20:51 
AnswerRe: I want to catch event when user close page. Pin
Anuj Banka8-Nov-11 0:53
Anuj Banka8-Nov-11 0:53 
GeneralRe: I want to catch event when user close page. Pin
buffering838-Nov-11 12:40
buffering838-Nov-11 12:40 
GeneralRe: I want to catch event when user close page. Pin
Anuj Banka8-Nov-11 19:16
Anuj Banka8-Nov-11 19:16 
Questionseveral input sources for web form 2010 control Pin
Member 82175177-Nov-11 16:54
Member 82175177-Nov-11 16:54 
Questionsupply data for web control field Pin
Member 82175177-Nov-11 6:23
Member 82175177-Nov-11 6:23 
Problem: I want the "TextBoxOrgName.Text" of a detailview control to contain the organization name.

I am working on a C# asp.net 2010 webform application. In a detailview control I want to place the organization name into the cell called "TextBoxOrgName.Text". The problem is I do not have the 'organization name' in the LinqDataSource1 listed below. I want setup a new linq data source to obtain the organization name value value listed below or place the value from a session variable here. Can you tell me how I could accomplish this goal?

[^] <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px"
EnableModelValidation="True" GridLines="Both"
AutoGenerateRows="False" DataSourceID="LinqDataSource1" BorderStyle="Solid"
HorizontalAlign="Center">
<Fields>

<asp:TemplateField HeaderText="Organization Name" >

<ItemTemplate>
<asp:TextBox ID="TextBoxOrgName" runat="server" Text='' BorderStyle="None" ></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Fields>
</asp:DetailsView>[^]

Here are a few additional notes:

1. I know the best solution probably would be to bring in value in linqdataource1. However the organization name column is not part of the table that I want to update in the sql server 2008 r2 database. I am thinking linqdataource1 should only be the table I want updated from this particular webpage correct?

2. This is a data entry application and the user enters the organization name on the first webpage. The user clicks the next button from the first page and now we are on the second data entry page. I have the organization name available on the second page as a session varirable obtained from the first page
AnswerRe: supply data for web control field Pin
Richard MacCutchan7-Nov-11 7:41
mveRichard MacCutchan7-Nov-11 7:41 
GeneralRe: supply data for web control field Pin
Member 82175177-Nov-11 8:32
Member 82175177-Nov-11 8:32 
QuestionMessage Closed Pin
7-Nov-11 2:56
SoftwareWarsaw7-Nov-11 2:56 
AnswerRe: For Game developers ! Pin
R. Giskard Reventlov7-Nov-11 3:21
R. Giskard Reventlov7-Nov-11 3:21 
GeneralRe: For Game developers ! Pin
Richard MacCutchan7-Nov-11 3:59
mveRichard MacCutchan7-Nov-11 3:59 
Questionsearch users in AD based on attribute Pin
byka7-Nov-11 2:06
byka7-Nov-11 2:06 
Questionlinq with web form Pin
Member 82175176-Nov-11 6:32
Member 82175176-Nov-11 6:32 
Questionhow to perform search & show result on searchresult.aspx page Pin
bilawal shah6-Nov-11 4:28
bilawal shah6-Nov-11 4:28 
AnswerRe: how to perform search & show result on searchresult.aspx page Pin
thatraja6-Nov-11 6:12
professionalthatraja6-Nov-11 6:12 
Generalcreate a blog service like blogger.com Pin
rebvar5-Nov-11 22:33
rebvar5-Nov-11 22:33 
GeneralRe: create a blog service like blogger.com Pin
Bernhard Hiller6-Nov-11 19:32
Bernhard Hiller6-Nov-11 19:32 
GeneralRe: create a blog service like blogger.com Pin
MaulikDusara9-Nov-11 17:59
MaulikDusara9-Nov-11 17:59 
QuestionMaxWidth for the StackPanel Pin
indian1435-Nov-11 19:56
indian1435-Nov-11 19:56 
AnswerRe: MaxWidth for the StackPanel Pin
thatraja6-Nov-11 6:21
professionalthatraja6-Nov-11 6:21 
Questiondatacontext object with webform control Pin
classy_dog5-Nov-11 13:13
classy_dog5-Nov-11 13:13 
Questionembed datarouce in web form 2010 control Pin
classy_dog5-Nov-11 13:11
classy_dog5-Nov-11 13:11 
Questionrestricting user access based on type of user Pin
SIMOKOOL5-Nov-11 8:11
SIMOKOOL5-Nov-11 8:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.