|
Hi,
In my website when users are downloading their Microsoft office 2007 files like the ones with .docx , .xlsx,.pptx extensions they are getting downloaded as .zip folders.This problem is happening only in google chrome browser.Thanks in advance for any suggestions and solutions.
Regards
jophin
|
|
|
|
|
Sonds like the browser is zipping them. I doubt there's anythign you can do about it then.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I think the there must be problems with filename...
I have downloaded lots of files in chrome and never found such issue.
|
|
|
|
|
How can I change the date type of a textbox in a Formview?
Thanks.
|
|
|
|
|
What do you mean ? A text box contains text. You can put a date in there, but only by rendering it as text. Your question makes no sense.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I know. At the moment the text box contains a date rendered as text, but it is a date field in SQL DB. At the moment the format is "date time" and I want to change it to only "date".
|
|
|
|
|
MrRhodos wrote: and I want to change it to only "date".
CG Is Correct .!
Please try To ask the Question In Brief..!
It Is Nothing to do with TextBox .In PageLoad.You Have to change the value of Date From Db and convert it into Your Fomat and Display it in TextBox
|
|
|
|
|
Now we are getting somewhere.. You understood my question.
I am a beginner, so you could please tell what kind of code I need and where I have to put it?
I guees it is to be placed under scripts and look a bit like:
Protected Sub ProjektstartdatoTextBox_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)
::code::
End Sub
Thanks for your help.
|
|
|
|
|
Use The Database query for retriving the data Fron DataBase as a date format
CONVERT (VARCHAR,u.[dob] ,101) AS dob
And Bind the Data to the Textbox in the FormView
Like
<asp:TextBox ID="DateOfBirth" runat="server" Text='<%# Bind("dob") %>'></asp:TextBox>
and in pageload Bind the Source
MrRhodos wrote: I am a beginner
Please try To Read a Good Book For FormView Control
|
|
|
|
|
It was much easier than that, but thanks for your help.
<%# Bind("dob","{0 }") %>
And you are right about the book, it would probably help a lot.
|
|
|
|
|
MrRhodos wrote: And you are right about the book, it would probably help a lot.
But, you get to keep your job either way, so you're not going to bother learning ASP.NET, right ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
MrRhodos wrote: How can I change the date type of a textbox
Plz Can You Explain In Brief..!
|
|
|
|
|
Convert your date to proper format which is understood by sql server.
use
DateTime.Parse
I think it would be better to understand your requirement if you could make more clear sentence.
|
|
|
|
|
I have a validation for the fileupload control in my page, where the user is supposed to upload only text or csv files. I used the following expression:
ValidationExpression="[a-zA-Z\\].*(.txt|.csv|.CSV)$
This works fine. However, the issue is, when the text or csv file starts with digits. How should I include numbers also inside this expression? Do anybody has anyidea? Pls help. I tried many ways, but Iam getting the custom error message, 'File must be txt or csv format'.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
simply modify the validation expresstion to this
ValidationExpression="[a-zA-Z1-9\\].*(.txt|.csv|.CSV)
|
|
|
|
|
Well, why don't you just check the file extension and accept any filename ? What if someone has a csv that happens to not have the right extension ? What if someone has a file called *.csv, but it's not a csv.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Dear All,
I am making an application using ASP.Net and C#. I have a text box where i require only numerics to be entered....
I have used the RegularExpressionValidator. I there any other way, where we can trap the Ascii key of the key pressed and validate this.
Thanks in advance
Sajit 
|
|
|
|
|
You can do this using javascript, but you should still use a validator on the server side, just in case. All JS can be defeated.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Dear Sasidhar,
Thanks for the fast response.
But the msdn link is for a window application. I am sorry, but i am making a web application. Can you throw some light on it.
Sajit
|
|
|
|
|
Again Try Now I modified It
|
|
|
|
|
Dear sashidhar,
where is the link...?? do i follow the same rizwan blog link...
sajit
|
|
|
|
|
<
script language="javascript">
function KeyCheck(e)
{
var KeyID = (window.event) ? event.keyCode : e.which;
if((KeyID >= 65 && KeyID <= 90) || (KeyID >= 97 && KeyID <= 122) || (KeyID >= 33 && KeyID <= 47) ||
(KeyID >= 58 && KeyID <= 64) || (KeyID >= 91 && KeyID <= 96) || (KeyID >= 123 && KeyID <= 126))
{
return false;
}
return true;
}
</
script>
HTML Text Box
<
input type="text" ID="txt_TextBox" onkeypress="return KeyCheck(event);" runat="server" style="width: 28px" />
ASP.Net TextBox
<asp:TextBox ID="txt_ASPTextBox" runat="server" ></asp:TextBox>
Code Behind for Asp.Net TextBox
txt_ASPTextBox.Attributes.Add("onkeypress","return KeyCheck(event);");
I Think This Your Answer..!
If ITs Not Sorry..1
|
|
|
|
|
style="background-color:Gray;" not working in IE
in below code to change iframe background color.
<iframe onblur="CopyDatarichtext1();" style="width: 99%;background-color:Gray;" id="richtext1_x5" border="0"
name="I1" width="100%" height="291" runat="server">
</iframe>
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Iframe loads the entire document inside it. So use iframe.document.body.style.background , instead of this.
Remember to do this after Iframe loads the document inside it.
|
|
|
|