|
Hi,
You cannot use one web.config file for more than one application. But if a project contains several applications, you can use more than one web.config file for each application in separate folders.
Hope this helps.
Raja Raman S
Reuters India Pvt.Ltd.
Bangalore
|
|
|
|
|
I have developed a web service in our company.I want to only allow our customers' code to call our webservice,But I don't have much knowlogy on web sevice security.Can any one help me?
Also are there basic security issues i should look into or does any one have any resources/links that will help me make a secure site.
|
|
|
|
|
You can check out the WSE[^]
|
|
|
|
|
Using Google Web Master Tools, I checked the statistics about page encoding, and I received the follow results:
UTF-8
US-ASCII
ISO-8859-1 (Latim-1)
All my pages I have configured to UTF-8, how to can appears the another encodings? What I can check/change to all my files to be provided as UTF-8?
Regards
Jesus is Love! Tell to someone!
|
|
|
|
|
Hi there,
You might want to check out the ContentEncoding and HeaderEncoding properties of the Response object, for more details see HttpResponse Members [^]. Normally, you can use the globalization setting entry in the web.config file to set for all web pages.
|
|
|
|
|
Haii,
Thanks lot for your message. I got one more doubt regarding the web controls. In the form which i prepared , want to show/hide some web controls based on the option selected from other web control. For example in the form i have drop down list options to select different software vendors . Based on the option(vendor selected ) , want to show/hide web controls(ex:Text box). Can you please guide me how can i make it out. from my knowledge based on the selectedindexchanged event we can make it out. But i dont know how to hide/show the web controls.
Thank you,
Veerendra
|
|
|
|
|
Server controls have a Visible property. If set to false they will not be rendered in the page. Use that.
regards,
Mircea
Many people spend their life going to sleep when they're not sleepy and waking up while they still are.
|
|
|
|
|
Hai,
I am completely new to this field and can you please help me out with the following doubt?
I developed the request form where the user will fill in all the required details and will submit the form. I want to know how can i make it to send the submitted data on the request form to the database. I am using MS Access database. Please help me out with this .
Thank you,
Veerendra
|
|
|
|
|
|
Hi,
My application module has 3 reports: rptByName, rptByCity, rptByArea.
Each report has the same dataset; however, each report is sorted according to Name, City, or Area.
I have a "generate report" button that displays the report according to the user selection from a "Sort by:" listbox.
This is the code for the button_click event:
If sortOptionsList.SelectedValue = "Area" Then
ReportViewer2.LocalReport.ReportPath = rptByArea
ElseIf sortOptionsList.SelectedValue = "LastName" Then
ReportViewer2.LocalReport.ReportPath = rptByName
ElseIf sortOptionsList.SelectedValue = "City" Then
ReportViewer2.LocalReport.ReportPath = rptByCity
End If
ReportViewer2.LocalReport.Refresh()
However, once any report is opened, that report stays on the report viewer.
So, how can I fix this? Also, is there a way that I could use only one report but programatically change the sort value?
The reports are being run locally, BTW.
Thanks
|
|
|
|
|
Hello,
I have a master page where my form has the Runat="server".
The master page as a control place holder, named "cphContent".
Then in a page which inherits from the master page I added a custom control which I created.
This custom control is added to "cphContent" at runtime.
The custom control creates and adds 2 textboxes using CreateChildControls.
I am getting an error:
System.Web.HttpException: Control 'ctl00_cphContent_by27cf_tbName' of type 'TextBox' must be placed inside a form tag with runat=server.
I have no idea why do I get this error.
The form with Runat="server" is in the master page.
Anyway, can someone tell me how can I figure what is going on?
Thanks,
Miguel
|
|
|
|
|
The problem is that the dynamically created control is placed outside of the form. This happens in some situations, that's why you should place your dynamically created controls into a placeholder control.
Simply add that and ad the controls at runtime into the placeholder.
regards,
Mircea
Many people spend their life going to sleep when they're not sleepy and waking up while they still are.
|
|
|
|
|
Hi
I have a webservice which is residing on my machine. I am trying to access it via a proxy method from my windows form.
SoapEnvelope en = base.SendRequestResponse("LogEntry", SoapEnvelope sen);
This line is throwing an exception InnerException {"The remote server returned an error: (401) Unauthorized."} System.Exception {System.Net.WebException}.
Any ideas on why I am getting this error when the webservice is local to my machine?
Thanks
Minu
|
|
|
|
|
On IIS enable the anonymous property.
Ram
|
|
|
|
|
I have already done so. Also I am using custom token manager, wse3.0
Thanks
Minu
|
|
|
|
|
The Unlock User Program I have created works perfectly as a HTA. The only problem with this approach is that I have to install the scripts and the HTA on the office managers PC so that they are able to remotly unlock their employees. Is it possible to convert the HTA into an ASP.Net page that would run on our internal webserver so that the files could all be located on the server and not on the office managers PC?
Thanks,
Zach
|
|
|
|
|
Hi..
I am working with a programming team. We are trying to make a shopping cart for a big company.We want to use some kind of ID for each shopping cart (for each customer) We want this ID to be unique and to be as small as possible.For this reason We don't want to use GUID or even SessionID because they are 16,32(as I remember) byte long.So is there any other choice that has a small size of data?.Please help..Any suggestion could be helpful.
I am too late but i will never give up
|
|
|
|
|
Why would the size really matter for an internal ID? I would use GUIDs to guarantee uniqueness with minimum processing. Your other options are DBs, but then you might have concurrency issues.
|
|
|
|
|
Thank you for responding to me...
You said :"Your other options are DBs"
May you explain to me What do you mean and how?
Hope to continue this conversation with you and our friends in the forum who like to help.
I am too late but i will never give up
|
|
|
|
|
just as a way of doing it, you can create a database table with one identity coloumn, and another column to hold the sessionid. When a cart is created, add a record to the table, and retrieve the newly created ID. Everytime the the database is updated, you will get a new id.
You may want to also create a service that will remove the dead items where a session is terminated.
|
|
|
|
|
Thank you very much I will keep in mind you clever ideas.
I am too late but i will never give up
|
|
|
|
|
Hi
I currently have a web application that presents a user with a username and password box (text boxes) - once the user registers their password is encrypted and stored in a database.
My question is this - the password is sent from their machine to the server in plain text. Is there a simple way of encrypting the form without using javascript to make it more difficult for their password to be seen across the internet/network
Also are there basic security issues i should look into or does any one have any resources/links that will help me make a secure site.
Thanks and sorry for the general nature of the problem
Dan.
|
|
|
|
|
|
There are methods to encrypt strings in .Net. Use the following article as base,
http://support.microsoft.com/kb/301070
Ram
|
|
|
|
|
Try using MD5 as the encryption on the client side. You can change the password using the javascript code at http://pajhome.org.uk/crypt/md5/">http://pajhome.org.uk/crypt/md5.
The tricky part is to use a unique "salt" value that is created when the page is created and used as part of the submit process. The stored password is encrypted with the same salt value on the server side and the value is compared with the calculated value from the client. I have used a date stamp like yymmddHHmmssfff or something like that to calc the salt value.
Hope this helps.
|
|
|
|