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:698825
More Search Options
RSS Available
Matching Posts
Re: Help Needed with GridView SelectedIndex and Postback
The problem with Page Load is it looks like the gridview selected value is one behind (old value). Am I missing something here? Please remember I need to use the gridview selected value property. If Me .GridViewUsers.SelectedValue <> Nothing Then EmpDetails() End If
Posted to
Data Presentation Controls
(Forum)
by
Skip_Frog
on 5/27/2008
Re: Help Needed with GridView SelectedIndex and Postback
I have got it to work by placing the table build in a subroutine and executing it on the gridview pre-render event. Protected Sub GridViewUsers_PreRender( ByVal sender As Object , ByVal e As System.EventArgs) Handles GridViewUsers.PreRender If Me .GridViewUsers.SelectedValue <> Nothing Then EmpDetails() End If End Sub But now a new problem. I cannot get the click event to fire on the button that is created in the table?? AddHandler btnUpdate.Click, AddressOf btnUpdate_click
Posted to
Data Presentation Controls
(Forum)
by
Skip_Frog
on 5/23/2008
Help Needed with GridView SelectedIndex and Postback
Hi All, I have a gridview that I am using the selectedindex changed event to dynamically build a table. All works fine except that when a button is pressed in the table postback occurs and wipes out the table. How do I fix this? Here is a small sample of code. Thanks Protected Sub GridViewUsers_SelectedIndexChanged( ByVal sender As Object , ByVal e As System.EventArgs) Handles GridViewUsers.SelectedIndexChanged Dim mtable As New Table 'main table Dim atable As New Table 'employee info Dim
Posted to
Data Presentation Controls
(Forum)
by
Skip_Frog
on 5/23/2008
Help Needed with Directory Services
Hi All, I am using the below to retrieve the user name from log in credentials. All works good BUT I have to supply a valid user and password for it to work. How do I do this without having to supply a hardcoded user name and password? Thanks Function GetUserName( ByVal userN As String ) As String Dim ADEntry As New System.DirectoryServices.DirectoryEntry( "WinNT://" & userN) ADEntry.Username = "xxxxx" 'This is the problem ADEntry.Password = "xxxxx" For Each
Posted to
Active Directory and LDAP
(Forum)
by
Skip_Frog
on 5/8/2008
Re: Help Needed with FindControl and Dynamic Controls
I solved the problem by moving the table construction from the TreeView NodeChanged event to the Page Load. I guess the PageLoad picks up the SelectedNode okay. The whole page life cycle thing seems strange to me at times. If Me .tvMemos.SelectedNode IsNot Nothing Then Select Case Me .tvMemos.SelectedNode.Depth Case 0 'Machine Level Case 1 'Ship Number Level Case 2 'Job Name Level BuildMemoTable() End Select End If
Posted to
Web Forms
(Forum)
by
Skip_Frog
on 4/8/2008
Re: Help Needed with FindControl and Dynamic Controls
ProgMemos is an array. So ProgMemos is an array of GUID's. I appended the word New to the GUID so they could easily be identified as new entries. It may be wrong to cast the GUID as string but I have checked the output and it is identical to the original assigned GUID. Maybe the wrong approach but I do not like the canned MS db grids. Thanks!
Posted to
Web Forms
(Forum)
by
Skip_Frog
on 4/8/2008
Re: Help Needed with FindControl and Dynamic Controls
Here is the code, i is a GUID that is added to the Id of the control. I think the problem could be that the controls are created on the tree view changed event. Do I need to create them again or somehow move the creation to the page load event? Sorry for the lengthy code, tried to remove as much as possible. Protected Sub btnSaveAll_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles btnSaveAll.Click Dim oCnn As SqlConnection oCnn = New SqlConnection oCnn.ConnectionString = "xxxxxx"
Posted to
Web Forms
(Forum)
by
Skip_Frog
on 4/7/2008
Help Needed with FindControl and Dynamic Controls
Hi All, I have TableA that is created (with several controls) and then TableB (again with several controls) is created and added to a cell within TableA. Then TableA is added to a placeholder. The event that creates this is a TreeView SelectedNodeChanged event. All of this works fine. But I am having trouble finding controls within the tables. The below code will not locate the specified text box. What am I doing wrong. Dim txtNewProgMemo As TextBox = CType ( Me .PlaceHolder1.FindControl( "New"
Posted to
Web Forms
(Forum)
by
Skip_Frog
on 4/7/2008
Re: Validation with a Tree View/Form View
After some further examination the SelectedNodeChanged event was not firing after the page became invalid. By adding the Else to set the node selection to False fixed the problem. Protected Sub TreeView1_SelectedNodeChanged( ByVal sender As Object , ByVal e As System.EventArgs) Handles TreeView1.SelectedNodeChanged Page.Validate() If Page.IsValid Then Me .SqlDataSourceTaskDetails.SelectParameters.Item( "Id" ).DefaultValue = TreeView1.SelectedValue Else TreeView1.SelectedNode.Selected =
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
Skip_Frog
on 2/26/2008
Re: Validation with a Tree View/Form View
Okay I have made some progress. I have changed the code to now set the select parameter on the SelectedNodeChanged event and look if the page is valid. Strange problem now is that for some reason after the page becomes invalid the form view stops reponding to the tree view clicks even after the page becomes valid again. It is like the form view loses sync from the treeview. Ideas? Protected Sub TreeView1_SelectedNodeChanged( ByVal sender As Object , ByVal e As System.EventArgs) Handles TreeView1
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
Skip_Frog
on 2/26/2008
Page 1 of 18 (171 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
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
Channel 10:
WHS Power Pack 3 Arrives
Channel 10:
ASUS Brings GUI to BIOS
ASP.NET:
Microsoft AJAX CDN – Now with SSL Support
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
ASP.NET:
PDC09 Talk: Building Amazing Business Applications with Silverlight 4, RIA Services and Visual Studio 2010 – Now in Visual Basic!!
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
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online