tag:blogger.com,1999:blog-3893582346020662759.post8313610619793448702..comments2024-03-02T10:24:11.056+05:30Comments on SharePoint, ASP.Net, JQuery, SQL Solutions: To access html control without runat=”server” in C# code.Anonymoushttp://www.blogger.com/profile/11277148819153438060noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-3893582346020662759.post-23231162752613757132014-02-15T13:07:12.755+05:302014-02-15T13:07:12.755+05:30I am able to get value using request.form[] but I ...I am able to get value using request.form[] but I want to display value on textarea . and I don't want to use runat server. its urgent .Please tell me with example. its so urgentAnonymoushttps://www.blogger.com/profile/02239353121789583901noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-45204003825781638362013-11-27T14:11:12.515+05:302013-11-27T14:11:12.515+05:30Thanks alot..It really helped..I changed 'ID&#...Thanks alot..It really helped..I changed 'ID' to 'name' in my input control and it worked for me...Thanks alot Anonymoushttps://www.blogger.com/profile/08789172062886263630noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-54871957332079521162013-08-28T13:49:17.969+05:302013-08-28T13:49:17.969+05:30Hi there,
It should work as the object Request.For...Hi there,<br />It should work as the object Request.Form will load all key value pairs on the page. Try correct and make sure the input control has name attribute and the form method type should be POST.Anonymoushttps://www.blogger.com/profile/11277148819153438060noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-51018633464521825812013-08-28T13:42:39.499+05:302013-08-28T13:42:39.499+05:30sir its not working for mesir its not working for meAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-31190010617514854592013-06-04T11:51:03.371+05:302013-06-04T11:51:03.371+05:30How Can Access select list selected value in code ...How Can Access select list selected value in code behind withou runat=serverSadikAlihttps://www.blogger.com/profile/00694193919963676795noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-54393427691486966002011-03-20T04:58:57.040+05:302011-03-20T04:58:57.040+05:30I had same problem with null, so I added name and ...I had same problem with null, so I added name and id attributes to the input tag and it worked!Unknownhttps://www.blogger.com/profile/04186517330842223243noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-44552397108339971302010-07-30T23:22:56.051+05:302010-07-30T23:22:56.051+05:30I am getting the same null error and I did follow ...I am getting the same null error and I did follow your rulesquitstalinnoreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-81640035604217701602009-11-04T00:48:59.160+05:302009-11-04T00:48:59.160+05:30Then you didn't follow my rules....
Please che...Then you didn't follow my rules....<br />Please check them one more time and let me know.<br /><br />1.The tag should have an attribute called NAME. Because it is used as key in form[].<br />2.The form method should be of type POST.Anonymoushttps://www.blogger.com/profile/11277148819153438060noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-14885004428087102412009-11-04T00:43:33.250+05:302009-11-04T00:43:33.250+05:30Hi,
this code is not working for me.
i have just p...Hi,<br />this code is not working for me.<br />i have just placed your code for test but it gives a exception of null value.Chandra Prakashhttps://www.blogger.com/profile/15105899896717888157noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-67140623488268065582009-10-17T07:31:37.057+05:302009-10-17T07:31:37.057+05:30Thank you for this tip. While using ckeditor, writ...Thank you for this tip. While using ckeditor, writing runat="server" was a programatically porblem. But this tip, solved my issue. Thanks again.vestanbulhttps://www.blogger.com/profile/18067248640145168095noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-59073001920260305002009-09-29T10:52:47.463+05:302009-09-29T10:52:47.463+05:30Thanks for the nice comment Doug.Thanks for the nice comment Doug.Anonymoushttps://www.blogger.com/profile/11277148819153438060noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-87532829336109246572009-09-29T10:50:39.901+05:302009-09-29T10:50:39.901+05:30I think what people need to understand is that the...I think what people need to understand is that the web is a stateless environment. NO form element will maintain state after a postback. Microsoft has "faked" state by adding viewstate to the mix, so that windows developers can develop for the web without needing to know anything about it. People need to leave this behind as its failed thinking. Web forms as a framework will save you time, but you need to understand what is going on in the background to achieve this - it will make you a better developer, and open your eyes to other things you can do with web services and ajax.Doughttps://www.blogger.com/profile/11500853279315228852noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-8811960396192148112009-09-29T10:39:50.699+05:302009-09-29T10:39:50.699+05:30Yes, Most of the devs are in the idea of after su...Yes, Most of the devs are in the idea of after submission of the form the values should stay there without disappear. But, actually when you submit the form, The whole page is loading again with postback. So, all values gets clear if and only if it is not a ASP.NET server side control. If it is a ASP.NET server side control then there is a concept called ViewState which maintains the values of the controls in encrypted format on the page. [You can see this by view source on the browser. like input with type="hidden" and some encrypted text.] So, before page sent back from server the view state cycle runs and all the values set and renders on the page. So the values remains same for the .NET controls. Where as just input control without any server side tag, for them no view state maintain. So, values won't be there after submission of the form. Is it clear? Please let me know, if you have any more questions on it.Anonymoushttps://www.blogger.com/profile/11277148819153438060noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-53189559873734416622009-09-28T20:28:02.901+05:302009-09-28T20:28:02.901+05:30<input type='text' name='forename&#...<input type='text' name='forename' /><br /><br />Works fine, but doesn't maintain it's value after the user submits the form.David Kemphttps://www.blogger.com/profile/03848249444223250254noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-68710954520214945712009-09-28T06:28:11.447+05:302009-09-28T06:28:11.447+05:30I find that the fact .net developers need to be to...I find that the fact .net developers need to be told this - any other web language takes this for granted. Web forms are a magical MS creation, and the rest of the web does it this way. People need to step outside the webforms world more often - there is alot out there and their knowledge of the web is severly limited by not knowing these things :)<br /><br />Good post though, keep up the goog work. <br />Doug (An Asp.net developer by trade)Doughttps://www.blogger.com/profile/11500853279315228852noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-61960250971127873492009-09-24T22:57:56.635+05:302009-09-24T22:57:56.635+05:30Hi Elgarhy,
Yes, you are right. It will work with ...Hi Elgarhy,<br />Yes, you are right. It will work with the input elements and the name attribute is must for them. Because standard HTTP protocol sends the data to server as key, value parameters. Key is the name of the element [not ID] and value is the value of the form control.Anonymoushttps://www.blogger.com/profile/11277148819153438060noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-47946169037373898352009-09-24T22:44:55.417+05:302009-09-24T22:44:55.417+05:30But this will work just with input elements, becau...But this will work just with input elements, because most of other HTML elements haven't standard name attribute. am i right?Amrhttps://www.blogger.com/profile/09858019818591071259noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-52258890636147952032009-06-11T16:38:46.887+05:302009-06-11T16:38:46.887+05:30Nice tip.
Wil look for more articles.Nice tip.<br />Wil look for more articles.Scottnoreply@blogger.com