What Causes IE7 To Seemingly Add Amounts Of Padding Above And Below Controls
Feb 24, 2010What causes IE7 to seemingly add amounts of padding above and below controls?...all other browsers seem to act totally fine...
View 6 RepliesWhat causes IE7 to seemingly add amounts of padding above and below controls?...all other browsers seem to act totally fine...
View 6 RepliesI am just a student so sorry if I sound amateurish. I am doing developemnt for a web application that uses LINQ to SQL (even though apparently its going to be depreciated soon) and this query always returns 0 results. I have lots of experience with LINQ to SQL and have applied it to the entirety of a huge site; this one query isn't working right though.
[Code]....
so I emailed myself stuff for debugging and sure enough, the parse to datetime and accesssing year worked fine, it grabbed 2010 from the db, month and day as correctly in the DB.the querystrings were in the URL and i verified that they are the values from which there would be many results
I am using code to cycle though my gridview to add amounts in each row. The trouble is that I have the page set to allow paging. My amounts are only adding the amounts on the current page. I will post my code below
[Code]....
I am using access database with asp.net C# page.
I have multiple amounts that I need to display and edit. I am trying to understand the best way to do this..
In MSAccess:
Should I define them as currency or number?
ASP.net
if I use formatting for the field as {0:C}, it works fine in View mode. However, i am unable to update the field in Edit mode for an amount with decimal places. In Edit mode, I can only enter whole numbers(ex: I can enter 123, but not 1.23).
If I set the ApplyFormattingInEditMode=True, I am unable to save data entered in any format($123.23, 123, 123.23, all of them cause the error).
The error I am getting is "Input string is not in a correct format".
How do you set the padding for a column so that the text cannot go near the sides of the cell.
View 2 RepliesCellPadding only applies the padding to the header row. CssClass in Gridview, RowStyle or EditRowStyle has no effect.
View 2 RepliesI am using:
href='<%# Eval("Directory")+eval("Agenda")%>
to provide a link to documents held in directory so directory contains [URL] or [URL] Agenda contains
00209-FebruaryMtgMin%5E_.pdf
If I declare Directory as VarChar(nnn) where nnn is large enough to accomodate the longer field, The statement <%# Eval("Directory")+eval("Agenda")%> returns
[URL]self.aspx/.Public/ 00209-FebruaryMtgMin%5E_.pdf
How can I get rid of the Pad characters?
I want to add spaces between multiple images in a pdfcell
I create a code to add multiple images on a pdfcell but i dont create spaces between images
Paragraph p = new Paragraph();
//p.Add(new Phrase("Test "));
p.Add(new Chunk(Image.GetInstance(VisaImage),0, 0));
p.Add(new Chunk(Image.GetInstance(Mastercard), 0, 0));
p.Add(new Chunk(Image.GetInstance(Discover), 0, 0));
p.Add(new Chunk(Image.GetInstance(AMER_EXP), 0, 0));
PdfPCellForPayment.AddElement(p);
PdfTableForPayment.AddCell(PdfPCellForPayment);
i want to add leading space in dropdown list after binding from DB.
for that i used leftpad method but not working.
code are as below
[Code]....
I have part of a project whereby I need to send 1 to up to 2000 emails from a webpage. One open source bug tracker used a Thread to send emails but it was riddled with bugs. So just want to know if anyone has any ideas of how I can create a procedure that send up to 2000 emails a go?
I was told by one of my colleagues to leave it as one process (normal routine sending one email at a time) as it won't take long to process all the emails anyway. Doesn't seem right and I want to use threading... maybe I like complex routines?
[Extra]
I have something like:
foreach(string email in emailAddresses)
{
MailMessage mailMessage = new MailMessage();
mailMessage.To.Add(...)
...
SmtpClient client = new SmtpClient();
client.Send(mailMessage);
}
Im in the process of developing a web application, and I wish to store a reasonable amount of data for each user.
This data will be accessed each time the page is refreshed.
The only 2 options that I have come up with is:
* Session Data
* Storing the information in a text file with random file names for each person
* Database
The first one I do not really want to use as it would bog down the server - the second one is cumbersome
Is there any other options?
If possible i was thinking using the database, but am hesitant because of the amount of times the accessing of the database would need (every refresh for every user)
I dont want to store the information inside the viewstate (i dont know what MS was thinking when they thought of viewstate)
I have an asmx web service I am "Upgrading" to WCF. It's function is to pass a DataTable to the Remote Server. It works fine as long as the dataset contains under 20 records(more or less). Anything greater than that returns the error:
The remote server returned an unexpected response: (400) Bad Request
Everything I searched on the web says I need to increase things like maxBufferSize in my Web.Config File, but like so many others, it has produced no results. This seems like it should be a simple fix.
I am using VS 2010 on Windows 7. All Development and debugging is being done on the localhost. What I currently have for my web.Config file is below:
[Code]....
I am building a website for a small store. I want to know the concepts of payment methods.
I mean how to process payments and receive amounts for purchase the store has made.
We have a cookie management library that writes a cookie containing some sensitive information, encrypted with Rijndael. The cookie encrypts and decrypts fine in unit tests (using Moq), works fine for MVC web applications, but when called from an ASP.net 2.0 website, the cookie cannot be decrypted. "Padding is invalid and cannot be removed."
We are sure that the cookie value is valid because we tested it 10,000 times with random data in a unit test. There is something about what ASP.NET 2.0 does when it reads and writes the cookie that causes trouble.
I don't know how strong the support of RadControls over here is, but it can't be worse than Telerik(there I'm lucky to get a response in 2-3 days), so I'm going to try here first.
Basically, I'm trying to do custom theming(using just CSS classes) throughout my application, so I tried setting the CSS classes needed on the telerik RadTab controls.
Well, when inspecting it in firebug, it adds an extra like 50 px of padding to each tab, which there seems to be no control over. This is their rendered markup
<li class="rtsLI rtsFirst">
<a href="#" class="rtsLink ui-state-default"> <!--This is the only place where I can put in my own custom CSS class-->
<span class="rtsOut">
<span class="rtsIn">
<span class="rtsTxt">
Common Application
</span>
</span>
</span>
</a>
</li>
Now, I know you can't see the style classes, but according to Firebug, every class prefixed with "rts" has the line padding-left: 9px in the style sheet which would of course explain the extra padding problem. (Why do they need all this nesting anyway?!)
Is there another currency format string besides "C"? "C" seems to convert negative amounts like you'd see on a bank statement (e.g. $-10.67 shows up as ($10.67)). The guy here at work doesn't like to see .00 at the end of money so in a gridview I wrote for him I was just dropped the last three characters after I converted the values to .ToString("C"), but one negative value in the bunch breaks that logic.
View 7 RepliesHow to set padding-left to my custom textbox in css?
View 1 Repliesi have this string, i want to add some padding to create space between the elements. here is my code
StringBuilder sb = new StringBuilder();
for (int i = 0; i != confirmedOrder.Items.Length; ++i)
{
sb.AppendLine(
string.Format(
"{0} {1} {2} {3} <br />",
confirmedOrder.Items[i].ItemNumber,
confirmedOrder.Items[i].ProductTitle ,
confirmedOrder.Items[i].Size,
confirmedOrder.Items[i].Price.ToString("c")
)
);
}
as you can see i want to remove the and include some padding so the item details have some space between them.
I have a simple validator that should check if the the date format is incorrect. I am doing testing and enter 2/14/201... which gets passed through my validator as 2/14/0201. How do I prevent this and jump to e.IsValid = false;?
protected void rangeVal(object sender, ServerValidateEventArgs e)
{
DateTime dateCheck = txtDate1.Text.Trim();
[code]...
I'm using a skin file, and within the skin, I'm applying all the settings using CSS. I've got most parts working, but how do I set 'CellPadding="1" CellSpacing="3"' using CSS?
[Code]....
<asp:GridView runat="server" GridLines="None" AllowPaging="True" AllowSorting="True" CssClass="GridView" CellPadding="1" CellSpacing="3">
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.
[Exception Info]
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.
Following is the error log captured:-
The error description is as follows :
Source: mscorlib
Message: 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)
[code]....
This issue is occuring on and off and I am unable to reproduce it at my end.
Recently, a couple of my applications have started throwing exceptions with the message Padding is invalid and cannot be removed intermitently
My applications already have a machineKey specified in the web.config as suggested in this thread
The applications are deployed to a single Windows 2003 server running IIS6.
I need to change padding for one column in ASP.NET GridView, while all other CSS atributes defined in external CSS file should be left untouched. How can I do it? Update: Below is my code that solved the problem:
protected void gvwMaster_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Cells[0].Attributes.Add("style", "padding:0");
}
I am trying to get cell pading values from the stored procedure on to my gridview....
<ItemTemplate>