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:833747
More Search Options
RSS Available
Matching Posts
get contact details from exchange 2003 using ado.net
hello, i need to get details like user's phone number from it's contact details in Exchange Server 2003, i have to do this using ado.net or other alternatives thanks
Posted to
Enterprise Services Integration
(Forum)
by
tudorb
on 7/3/2009
Re: events not firing when adding controls dynamically
the problem is that under each row that i add wich contains (txt, dll, imagebuttons) i have to add so diffrent controls when click on imagebutton txt dll imagebutton txt dll imagebutton (when click on imagebutton) --------------------------------------- create row (after imagebutton is clicked) whick contains other controls --------------------------------------- txt dll imagebutton txt dll imagebutton So i have to break the Panel to add the imagebutton_click event row
Posted to
Web Forms
(Forum)
by
tudorb
on 6/11/2009
Re: events not firing when adding controls dynamically
it's exactly the same problem :(
Posted to
Web Forms
(Forum)
by
tudorb
on 6/11/2009
Re: events not firing when adding controls dynamically
this is the code, is only one panel using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class _Default : System.Web.UI.Page { Panel pnlPanel; protected void Page_Load(object sender, EventArgs e) { //Dynamic TextBox Panel pnlPanel = new
Posted to
Web Forms
(Forum)
by
tudorb
on 6/11/2009
Re: events not firing when adding controls dynamically
i think is beacause of viewstate= false, the controls features are not kept anymore
Posted to
Web Forms
(Forum)
by
tudorb
on 6/11/2009
Re: events not firing when adding controls dynamically
No, each time i click add button i add a txt and a ddl, code works fine for adding, the problem is on arranging the controls i add : txt ddl txt ddl txt ddl and the it looks : txt txt txt ddl ddl ddl
Posted to
Web Forms
(Forum)
by
tudorb
on 6/11/2009
Re: events not firing when adding controls dynamically
Yes, i don't have the error anymore, but i have a problem Each time a add a textbox and a ddl, the problem is that when recreated the controls are aranged by type, i mean n*textboxex and n*ddls, is there a solution to resolve this?
Posted to
Web Forms
(Forum)
by
tudorb
on 6/11/2009
Re: events not firing when adding controls dynamically
I am getting an error when trying to add textboxes and ddls in the same placeholder, the error is: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. i think this might be in accordance with what sumitd says about the
Posted to
Web Forms
(Forum)
by
tudorb
on 6/11/2009
Re: events not firing when adding controls dynamically
hello again mudassarkhan, thanks a lot, you are right, the changes you have done now i have added before except for the test if the name of the control contains "EVENTTARGET" i've made a debug and after setting the autopostback and adding the SelectedIndexChanged the controls were not recreating properly; due to this additional change that you have done the code is working good now thanks
Posted to
Web Forms
(Forum)
by
tudorb
on 6/11/2009
Re: events not firing when adding controls dynamically
I have added them, they have been there before, here is the code, first in the protected void btnAdd_Click(object sender, EventArgs e) if (btn.ID == "btnAddDdl") { int cnt = FindOccurence("ddlDynamic"); DropDownList ddl = new DropDownList(); ddl.AutoPostBack = true; ddl.ID = "ddlDynamic-" + Convert.ToString(cnt + 1); ddl.Items.Add(new ListItem("One", "1")); ddl.Items.Add(new ListItem("Two", "2")); ddl.Items.Add(new ListItem("Three"
Posted to
Web Forms
(Forum)
by
tudorb
on 6/11/2009
Page 1 of 3 (25 items) 1
2
3
Next >
Channel 9:
Channel 9 Live at PDC09: Dr Jeff Norris, NASA
Channel 10:
Flickr Drive Integrates Flickr into Windows Explorer
Channel 10:
Playfire: A Growing Network for Gamers
Channel 10:
Find the Top iPhone Apps with Bing (Yes, Really!)
Channel 10:
Xbox to Become Emergency Alert System
Channel 10:
Progression of the Iconic Background
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
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
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online