|
creative77 wrote: i m beginner
Then this task is way too complex for you. You should abandon it, and spend some time learning basic exercises instead. Except you're being paid for this code, right ?
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.
|
|
|
|
|
Use this :
cmd.Parameters.AddWithValue("@ChooseThumbnail", rbtnthumb1.SelectedValue)
If you call
SelectedItem.Text
it will return the innerhtml under the listitem.
On the other hand if you call SelectedValue , it will return the value attribute assigned in asp:ListItem .
Hope you like it.
Another thing it is better to write like
<img src="images/Video97.gif" alt="Video" align="absmiddle" />
You havnt closed any img tag using /> on the right.
|
|
|
|
|
How to get live stream from webcam in our web page?
|
|
|
|
|
You can't do that with ASP.NET. You can do it with HTML. What have you tried ? Did you search the web for info at all ? Where is the webcam, on the server ? You can create a stream and set up windows media player to display 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.
|
|
|
|
|
AFAIK, live stream can only be captured using some windows client...
or any plugin which allows direct access to webcam devices.
I dont know if Flash / Adobe AIR / Silverlight plugins allows you to capture live streams from browser. If they cant, you need to create your own browser plugin.
|
|
|
|
|
This was my code to display live streaming from webcam.
hope thi will work for u.
u need to install the webcam and than place this file in ur initpub folder
to share the images on web and allow the user to view it.
u also need to install latest version of media player and windows media encoder.
<object id="MediaPlayer" width="176" height="144" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<param name="autoStart" value="True" />
<param name="filename" value="http://localhost:8080" />
<param name="ShowControls" value="False" />
<param name="ShowStatusBar" value="true" />
<embed type="application/x-mplayer2" src="http://localhost:8080" name="MediaPlayer" width="176" height="144" autostart="1" showcontrols="0" />
<object id="Player" width="300" height="250"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="URL" value="http://localhost:8080" />
<param name="uiMode" value="none" />
You can also view this live feed directly in Windows Media Player by clicking here.
and do not forget to rank the reply if u get thi working....
all the best
|
|
|
|
|
Ive an Obout calender that i change its datemin , datemax according to Dropdownlist selected item, i want the textbox (that the calender copy its value to ) to be clear(empty) when the DDL changes for the user to select a new date ,DDl is AutoPostback true ,ive tried this in the [ddlVacationTypes_SelectedIndexChanged]:
TextBox1.Text = "" 'Didnt work the textbox is holding the last value
i also tried this in the [Page_Load]:
Page.RegisterClientScriptBlock("MyScript", _
"<script language=javascript>" & _
" document.getElementByID('TextBox1').value = '' ; </script>")
'Didnt work the textbox is holding the last value
what am i doing wrong? + How to fix this?
thXs
|
|
|
|
|
You might be setting it up on page_load :S
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Have you stepped through the debugger ? If you're using a third party control, perhaps it is what sets the value ?
alaminfad wrote: " document.getElementByID('TextBox1').value = '' ; ")
That won't work. Perhaps if you used the right client side ID, it might.
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.
|
|
|
|
|
And also before you run a script check if the script block is already exists in the page.Do like this :
if(!this.ClientScript.IsClientScriptBlockRegistered("MyScript"))
{
Page.RegisterClientScriptBlock("MyScript","<script language=javascript>" & _
" document.getElementByID('" + TextBox1.ClientId +"').value = '' ; </script>")
}
Also make sure you are not doing this every time the page is posted back. Always check :
if(this.IsPostBack)
{
}
inside Page_Load
Finally, if you make TextBox as serverside, you can set the value inside ddlVacationTypes_SelectedIndexChanged by just calling
TextBox1.Text = ddlVacationTypes.SelectedValue
It must work.
|
|
|
|
|
Unfortunately it did'nt work ,i do want this every time the page is posted back , i mean when the user select from the DDL the textbox1 should be empty for him(user) to notice and select a date from the Obout calender image , i tried it both ways(if and if not is post back) it didnt work , i found this property Clear() on the Obout tutorials :
**************************************************
If you need to clear the current selected date simply call the method Clear.
Example:
<obout:Calendar runat="server" id="myCal">
</obout:Calendar>
<a onclick="myCal.Clear();">
Clear
</a>
***********************************************
by the way ive two page loads
one page_load in the user control where the DDl and obout Calender and of course its Textbox which we want to clear
Second page_load in the actual default page
so ive tried to use that property in both page_loads it didnt work ,i have follwed the debugger it going in the right way , here is the code
-----------------------------
Dim script As New StringBuilder
' Dim reader As StreamReader = File.OpenText(Server.MapPath(includeFilePath))
If Not Page.ClientScript.IsClientScriptBlockRegistered("MySript") Then
'script.Append(reader.ReadToEnd.Replace("{title}", Me.Title).Replace("{buttonLabel}", Me.ButtonLabel))
' delay alert 1 ms to handle postback
script.Append("<script language='javascript'>document.dfghsdfggetElementByID('Calendar1').Clear();</script>")
Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "MySript", script.ToString)
End If
--------------------------------------------------------------------
one more thing the server doesnt seem to validate what inside the script even if write
Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "MySript","Nothing")
what is a problem? + how to fix it?
|
|
|
|
|
<b></b>Hi!!
While opening a solution in VS.net 2003, i am getting an error:
"HTTP redirect request failed."
Please help.
modified on Wednesday, November 11, 2009 12:51 AM
|
|
|
|
|
Member 4959176 wrote: "HTTP redirect request failed."
have you googled this error..... post the code where you are getting this error...
|
|
|
|
|
yes I tried this in google but didnt get any correct solution.
The error is coming while opening the solution in VS.NET.
|
|
|
|
|
WEird. I googled it and found heaps[^] of help.
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.
|
|
|
|
|
but none of the solution is working for my application.
|
|
|
|
|
Well, if you want help, be clear. If you don't tell us what you tried, don't you think people here will just suggest the same things ?
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.
|
|
|
|
|
Member 4959176 wrote: < b >< /b >Hi!!
RPH - Reverse Polish HTML...
|
|
|
|
|
Hi All,
Can i Use Singleton design pattern in Web application like when i m calling Bll from the User inteface.
Thanks and regards,
Amit Patel
|
|
|
|
|
If you like. Knock yourself out.
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.
|
|
|
|
|
hi,
That is i m alrady doing .. thanks for ur advice
|
|
|
|
|
Yes you can!
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Hi,
We have .Net Framework 1.1 and 2.0 installed on the same server. We now have new requirements that will need AJAX. We can either install:
1. .Net Framework 3.5
OR
2. AJAX Toolkit (with existing .Net Framework 2.0)
We do not want to have any issues with existing applications due to this. Please suggest which will be a better approach and what will be the impact on existing applications using older versions?
Are there any specific guidelines for having multiple versions on same server?
Regards,
Anuj Chauhan
+91 9313499294
anuj.mca@gmail.com
|
|
|
|
|
You don't need to install anything, unless what you mean is, we don't know enough to use AJAX and will need to use a Microsoft framework instead. AJAX is nothing to do with ASP.NET, only the Microsoft wrapper library is.
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.
|
|
|
|
|
u can install different version of dotnet framework.
there is no issue about it.
Feel free to use it.
even i have 1.0,2.0 and 3.5 framework installed on my system and had never faced a problem.
|
|
|
|