App is imported in the parent web.config file, Tom and App have classes with the same names.To avoid errors resulting from ambiguous class names I removed the App namespace from the sub-directory where the Tom namespace is used.
However the namespace App is still imported on content pages that have a master page outside the Tom directory. This causes the aforementioned errors.Here is my dir structure
--web.config (App is added in web.config)
---web.config (App is removed in web.config)
---Content page that uses Default.master (Here is the problem)
---Page without master (Works OK)
We (out IT partner really) recently changed some DNS for a web farmed site we have so that the two production server have round-robin DNS switching between the two. Prior to this switch we didn't really have problems with WebResource.axd files. Since the switch, when we hit the live public URL, we get an error:
Padding is invalid and cannot be removed.
When we hit the specific servers themselves, they load fine. I've researched the issue and it seems since they're sharing assets between two servers, we need to have a consistent machineKey in the web.config for each server so they can encrypt and decrypt consistently between the two. My questions are:
Can I generate a machineKey via a tool on the server, or do I need to write code to do this?
Do I just need to add the machineKey to the web.config on each server or do you think I'll need to do anything else to make the two server work together? (Both web.config's currently do not have a machineKey)
I have a ASP .NET Repeater data bound to a DataTable. Everything works fine where I can add rows to the DataTable & Bind() and the Repeater will gracefully show the newly bound data and delete from the DataTable and Bind() and the Repeater will remove the data.
However a strange problem exists where when rows are been deleted, the last standing row, although perfectly deleted from the DataTable would still be shown in the web page. It's as if for the last row, the Repeater is not data bound! But I have put break points and analysed that the item is definitely deleted from the DataTable and the Repeater1.DataBound() is called as well. If the page is refreshed, the last item is deleted as well (just as it should).
if (dtTelephoneNumbers.Rows.Count == 0) dtTelephoneNumbers.Clear();
Here is my delete code.
public static DataTable dtTelephoneNumbers = new DataTable();
And everything happens inside a UpdatePanel which is inside a Wizard Step.
The data is local only (for now). I collect all information from the user using a wizard and finally add it to the database.
Works just fine when used without an UpdatePanel. :( Looks like the UpdatePanel has got something to do with this!
http://forums.asp.net/p/1594624/4042812.aspxi have come across hopefully this can be fixed...if the texteditor has a value of <h4>Test</h4> and then i click on a custom h1 button, the h4 is converted to h1 but it leaves a h4 tag as well as below
<h4 /> <h1>Test</h1>
How can i make sure the the tag is completly removed again i get a simlar issue with a "paragraph" button.
how to maintain state of placeholder. i have a placeholder in which i add many image controls dynamically but when my page get refresh all controls from placeholder gets removed from it. the enableViewstate of placeholder is set to true.
in my aspx page i have some controls loadded dynamic and other one loaded static, when i am loading the user control dynamically,the dynamic usercontrols loaded successfully, but all static control inside page will be removed! i load the user control using the bellow code inside PlaceHolder. this is my code in aspx page:
The WEBFORM1.ASPX is working well and I am very Puzzle by the data entry TEXTBOX. Each time after the User has input the data and hit ENTER KEY, very strangely all the TEXTBOX contained data have been cleared off data. How do I ensure that when ENTER KEY is pressed by user it will not removed all the TEXTBOX Data. Here is the sample coding of the data entry TEXTBOX.:
I have all application errors sent to my email. I keep getting this:
mysite.com/webresource.axd?d=yacsx7hz0irzn_i7ifr3morrek9u6srdkqxsjvpn3mw1&t=633598204507656250 Padding is invalid and cannot be removed.
Stack Trace: at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte inputBuffer, Int32 inputOffset, Int32 inputCount, Byte& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte inputBuffer, Int32 inputOffset, Int32 inputCount) at System.Security.Cryptography.CryptoStream.FlushFinalBlock() [code]....
i googled and read to add machineKey in my web.config <system.web> which i did: <machineKey validationKey='0EFA95136AEA44850D5CEDDF0CC7502B1A009.....' decryptionKey='E88EB13ADB2C3D395193AA71DBB1E...' validation='SHA1'/>
and added <pages masterPageFile enableViewStateMac="true" viewStateEncryptionMode="Auto"> to my masterpage.But i keep getting that error.
I have an ASP.NET web site project, which I'm publishing to IIS on my Win2k8 R2 server. It has a default page called login.aspx. I set that up on the published web site.
Trouble is, every time I publish a new version of the web site, the login.aspx entry gets erased from the "Default Document" settings of the web site in IIS. This is very annoying. How can I publish my web site from Visual Studio without wiping out the default page every time?
i created a site using asp.net, i got hosting space and uploaded my files, as per my process i ll send the Email verification link to users mail id with link to my site, if they click the link they will directly redirect to my site's registration page.it's working fine in my local iis and in visual studio, but in the host i'm getting error as Server Error 404 - File or directory not found.The resource you are looking for might have been removed, had its name changed, or is temporarily unavailabl
I just downloaded the latest ajax control toolkit and was trying to use ComboBox (as described on the samples page). However, I can't find it (tried to do reflection on the assembly as well).So is the ComboBox still in ajax control toolkit or it is removed or renamed etc?
I have a form that has contact fields, billing address, and shipping address. So if i fill out my contact information ONLY and left billing and shipping address blank then hit submit, the validation for the billing address and shipping address appears. Ok no problem, there is a check in each billing and shipping fields that once click on it copies the address from contact to billing or shipping fields. Everything works except for the validation messages. They are still there. Is there a way to remove the validation message after the textboxes are populated with data?
I have some code written in c# to obtain the text and numbers from a web interface that required user inputs. my problem is that the texts i am getting off the web is displays in html forms (i.e. it has tags all over the place) hence, i would like to filter out the html tags, is that possible? i searched up some codes but it didn't help me as it brought up even more problems when compile.
I have a series of div's inside an update panel, these divs have a margin-bottom defined in css. In IE8, when I do a async postback these margins are all removed. All the other styles are fine. If I turn on compatibility mode this does not happen. In Google Chrome the margins are maintained correctly after the async postbacks.