|
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
|
|
|
|
|
Can you access the length property if it is not in a tab container?
I didn't get any requirements for the signature
|
|
|
|
|
on another form i have radio button list where I get the radio buttonlist object by using document.getelementbyid function and i can access checked or length properties
but since this one is nested inside ajax tab container and tab panel
i have to use get$ and i can not avail these properties.
|
|
|
|
|
Hi Everyone,
i having problem use the __doPostBack in conent page,i have fileuploader in my conent page,and im using a javascript for check the correct file format has select from the user,my javascript is
functon checkfile()
{
__doPostBack('linkbutton1','');
}
i use this script onchange event of my fileuploader,but this is not working,(im using linkbutton onclick event for serverside validation for give a message),can anyone help me to do this.
thanks
|
|
|
|
|
This is just a guess, but is it the id of the button. The id changes if it is in a content place holder. You will have to add the script from your server code and use LinkButton1.clientId.
I didn't get any requirements for the signature
|
|
|
|
|
Hi
Thanks for reply,i tried this before i post this problem to here,i put in my page load FileUpload1.Attributes.Add("onchange", "__doPostBack('<%= LinkButton4.ClientID %>', '');");
but still its not working,and also my linkbutton in the content palace holder.
|
|
|
|