|
hey your link is not working.... .
Abhishek Sur
|
|
|
|
|
you can use imagemap control, in short, in imagemap you can define an area with navigationurl,tooltip etc just google about it
|
|
|
|
|
Hi gettting error in thos code:
foreach (ListViewItem lvi in lvEmployee.Items)
{
CheckBox chk = (CheckBox)lvi.FindControl("ICheck");
if (chk.Checked==true)
{
getchoice11 += "'" + lvi[2].ToString().Trim() + ",";
}
}
"Cannot apply indexing with [] to an expression of type 'System.Web.UI.WebControls.ListViewItem'"
whats wrong in that code?
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
hi ,
how can i block copy/paste option (or) right click for a text box in firefox both in keyboard and right click option in mouse...
its working in IE...
Ashok
|
|
|
|
|
onmousedown="return false;"
onkeydown="return false;"
|
|
|
|
|
hi,
ur code is working in IE but not in firefox... I ve tried this already...
Any idea
Ashok
|
|
|
|
|
use this javascript:
function noCopyKey(e) {
var forbiddenKeys = new Array('c','x');
var keyCode = (e.keyCode) ? e.keyCode : e.which;
var isCtrl;
if(window.event)
isCtrl = e.ctrlKey
else
isCtrl = (window.Event) ? ((e.modifiers & Event.CTRL_MASK) == Event.CTRL_MASK) : false;
if(isCtrl) {
for(i = 0; i < forbiddenKeys.length; i++) {
if(forbiddenKeys[i] == String.fromCharCode(keyCode).toLowerCase()) {
alert('This action has been restricted, for more information contact MJM');
return false;
}
}
}
return true;
}
|
|
|
|
|
hi,
thanks 4 ur reply...
this code is working to block on keyboard to copy/paste... But i cannot block right click and paste from mouse button...
Ashok
|
|
|
|
|
try this:
if ( document.layers )
{
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = function(e)
{
if ( e.target == document )
return false;
}
}
else
{
document.onmousedown = function()
{
return false;
}
}
|
|
|
|
|
Hi
I am showing swf file as under..
<OBJECT ID="Flashobj" WIDTH="300" HEIGHT="250" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
STANDBY="Loading Windows Media Player components..." type="application/x-shockwave-flash">
<param name="movie" value="add1.swf" />
<param name="allowscriptaccess" value="sameDomain"/>
<param name="autostart" value="true" />
<param name="SWLIVECONNECT " value="true" />
<EMBED type="application/x-shockwave-flash" SRC="add1.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" NAME="Flashobj" WIDTH="300" HEIGHT="250"> </EMBED> </OBJECT>
Now i want to enable a button wen this flash file finishes playing. How can i do this..
|
|
|
|
|
Nopes...not possible
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
make a check box when the movie end the user check the box and enable the button
The Web Developer. Beirout-Lebanon
|
|
|
|
|
Flash file has frame per sec so by calculating the frame u can check wether it is running or completed
Hope it will give u some guidance
Unless u don't give ur hundred percent whatever u r doing till there is no result of ur work...
|
|
|
|
|
You can call JavaScript functions from within a Flash movie with Flash 8, so potentially you could enable a button in your web page by writing a small JavaScript function and then calling this function from within your flash movie. Take a look at this article for more information.
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
Is there any way to update global resource value
I tried this, is it right??
Resources.Resource.FlagImage.Replace("0", "1");
this will replace the value or not??
is ther any other way to update???
Thnks in advance....
|
|
|
|
|
Hi...
I have created one class file XYX.cs under app_code directory...
and One usercontrol ABC.ascx file under usercontrol directory....
Now i want to get object of ABC.ascx file in XYX.cs file....
here both file namespace are similar...
But my problem is i cannot get object of that .ascx file in .cs file..
If i put that usercontrol file in .cs file than i am getting object...
but i dont want to put that user control in app_code....directory...
Is there any Solution for this....
?
?
?
Please help me...
Thankyou
Hemant Patel
|
|
|
|
|
how to resolve compatibilty problem with IE7,this code also makes duplicate copies of photo in my image folder,how to resolve dat problem too,i am uploading the photo by using this code-:
static byte[] bydoctemp;
static Int32 intDocLength_img = 0;
Stream objStream_img;
protected void bttn_upload_photo_Click(object sender, EventArgs e)
{
intDocLength_img = FileUpload1.PostedFile.ContentLength;
bydoctemp = new byte[intDocLength_img];
objStream_img = FileUpload1.PostedFile.InputStream;
objStream_img.Read(bydoctemp, 0, intDocLength_img);
previewField.Attributes.Add("src", FileUpload1.PostedFile.FileName);
private static string RandomString()
{
int size = 10;
Random r = new Random();
string legalChars = "abcdefghijklmnopqrstuvwxzyABCDEFGHIJKLMNOPQRSTUVWXZY123456789";
StringBuilder sb = new StringBuilder();
for (int i = 0; i < size; i++)
sb.Append(legalChars.Substring(r.Next(0, legalChars.Length - 1), 1));
return sb.ToString();
}
private long m_lImageFileLength = 0;
private byte[] m_barrImg;
public byte[] load_binary(string filepath)
{
if (filepath.Trim() != "")
{
FileInfo fiImage = new FileInfo(filepath);
this.m_lImageFileLength = fiImage.Length;
FileStream fs = new FileStream(filepath, FileMode.Open, FileAccess.Read, FileShare.Read);
m_barrImg = new byte[Convert.ToInt32(this.m_lImageFileLength)];
int iBytesRead = fs.Read(m_barrImg, 0, Convert.ToInt32(this.m_lImageFileLength));
fs.Close();
}
else
{
m_barrImg = new byte[0];
}
return m_barrImg;
}
if (intDocLength_img > 1)
{
cmd.Parameters[68].Value = bydoctemp;
}
else
{
HF1.Value = "";
cmd.Parameters[68].Value = load_binary(HF1.Value);
previewField.Attributes.Add("src", "..\\layout_images\\Untitled-1.gif");
}
can anyone have the code for uploading photo in asp.net dat is fully compatible with IE6 as well as IE7,thanks in advance
Maniiiiiiiiiiiiiii
|
|
|
|
|
rename the pic manually so when it make the pic it override it
The Web Developer. Beirout-Lebanon
|
|
|
|
|
i dont understand,can u plz explain it as how should i do it...
Maniiiiiiiiiiiiiii
|
|
|
|
|
This URL used only for Get request
DemoWebService.asmx/Generic?param1=string¶m2=string
i need to make the request as
DemoWebService.asmx?consoleid=12¶m1=string¶m2=string
Where method name has been removed
In Global.asax
protected void Application_BeginRequest(object sender, EventArgs e) <br />
{<br />
System.Web.HttpApplication app = (System.Web.HttpApplication)sender; <br />
<br />
if (Request.QueryString.Count > 0)<br />
{<br />
if (Request.QueryString["consoleid"] != null)<br />
{<br />
app.Context.RewritePath(@"~/DemoWebService.asmx/Generic?param1=11¶m2=22", false); <br />
}<br />
} <br />
<br />
}
But its showing a 404 error
<br />
The resource cannot be found. <br />
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. <br />
<br />
Requested URL: /DolDemo/DemoWebService.asmx/Generic
Query string is missing in the requested URL.
|
|
|
|
|
i am using datetime control to store datetime in sql,the format which i am using is creating problem in other systems but that was running perfectly in my system,what do i do?
in aspx file datetime control is this-:
<br />
<script type="text/javascript" language="javascript" src="../Accessories/CalendarControl.js"></script><br />
<br />
<link href="../Accessories/CalendarControl.css" rel="stylesheet" type="text/css" /><br />
<br />
<br />
<asp:textbox id="txt_dt" text="<%# Eval("Revised_Date") %>" onfocus="showCalendarControl(this);" runat="server" xmlns:asp="#unknown"></asp:textbox><br />
<br />
<br />
in cs file date is send to sql like this-:
using System.Globalization;
IFormatProvider culture = new CultureInfo("fr-FR", true);
DateTime dt = Convert.ToDateTime((DateTime.Parse((txt_dt.Text).ToString(), culture, DateTimeStyles.NoCurrentDateDefault)).ToString("MM/dd/yyyy"));
Maniiiiiiiiiiiiiii
|
|
|
|
|
Use the Invariant culture to store the date...
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
i have found this in some replies but dat was not working.
I always use ISO format when typing SQL in Query Analyzer, but for accessing the application through ADO.NET (ASP.NET is for web applications and has nothing to do with the database). I don't worry about the date format as I use parameters. For example
SqlCommand cmd = new SqlCommand();
cmd.Connection = myConnection;
cmd.CommandText = "SELECT * FROM MyTable "+
"WHERE SomeDate BETWEEN @startDate AND @endDate";
cmd.Parameters.Add("@startDate", theStartDateTimeObject);
cmd.Parameters.Add("@endDate", theEndDateTimeObject);
SqlDataReader reader = cmd.ExecuteDataReader();
theStartDateTimeObject and theEndDateTimeObject are DateTime objects. If you use these then you don't need to know what format to write the dates in to the SQL String - and nor should you need to convert it.
The database should be used for storing information. You shouldn't really be doing any localisation functions with the database as that is all presentation layer stuff.
Maniiiiiiiiiiiiiii
|
|
|
|
|
Hi i am using list view control in my form,
In that itemtemplate i used checkbox...,
Now that check box check change event i have to capture...,
I searched in google but i didnt get ,help me regarding that
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|