|
i don't know if anyone has seen this but i have a simple html form that uploads a file (image really) using the standard html
|
|
|
|
|
Do you get any Errors? Try this
Tools --> Compatibility View --> am not sure there but there is an Option that allows you to view a website as if its in IE7, i dont have IE8 installed so but i know what you talking about.
Kind Regards
Vuyiswa
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
IE8 closed off the information-disclosure problem whereby JavaScript can read the .value attribute of a file upload control and determine the full local pathname, which might include information like the user’s name, profile directory, etc. Specifically, they changed from ALLOW to DENY for the Internet Zone “Include local directory path when uploading files” security setting. So, rather than sending the filename “C:\users\bill\desktop\temp\upload.txt”, instead it just send just “upload.txt”.This security improvement breaks, because the sites use JavaScript to attempt to parse the filename (e.g. to determine its extension). In many cases, the script will attempt to get the indexOf() the last REVERSE_SOLIDUS (\) character in the string, and since we now return only the leaf filename, those scripts will fail to parse the string and complain to the user. This will work when u test in local machine or intranet zone. It fails only in internet zone.
To fix this issues, use Path.GetFilename() or similar Path functions to parse path without relying on '\' character. you can also use FileUpload.Filename which return only filename.
|
|
|
|
|
Dear Friends.
I need a complete and free filemanager with login control and account file sizes limit for Linux server.
has anyone a file manager for me?
Mahdi Ghiasi
|
|
|
|
|
This is a programming forum. Not the right place for this question, really.
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.
|
|
|
|
|
In a plain HTML document, I have an image with align=left, the description for the image floating around the image as intended.
How can I start a new paragraph (for the next image) that always starts below that image? currently, if I make the display very wide, the next paragraph flows beside the image.
(I could limit display width, but I hope there's a better solution)
Personally, I love the idea that Raymond spends his nights posting bad regexs to mailing lists under the pseudonym of Jane Smith. He'd be like a super hero, only more nerdy and less useful. [Trevel] | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server
|
|
|
|
|
I think that if you wrap your image tags in <div> blocks, they should automatically start on a new line.
Haven't tested it.
|
|
|
|
|
Im almost sure im mis-understanding you, but why dont you just add <br /> after the paragraph to break the following elements onto the next line?
Strive to be humble enough to take advice, and confident enough to do something about it.
|
|
|
|
|
Wrap both image(s) and text in a:
<div style="clear:both">
Marc
http://wordpressacademy.biz
|
|
|
|
|
how do i sort my gridview????
|
|
|
|
|
Using AllowSorting="True" .
Please search in google, you will get many answer for that.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Write following code in your grid sorting event..
DataTable m_DataTable = (DataTable)(Give your gridview data source here)
if (m_DataTable != null)
{
DataView m_DataView = new DataView(m_DataTable);
m_DataView.Sort = e.SortExpression + " " + ("ASC" or "DESC");
gridview.DataSource = m_DataView;
gridview.DataBind();
}
|
|
|
|
|
i have the following
DataTable dtBasel = Session["TaskTable"] as DataTable;
if (dtBasel != null)
{
dtBasel.DefaultView.Sort = e.SortExpression + "" + sGetSortDirection(e.SortExpression);
gvtest.DataSource = Session["TaskTable"];
gvtest.DataBind();
}
for the grdview_sorting event and
private string sGetSortDirection(string sColumn)
{
string sSortDirection = "ASC";
string sSortExpression = ViewState["SortExpression"] as string;
if (sSortExpression != null)
{
if (sSortExpression == sColumn)
{
string sLastDirection = ViewState["SortExpression"] as string;
if ((sLastDirection != null) && (sLastDirection == "ASC"))
{
sSortDirection = "DESC";
}
}
}
ViewState["SortExpression"] = sSortDirection;
ViewState["SortExpression"] = sColumn;
Bindgvtest();
return sSortDirection;
}
but it only sort 1 column, and i need it to sort any column i press ...
????
|
|
|
|
|
use SortExpression in every column of grid view that you want to sort.this will solve the problem...
|
|
|
|
|
Consider the ASP.NET forum for ASP.NET questions in future...
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.
|
|
|
|
|
hello, i have made awebsite and every thing is good enough for me , i open it up in IE and it looks brilliant, BUT when i open it up in FirFox , it seems slower and doesn't load correctly (as shown below) please help me to fix this easy and quick..
FireFox example : [^]
IE example : http://ryancmodding.zymichost.com/images/ie.jpg[^]
|
|
|
|
|
Well I am not able to view your images.
For supporting your sites on multiple browser you need to use proper CSS, and maintain the table/div properly. other wise you may get different look in different browser.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
You should design sites to look the way you want in Firefox and then port them to IE. It tends to be easier than doing it the other way round. As a last resort, you can add hacks to make it look good in IE but not for firefox.
eg:
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
<!--[if IE]><link rel="stylesheet" type="text/css" media="screen" href="ie.css" />< ![endif]-->
|
|
|
|
|
Thanks for all your help guys
|
|
|
|
|
i need to move the new row to be at the bottom and here's the code..
SqlConnection con = new SqlConnection(connectionstring);
SqlDataAdapter adp = new SqlDataAdapter("SELECT * FROM BaselAnfouqa_Clients", con);
try
{
DataTable dtBasel = new DataTable();
adp.Fill(dtBasel);
DataRow drRow = dtBasel.NewRow();
dtBasel.Rows.InsertAt(drRow,0);
gvtest.EditIndex = 0;
gvtest.DataSource = dtBasel;
gvtest.DataBind();
((LinkButton)gvtest.Rows[1].Cells[0].Controls[0]).Text = ("Insert");
dtBasel.Clear();
}
catch { }
finally
{
con.Close();
}
|
|
|
|
|
by taking the rowcount of the data table.
and using the code
dtBasel.Rows.Insertat(Newrow,Rowcount+1);
This may help you..
|
|
|
|
|
forgive me but am new at this .....
i tried but an error happend (the name 'rowcount' doesnot exist in the current context)
what should i do?
|
|
|
|
|
you haven't declared 'rowcount'. Try this :
int rowcount = dtBasel.Rows.Count + 1;
dtBasel.Rows.Insertat(Newrow,rowcount);
|
|
|
|
|
Hi, ive got a image which I want to use sort of like a window in windows or linux(where theres borders around the sides with a title bar at the top and they all stretch around acording to the size of the content in the middle.
Heres an example of the box with borders so you can see what I mean. The big middle one is where the content should go.
But what would the correct HTML and CSS for it to all stretch right?
Please take a look at the image and at my current code below:
<a href="http://img269.imagevenue.com/img.php?image=15336_examplebox_122_143lo.jpg">http://img269.imagevenue.com/img.php?image=15336_examplebox_122_143lo.jpg</a>[<a href="http://img269.imagevenue.com/img.php?image=15336_examplebox_122_143lo.jpg" target="_blank" title="New Window">^</a>]
<code><div id="test" style="width:300px; height:400px; position:absolute; background-color:Red; top:100px; left:100px;">
<table style="width:100%; height:100%;" cellpadding="0" cellspacing="0">
<tr>
<td style="width:31px; height:29px;">
<img src="themes/topleft.png" alt="" />
</td>
<td>
<img style="width:100%; height:29px;" src="themes/topmiddle.jpg" alt="" />
</td>
<td style="width:31px; height:29px;">
<img src="themes/topright.png" alt="" />
</td>
</tr>
<tr>
<td style="width:31px; height:100%;">
<img style="width:31px; height:100%;" src="themes/middleleft.jpg" alt="" />
</td>
<td style="width:100%; height:100%;"> XXXXXXX
<img width="100%" height="100%" src="themes/middlemiddle.jpg" alt="" />
</td>
<td style="width:31px; height:100%;">
<img style="width:31px; height:100%;" src="themes/middleright.jpg" alt="" />
</td>
</tr>
<tr>
<td style="width:31px; height:29px;">
<img src="themes/bottomleft.png" alt="" />
</td>
<td>
<img style="width:100%; height:29px;" src="themes/bottommiddle.jpg" alt="" />
</td>
<td onmousedown="startResize('test5');" onmouseup="stopResize();" style=" background-image: url(themes/bottomright.png); cursor:se-resize;width:31px; height:29px;">
</td>
</tr>
</table><br />
</div></code>
It seems to work ok without the central image. But not with it. Also in IE the left and right sides dont size properly unless the CSS in the XXXXXX line is included.
Please help Thank you!
p.s. Ive tried a bunch of things which will explain any random code
Strive to be humble enough to take advice, and confident enough to do something about it.
|
|
|
|
|
roguemat wrote: It seems to work ok without the central image. But not with it.
I think the central image is taking a lots of spaces. Why dont you put it in fixed width and height so that you can change it whenever you are changing the width of td.
|
|
|
|