|
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
|
|
|
|
|
what i would do is:
add a button after the listview,
and in the button_click event,
go through the list view, row for row,
and then use the : CheckBox box = (CheckBox)Row.FindControl(CheckBoxID)
if (box.checked) { } else { }
|
|
|
|
|
ya thats ok,.
i cant able to get the selected checkbox row cell value...,
This is my code:
string getchoice11 = null;
string chval = null;
int loop11 = 0;
CheckBox chkHeader = sender as CheckBox;
for (int i = 0; i < lvEmployee.Items.Count; i++)
{
CheckBox chk = lvEmployee.Items[i].FindControl("ICheck") as CheckBox;
if (chk.Checked == true)
{
getchoice11 += "'" + lvEmployee.Items[1].ToString().Trim() + "',";
}
}
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Why not use the following:
foreach( ListViewItem lvi in lvEmployee.Items)
{
CheckBox chk = (CheckBox)lvi.FindControl("ICheck");
if (chk.Checked)
{
getchoice11 += lvi[1].ToString().Trim() + ",";
}
}
|
|
|
|
|
getting error as this place:
getchoice11 += "'"+ lvi[2].ToString().Trim() + ",";
Cannot apply indexing with [] to an expression of type 'System.Web.UI.WebControls.ListViewItem'
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
is it not possible to get the full path using FileUpload control FileName property? I am asking this because when selected a file for uploading in C drive (C:\filename.ext) and when I click on send mail it shows an error saying that the file is not available in the path "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\...".
may please help out me.
Kovuru Sreedhar
|
|
|
|
|
Hi there.
Just want to know, what i have to do to my asp.net site, so that google will display my site and the main headings in my site in one section.
Eg. if you search for Asus, you will find ASUS international, and the headings (Products, United kingdom,Autralia, Repairs... etc.)
Thanks.
modified on Friday, August 29, 2008 6:34 AM
|
|
|
|
|
Icarus123 wrote: what i have to do to my asp site
What are you doing ASP.Net forum thn?
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I think this belongs in a google forum
|
|
|
|
|
Why?
Is it because you dont understand the question, or is it because there is no way to do this in asp.net?
|
|
|
|
|
Icarus123 wrote: no way to do this in asp.net
bingo!
What made you think that a method for dynamically outputting HTML (ASP.NET) could have any control whatsoever of how google decides to layout their search results.
|
|
|
|
|
well... do you mean how to include your website to google...
Try
www.google.com/addurl
you will get the option to store your site to google search engine.. so that it would be listed when search occurs...
The position of ur site link depends on search criteria and site popularity as per I know..
more you click on the site from search.. more will be the probability to get your site listed early...
Hope you will like my reply...
Abhishek Sur
|
|
|
|