|
what are the causes of these error...
|
|
|
|
|
That could be just about anything. What does the rest of the error message say?
---
b { font-weight: normal; }
|
|
|
|
|
With the extreme details of your description, it narrowed it down to the point I'm tossing between 2 causes.
|
|
|
|
|
Hi,
I dont know whether it is a right forum to discuss. But please give me some note on it.
How can we achieve OLE (Obect Linking and Embedding) Concept in .Net.
If any body having idea please let me know. Thanks in advance
Thanks and Regards
Venkat
|
|
|
|
|
here is my code at the button click event
System.Threading.Thread.Sleep(3600000)
response.redirect("Somepage.aspx")
|
|
|
|
|
So, you expect to not get an error after a few hours?
|
|
|
|
|
how to embed a flash (myFile.swf) into my ASP.net Web page
|
|
|
|
|
You'll probably want to further customize it:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="640" height="640" id="myFile" align="left">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="myFile.swf" />
<param name="loop" value="false" />
<param name="quality" value="best" />
<param name="bgcolor" value="#ffffff" />
<embed src="myFile.swf" quality="best" bgcolor="#ffffff" width="640" height="640" name="myFile" align="left" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
|
|
|
|
|
|
hi friends
i have problem in c#.
my code is.
if (e.Row.RowType == ListItemType.Item || e.Row.RowType == ListItemType.AlternatingItem)<br />
{<br />
}
proble is
CS0019: Operator '==' cannot be applied to operands of type 'System.Web.UI.WebControls.DataControlRowType' and 'System.Web.UI.WebControls.ListItemType'
Pathan
|
|
|
|
|
i think you can give e.item.itemtype instead of e.row.rowtype
|
|
|
|
|
Hi
i am working in aspnet 2.0 and i have a gridview not datagrid.
and i think ,in gridview,row is used instead of item.
so i cant use e.item.itemtype
i have just tried it i got this error.
'System.Web.UI.WebControls.GridViewRowEventArgs' does not contain a definition for 'Item'
pathan
|
|
|
|
|
You should use a different enumeration, not ListItemType.
Try like this:
"e.Row.RowType==DataControlRowType.DataRow"
if it doesn't work see what type e.Row.RowType is; in VS2005 hust hover the mouse over it.
|
|
|
|
|
Try the 'is' operator instead:
if( e.Row.RowType is System.Web.UI.WebControls.DataControlRowType )
{
Console.WriteLine( "yep" );
}
Thanks for firing me Darrell Eaker of Ringgold Telephone Company. I TRIPLED my salary and don't have to deal with douchebags like you.
|
|
|
|
|
hi friends
i have 3 textboxes.
1st is startime.
2nd is end time.
3rd is shift time.
format is xx:xx:xx
now i want to substract from end time to start time and get result in shifttime on focus evtns of shifttime.
how to do it?
plz give me right solution or any link.
thanks is advance
plz
|
|
|
|
|
Convert the text to a DateTime object, subtract one from the other which results in a TimeSpan object - This is your answer. All you then need to do is format it for display.
|
|
|
|
|
Hello,
I have an ASP.NET page that draws image URLs from a database in order to display a product image on a product template page. I'd like to be able to install the expected "click on image to view larger resolution" pop-up feature found in almost all online product catalogs.
All of the info I have found so far about using large image pop-up scripts refer to static images - that is, images that are unique to that webpage, rather than drawn from a database field. I'm not clear on how to do a pop-up of an image drawn from a field dynamically. Any advice would be appreciated!
I found and tried to insert the following code into my page, but it is bringing up an "BC30456: 'DataItem' is not a member of 'System.Web.UI.Control'." error:
<code><a href="#StayHere" onclick="window.open('bigimage.aspx?id=' +<%# (DataBinder.eval(Container.DataItem,"product_id"))%>, '', 'width=550 scrollbar=yes height=650 left=100 ')">
<asp:Image ID="Image1" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "Image1")%>' AlternateText='View Large Image' Runat="server" Width=204>
</asp:Image></td></code>
|
|
|
|
|
Your problem is in your binding, your code should work, you are missing a braket on DataBinder.Eval(Container.DataItem, "Image1")
it should read DataBinder.Eval(Container.DataItem, "Image1"))
|
|
|
|
|
Two questions:
1. I have a ASP.NET application with ASP.NET form controls in it.
I want to display some data from database with AJAX (no Atlas) when ASP.NET textbox loses focus, so I was wandering, how can I call AJAX function when textbox loses focus or I need to use a standard textbox?
Anyway, I know how to do it with standard textbox, but, I want to use a ASP.NET control.
2. I've got two ASP.NET buttons, one for submiting, other for previewing the message (like the one you have it on CodeProject to preview the written message).
I want the same functionalaty, but with ASP.NET button.
I know that I can do it simply with standard button control.
I've tried with RegisterStartupScript, but form first submits and then opens the popup window.
I don't wanna to submit the form (with that prview button).
Thanks.
|
|
|
|
|
|
Thanks...
Hmmm... There isn't anything to do with ASP.NET controls on that link...
-- modified at 8:39 Monday 11th December, 2006
|
|
|
|
|
Perhaps you're missing the fact that ASP.NET controls are all rendered as standard html controls - eg. an ASP:Label is rendered as a tag...
Since this is the case, everything else should fall into place, once you realise what objects are resulting from your asp.net objects...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Sorry about that.
I know that asp.net controls are rendered into standard controls.
Anyway, I wanted a solution for asp.net controls wich I have solved it with control_name.Attribute.Add.
Second problem is also solved with control_name.Attributes.Add and return false; after calling popupWindow.
|
|
|
|
|
result!
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
i wanted to know if i could let my aspx page execute a line of code everythime the page is closed ( for example if some click the exit button in the internet browser) i tried using the Page_Unload but it didn't work i am not sure if thats what i should be using or if i implemented correctly can someone help me please
kenny
|
|
|
|