|
Do a quick google search with "move image javascript"...
I won’t not use no double negatives.
|
|
|
|
|
The simplest way is to use
<marquee><img src="..." /></marquee>
But it would be better if you could write javascript to do this.
|
|
|
|
|
That only works in IE
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.
|
|
|
|
|
|
Really ? I remember in the late 80s, a friend used that tag to make his page look terrible, so that people using IE would move to netscape to read it.
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.
|
|
|
|
|
Christian Graus wrote: a friend used that tag to make his page look terrible
Yaa... It looks terrible when a page uses Framesets and Marquee.... ...
I never use this as well.
|
|
|
|
|
why asp.net is called as technology and not a language.
Mahaesh
|
|
|
|
|
Asp.NET is actually uses those languages like C#, VB.NET as backend code. Thus other than html and server side controls.. everything to manipulate them is entirely done by those languages.
There is no special language defined as such for ASP.NET. So it is actually a technique of writing Web applications using backend languages....
|
|
|
|
|
Smells like homework...
Please post a specific question, such as, "I'm getting this error..." and post your code. General questions should be restricted to Google.
|
|
|
|
|
Dear all,
I am using mutliview control in my aspx page.In one multiview I have a grid and the grid columns I am adding based on the data fetched from back end.That means columns for that grid is dynamic.And also grid contains controls like text boxes.Which populated dynamically.
The problem is when I navigate using multiview link.Dynamic grid data is disappearing.
PLease help me in above regard.I need to persist the grid status even when i will navigate in the multiview.
Thanks,
Srinivas Mateti
|
|
|
|
|
If you are creating the grid dynamically, you will need to recreate it everytime from Page_init event.
|
|
|
|
|
Thanks its working now....
|
|
|
|
|
Hello,
I want to know how to call javascript function for asp textbox....
like i have created
<asp:TextBox ID="search" runat="server"/>
i wanna create a javascript function which checks some condition and triggers onblur and onfocus for this textbox......since it is runat server how to do that...
THNX!
|
|
|
|
|
From codebehind use
search.Attributes.Add("onblur", "javascript:CheckMyConditions(this);");
where
CheckMyConditions is your javascript function which checks the values.
|
|
|
|
|
Thnx ....can i similarly add a function which is called on onload to this textbox....
im little confused..and also when im trying to add .js file as javascript source im getting typeLibBuilder stopped working error.....
like this is the function i wanna call
myjsfile.js
window.onload= initAll;
function initAll(){
document.getElementById(....id of text box).onblur= blur;
document.getElementById(....id of text box).onfocus= focus;
function blur(){.............}
function focus(){.............}
.............
|
|
|
|
|
lemme try with what u told....but can u tell why im getting error that end task......
|
|
|
|
|
You may want to consider using JQuery[^]. It provides a nice easy to use framework for what you are doing and more.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
greendragons wrote: javascript source im getting typeLibBuilder stopped
Hey, I think this might help you.
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=322157[^]
This seems to be a bug in Visual Studio 2008 for 64Bit machines. Lets try out the workarounds.. If you can fix it.
greendragons wrote: like this is the function i wanna call
myjsfile.js
Yes of course. Just define a function in your JS file, add that using script tag and call its function.
Say you write like this :
function selectValue(obj)
{
alert(obj.value);
}
If you write
txtbox.Attributes.Add("onblur", "javascript:selectValue(this);");
It will eventually produce an alert message with the value you provided in the textbox.
Other than that, if you want to call like this :
window.onload=initAll;
The function declaration of initAll should be before the actual call. Otherwise undefined handler will be assigned to the event.
Hope this helped you.
|
|
|
|
|
Hi guys,
I don't know which way to go with this i think ive exhausted all efforts. My usercontrol display information but when i click update a full page postback occurs and i lose everything, my control disappears!
I have an extremely large amount of data to display to the users, so using exsiting controls like a gridview is just silly. I've opted for a usercontrol that displays a set of prices by location and product. I have also given the user a couple of checkbox controls to be able to select groups of locations and groups of products.
Ive put my usercontrol in another with a datalist and a objectdatasource that gets a list of the locations and this accepts a productID, this is why im saying 'doubled up'. A usercontrol within a usercontrol! Not sure if this is the best solution? Because i cant directly access the control with a datalist?
On the main form, i have a repeater control with the usercontrol inside it. This repeats the locations selected (9 max) (created by the datalist) for every product (33 max) selected if you get me! Each control has an update button, but when its clicked the controls disappear.
Listed below is the second control:-
<asp:DataList ID="DataList1" runat="server" RepeatColumns="3" <br />
DataSourceID="ObjectDataSource1"><br />
<br />
<ItemTemplate><br />
<br />
<br />
<uc1:CompanyPriceWidget ID="CompanyPriceWidget" runat="server" companyName='<%#Eval("Company.CompanyName")%>' <br />
productCost='<%#Eval("StockItemProductCostSterling")%>' retailSalePrice='<%#Eval("StockItemRetailSalePriceSterling")%>'<br />
productCostOverHead= '<%#Eval("StockItemProductCostOverHead")%>' retailSalePriceOverHead='<%#Eval("StockItemRetailSalePriceOverHead")%>'<br />
ExchangeRate='<%#Eval("Company.CurrencyExchangeRate.CurrencyRate")%>' companyId='<%#Eval("Company.CompanyID")%>' OnUpdateValues="CompanyPriceWidget_UpdateValues" /><br />
<br />
<br />
</ItemTemplate><br />
<br />
</asp:DataList> <br />
<br />
<br />
<br />
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" <br />
SelectMethod="GetListOfStockValueGroupedByCompany" <br />
TypeName="StockValueSterlingDel" <br />
OldValuesParameterFormatString="original_{0}"><br />
<SelectParameters><br />
<asp:Parameter Name="stockItemPriceBandId" Type="Int32" /><br />
</SelectParameters><br />
</asp:ObjectDataSource><br />
<br />
On the Main Form
<br />
<asp:Repeater ID="Repeater1" runat="server"><br />
<br />
<ItemTemplate><br /><br />
<br />
<h1><%#Eval("Description")%></h1><br />
<br />
<uc2:StockValueWidget ID="StockValueWidget1" runat="server" StockItemPriceBandId='<%#Eval("StockItemPriceBandID")%>' /><br />
<br />
</ItemTemplate><br />
<br />
</asp:Repeater>
The form runs fine, but when i click to update the values i.e a postbasck occurs my control disappears.
Does anyone know a way of doing this dynamically? Or knows how the repeater control works with usercontrols!
Thanks
Andy
|
|
|
|
|
So as I can make out ....
There are 2 Different User Controls one in dataList and other in Repeater control
....... and the problem which you are facing is that on postback the UserControl inside the repeater disappears
|
|
|
|
|
In this case check whether on Page load(After Postback) the conrols are rendered .........
|
|
|
|
|
Thanks for your reply,
I have a render event in my control that fires to fill up the textboxes etc... You have given my an idea to why this is happening, it appears that the value thats in passed to the first control is now 0 at postback, i'll have to create some kind of collection to store these in session. However when i fix this value, the controls a rendered but i now lose all my data as everything goes to 0. So is appears that all the data in the controls is lost due to the postback.
this is going to be one almighty collection stored in session, the viewstate is going to be massive!
Thanks for your help
Andy
|
|
|
|
|
hi.
i work in Microsoft Visual Studio 2008 . i working in C# enviroment and creat a website project.
i want open picture with open dialog .please tell me who i can load picture with open dialog?
i am beginner .
please explain step to step.
whether i need a componet as toolbar?
please help me.
i need help body.
thank you.
|
|
|
|
|
I'm not quite clear, are you trying to upload the image from you website or include it in Visual Studio?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
i trying to upload the image in Visual Studio.
please help me.
thank you
|
|
|
|