|
ToddHileHoffer wrote: Adding runat=server will give you a generichtmlcontrol in your server code
No, in this case it will give you an HtmlInputText control.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I stand corrected.
I didn't get any requirements for the signature
|
|
|
|
|
Pete O'Hanlon wrote: That's an HTML control. ASP.NET has no idea what you want to do with it. It must be an asp:TextBox control to be visible in C#.
Not at all.
All that is needed is the runat="server" attribute in the tag. It becomes a System.Web.UI.HtmlControls.HtmlInputText control when the markup code is parsed.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Well I live and learn. Thanks for that.
|
|
|
|
|
how to update web.config file runtime in ASP.NET
|
|
|
|
|
nalokmishra_14 wrote: how to update web.config file runtime in ASP.NET
It is just an XML file, so the same way as you would modify any other XML file.
However, many IIS servers are set up that the ASP.NET process cannot modify the web.config for security reasons. It is possible that your application could be compromised and an attacker gain access to the web.config file and modify it for their own malicious ends.
|
|
|
|
|
There is a Class WebConfiguarationManager under System.Web.Configuration NameSapce .
Just Try to Learn the Use of that Class , using that class you can Change Web.config Runtime.
This are the same API tha ASP.NET 2.0 Web Administation Tool Used
|
|
|
|
|
Adding to what others said,
Modifying web.config at runtime is not a good idea as it will recycle the asp.net application process which disturbs the people who are online.
|
|
|
|
|
|
Problem,can u run .net app in mobiles or i hav to get j2me, nad how
|
|
|
|
|
Hi,
.Net applications can be run on the mobile devices provided the mobile has Windows Mobile Operating System and a Compact Framework.
J2ME is entirely a different technology and you do not need J2ME to run .Net applications.
I hope this would be helpful.
John Adams
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Look at .NET compact framework which allows to create applications which runs on Windows CE.
|
|
|
|
|
.NET CE is specifically for Pocket PC, PDAs and other Mobile Devices...
Try out them... .NET 2008 gives many advanced enhancements to .NET Compact Environment.
Abhishek Sur
|
|
|
|
|
Hello,
I have a URL which goes to the different users. My URL is very long and can I make it smaller.
My URL looks like:
www.mydomain/registration.aspx?email=pavas.malviya@hh.com®key=%$%$@@###usueyend*&^$#^%^$#%^
Can I tweak it?
Regards,
Pavas
|
|
|
|
|
|
mpavas wrote: www.mydomain/registration.aspx?email=pavas.malviya@hh.com®key=%$%$@@###usueyend*&^$#^%^$#%^
Since this is a registration page URL, I don't think you really need to rewrite it. Also passing email address through URL is not a good idea.
|
|
|
|
|
why do you want to send everything through querystring....
Its not good... use other means of transfer.....
Abhishek Sur
|
|
|
|
|
This is a URL which users click and get activated to our site. Hence I need to bind the details with the email id. Other parameter is the unique 128 bit encrypted key.
Some time this URL is broken [based on the email client users use]. Hence it becomes difficult for them to get activated.
Regards,
Pavas
|
|
|
|
|
I have some code in a DLL that is used by several apps - some ASP.NET, some WinForms, and one console.
I need to set up logging in the DLL in different ways (e.g. using Trace for ASP.NET) according to the app type - is it possible to determine the app context from a DLL? e.g. by AppDomain ?
'Howard
|
|
|
|
|
The easiest way is to pass a parameter to whatever class you want to instantiate. Of course, if httpcontext != null then it is a web application. I don't know if you can tell from the appDomain.
I didn't get any requirements for the signature
|
|
|
|
|
You got good advice on checking the http context. We use this to check the source of the code, and you can check it easily enough in your code simply by checking HttpContext.Current. If it's null, it's not a web app.
|
|
|
|
|
So it looks like the consensus is check HttpContext then - thanks
'Howard
|
|
|
|
|
Hi,
I have ajax toolkit tab container on my form. On one of the tab panels , I have radio button list
with two radio buttons inside.
Now I want to find out in my javascript that which one is clicked.
But before that I can not get hold of radio button list in my javascript as its now nested. it becomes TabContainer1_TabPanelLeasedAssets_RadioButtonList_Main_Lease
var radioButtonlist1 = document.getElementsByName("RadioButtonList_Main_Lease")
returns null
so I am using
radioButtonlist1= $get('<%=RadioButtonList_Main_Leased%>');
which returns the object but then following code doesnt work
if (radioButtonlist1[1].checked)
{
alert ('second radio selected');
}
how to get which radio is selected under the radio list when its nested
regards
Vijay
|
|
|
|
|
radioButtonlist1= $get('<%=RadioButtonList_Main_Leased.ClientId%>');
Did you try using the clientID?
I didn't get any requirements for the signature
|
|
|
|
|
I get by it but it doesnt even give length property on the returned object
|
|
|
|