|
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.
|
|
|
|
|
I think that no problem with central image.
|
|
|
|
|
Then let me know what exactly the problem is. If you use Tables, it tends to increase the percentage size of a cell if the content exceeds the limit, if not defined with Fixed width and height.
So if the layout is not exactly what you want, you might use Divs to create the same layout with appropriate css.
|
|
|
|
|
i have a local application which i would like to be notified whenever a certain (local)web method is called by another (remote) webservice. what's the best way to do this?
i know that i can subscribe to the [webmethod]Completed event but this only works when my local application is the one to call the web method asynchronously. also, i've tried doing this in combination with a flag in the webservice that is set whenever the webmethod is called but this requires a loop within the webmethod called asynchronously, which is thus an ugly solution.
what is the equivalent of a event in webservice?
thanks!
----------------------------------------------------------
Lorem ipsum dolor sit amet.
|
|
|
|
|
Have you thought about using MSMQ? Whenever your web method say MethodA() is called by any client, the first thing that MethodA() will do is push a message into a message queue.
Your local app say AppA will keep polling (or subscribe to the message queue) and will be notified whenever a message arrives in the queue, this letting you know that MethodA() has been invoked.
SG
Aham Brahmasmi!
|
|
|
|
|
Sounds like what you want is a publish-subscribe web service pattern: the publisher would notify all subscribing clients whenever any client executed your method. Keep in mind that this is a stateful pattern in both directions and may require a session. It also requires a keep-alive mechanism to keep the subscription callback connections alive.This article may be heplfull.[^]
|
|
|
|
|
Well i need a COMPOSE Message page which looks like WORD
in this link at end there is compose section...
http://www.trap17.com/index.php/Winrar-Winzip_t28088.html[^]
and i saved that page on my desktop and edited it to the extent i know and got whole working COMPOSE section Like this...
this image is what i edited [^]
But there is a problem which i cannot understand..when i click on button A which is Font Color a small new window is opened in actual site but not in my file which is saved at my desktop...
please help me in making those buttons like:Fontcolor, Simileys to work for me please..
please if possible give me a edited code.....
please reply
please help.....
|
|
|
|
|
Use any Html Editor. You might use Yahoo editors... But the best one is FCK editor I guess.
Try google on FCK editor and find it out.
|
|
|
|
|
Could you please tell me..
i have downloaded FCK editor and now what to do..
i am clicking on the webpages..but they are not displaying a compete
editor..not a working one....
please tell me what needed to be done
How could i place that editor at small portion of my website
compose message webpage...
please help....
please help....
|
|
|
|
|
|
Hi, its very simple:
<table style="min-width:1180px"...>
works on Firefox and IE8, but not on IE7
What can I do to make it work on Ie7?
|
|
|
|
|
What is use if min-Width ? You can directly fix the width of table.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
For IE7 / IE6 you need to use css expression()....
But mind that even a mouse move will evaluate the expression. Let see how I am doing this :
Place this as css
.t-min-wid {
width: expression((document.body.clientWidth < 1180)? "1180px" : "auto");
min-width: 1180px;
}
Now apply
<table class="t-min-wid">
Your min width will be set for all browsers.
|
|
|
|
|
Hello i have a web service that works fine until the page does call back then then it stops functioning could you please tell me why??
|
|
|
|
|
Your code is wrong.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Thanks. How would my code be wrong since it is retrieving correct data as i require. But once i call back it stops working.
|
|
|
|
|
What do you mean by call back?
|
|
|
|