Can't change controls name !
-
hi Experts! I am working on a website in ASP.Net/C#.Net.I am new to .Net Platform and also new to Web Development. My problem is.... if i change the name of any of the controls in an aspx page .... for example there is a textbox... when i change its name... i get an error message "The Directory Name is Invalid". And the IDE resets its name to the previous one. I mean i m not able to change its name. Thanx in Advance! Regards IPS
-
hi Experts! I am working on a website in ASP.Net/C#.Net.I am new to .Net Platform and also new to Web Development. My problem is.... if i change the name of any of the controls in an aspx page .... for example there is a textbox... when i change its name... i get an error message "The Directory Name is Invalid". And the IDE resets its name to the previous one. I mean i m not able to change its name. Thanx in Advance! Regards IPS
-
hi Experts! I am working on a website in ASP.Net/C#.Net.I am new to .Net Platform and also new to Web Development. My problem is.... if i change the name of any of the controls in an aspx page .... for example there is a textbox... when i change its name... i get an error message "The Directory Name is Invalid". And the IDE resets its name to the previous one. I mean i m not able to change its name. Thanx in Advance! Regards IPS
-
Probably you would be giving invalid name to them. Can you tell what names are you trying to assign.
Apurva Kaushal
-
I think u r changing it when running the program.Stop the program go to source and change the name
-
Probably you would be giving invalid name to them. Can you tell what names are you trying to assign.
Apurva Kaushal
I have experience with this problem! You can try to change its name in HTML tag ID="TextBox1" in source page. Example : id="TextBox1" runat="server"> Good luck :)
junior boy
-
Apurva Kaushal wrote:
Probably you would be giving invalid name to them
No i am not giving any invalid name. say if textbox's name is tbFirstname.. then i am changing it to tbFaxNo. thats it!
-
I have experience with this problem! You can try to change its name in HTML tag ID="TextBox1" in source page. Example : id="TextBox1" runat="server"> Good luck :)
junior boy
-
Junior Boy wrote:
You can try to change its name in HTML tag ID="TextBox1" in source page. Example : id="TextBox1" runat="server">
Hey Junior Boy.... it has solved my problem.. Thanx..! but i just want to know why did it happen? Can u tell me the reason?
-
Me too experienced the same probs long back.. Its due to reference and dependencies made by the control to the register..... Hope u can do it now...
SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE
-
Junior Boy wrote:
You can try to change its name in HTML tag ID="TextBox1" in source page. Example : id="TextBox1" runat="server">
Hey Junior Boy.... it has solved my problem.. Thanx..! but i just want to know why did it happen? Can u tell me the reason?
Problem might be If you change the deafult name in Designer.cs file it create object of textbox and assign delgates to it If you change the name of the control then it is not valid Did you tried changing the name of control in some other event like Init or preinit i think that will not give problem
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "