|
The drop down control does not support this, but you could do it by faking your own control using a fixed size scrolling div.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
set height of the dropwown
|
|
|
|
|
Hello all..
i am working on asp.net 2.0 c# i need to do video capture functionality ..like when i will click on button video from my live web cam will be captured so how to do it plz send me any help...
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
You 'need to' ? Does that mean you've accepted work and have no idea how to do it ?
I suggest you do some reading on what ASP.NET is, and does. Then you'll understand why this is not possible using ASP.NET. It's probably possible using some sort of ActiveX control, which ASP.NET can host, but no-one is going to write that for you.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Use Flash Media Server (FMS) and Flash Media Encoder (FME)
see the link below
http://steveorr.net/articles/StreamingMedia.aspx
|
|
|
|
|
Hi I am having a requirement to edit the word document from the c# code in asp.net application.
I got a sample from code project its working fine from the file system (Like http://localhost:1234/Applcaitonname/) but when I run the application from the virtual directory (like http://localhost/Applicationname/) it is giving errors the work document not allows to edit the document. I am using Xp as the operating system with is VS 2.0 ASP.Net with c#.
I tried by setting dcom permission and added the asp net user and Iuser accounts to the application.
Can any body help me to solve the issue? Thanks in advance.
Best Regards
PrakashACCS
|
|
|
|
|
you can full control that folder whihc store the ms word file
|
|
|
|
|
Hi thank you so much for replying
I tried by giving all the permission to the folder.but it didn't work.
Best Regards.
PrakashACCS
|
|
|
|
|
I know that app_offline.htm is a nice feature to stop asp.net web application. But lately, a number of my applications IN DEVELOPMENT suddenly have this file which I did not add them. When I tried to run an app in Visual studio 2008, I got the message telling me to delete this file. Does anyone know how this file is added? I could accidentally click something not knowing what.
TOMZ_KV
|
|
|
|
|
AFAIK, this file will not get added automatically.
|
|
|
|
|
It suddenly appeared in a few applications which I knew I did not add manually. I do not even know where the original file is saved. I think it comes from either Framework or Visual studio installation.
TOMZ_KV
|
|
|
|
|
It is generated when you are Publishing a website, it is usually deleted after the Publish has completed.
|
|
|
|
|
Why doesn't this form retain the values when I key them in the textbox? I've tried with Mozilla and IE.
CurrencyConvertor.aspx
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CurrencyConvertor.aspx.cs" Inherits="CurrencyConvertor" %>]]>
http://www.w3.org/TR/xhml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> Currency Converter </title>
</head>
<body>
<form runat="server" method="post">
<div>
Convert:
<input type="text" id="USD" />
US Dollars to Euros.
<br /> <br />
<input type="submit" id="Convert" value="OK" />
</div>
</form>
</body>
</html><pre>
<div class="ForumSig">Jon</div>
|
|
|
|
|
This is the ASP.NET forum. You've posted HTML. HTML is client side only, there is no mechanism there for saving state. I suggest you buy a book on ASP.NET and work through it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks, that's just what I was doing.
Jon
|
|
|
|
|
You aren't using any server controls. ASP.NET use a mechanism called ViewState to maintain the values of a page. Try converting the input types to runat=server or change it to ASP.NET server control.
|
|
|
|
|
The runat="server" are already in my code. It's noted that my previous post doesn't appear here, did I do something wrong?
Jon
|
|
|
|
|
Use aspx controls and enable viewstate...
|
|
|
|
|
I've tried rebuilding from scratch, and scouted the web unsuccessfully trying to find a solution. In my code I had updated the attributes so that they are converted to server controls, hence, processed by the server.
In the previous version, I was viewing the page successfully; within the source tag, I'm seeing the _VIEWSTATE, hence, assuming that view state is already enabled. Am I doing something wrong?
I've noted that:
1. the control "US" is not recognized by Intellisense (see .cs file below)
2. when I load the webpage an error is displayed; this was not displayed before
Compiler Error Message: CS0115: 'ASP.currencyconvertor_aspx.GetTypeHashCode()': no suitable method found to override
Detailed error below.
CurrencyConvertor.aspx
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CurrencyConvertor.aspx.cs" Inherits="CurrencyConvertor" %>]]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> Currency Converter </title>
</head>
<body>
<form runat="server">
<div>
Convert:
<input type="text" id="US" runat="server" />
US Dollars to Euros.
<br /> <br />
<input type="submit" value="OK" id="Convert" runat="server">
onserverclick="Convert_ServerClick" />
</input></div>
</form>
</body>
</html>
CurrencyConvertor.aspx.cs
public partial class html_CurrencyConvertor : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//decimal USAmount = Decimal.Parse(US....
//here I'm expecting the id US to be displayed within Intellisense, becauase
//I've declared it within the .aspx file.
}
}
// The following HTML source code from previous version
http://www.w3.org/TR/xhml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> Currency Converter </title>
</head>
<body>
<form name="ctl00" method="post" action="CurrencyConvertor.aspx" id="ctl00">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTIwNzEwODIyNjRkZOU+qoUq5TPc2l1GqV4vK0WqaqKv" />
</div>
<div>
Convert:
<input type="text" id="USD" />
US Dollars to Euros.
<br /> <br />
<input type="submit" id="Convert" value="OK" onserverclick="Convert_ServerClick" />
<div id="result" style="font-weight: bold"></div>
</div>
</form>
</body>
</html>
Error:
Server Error in '/CurrencyConvertor' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0115: 'ASP.currencyconvertor_aspx.GetTypeHashCode()': no suitable method found to override
Source Error:
Line 329:
Line 330: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 331: public override int GetTypeHashCode() {
Line 332: return -866219369;
Line 333: }
Compilation errors:
Error 1 'ASP.currencyconvertor_aspx.GetTypeHashCode()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\currencyconvertor\3d4aaba4\f5fe1813\App_Web_gcor8gmu.1.cs 331
Error 2 'ASP.currencyconvertor_aspx.ProcessRequest(System.Web.HttpContext)': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\currencyconvertor\3d4aaba4\f5fe1813\App_Web_gcor8gmu.1.cs 336
Error 3 'ASP.currencyconvertor_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable' c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\currencyconvertor\3d4aaba4\f5fe1813\App_Web_gcor8gmu.1.cs 136
Attempted resolution:
Tried deleting files from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\currencyconvertor\.
This required a restart because the files were locked.
Reference:
Beginning ASP.NET in C# 2008 - From Novice to Professional (2nd Edition)
Jon
modified on Friday, November 21, 2008 8:39 AM
|
|
|
|
|
try runat="server" for ur form controls
|
|
|
|
|
Hello, I'm new to asp.net 2.0.. I know VB but not C#.. I want a user to be able to type their last name in a text box and have their info show in a datagrid, then when they select thier record I want their Customer ID to update the Service Quote table.. Basically the user is just finding their info and starting a new service quote( which is another SQL table).. How do you use a datagrid to update a SQL table in ASP.net 2.0?
Thanks!
|
|
|
|
|
If you allow the grid to support adding a row, you handle the event when the row is added, and then you write SQL to insert it into your DB.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I don't understand.. I'm sorry I'm new at all this.. I know how to update Sql using a datagrid but I want the selected customer ID to carry over to another page and then get inserted into a new datagrid that once completed will then get updated.. I guess i did not phrase my question correct..I understand the update table part just not how to reference the PK in the first datagrid and then carry the PK to another page and another datagrid...Does this make sense? Should I be doing this an entirely different way?
Thanks!
Cheryl
|
|
|
|
|
Oh, OK. Well, that's a new question....
The way to pass an id to a new page, is to put it on the querystring, so your link would be someting like mynewpage.aspx?id=27. They use Request.QueryString["id"] ( assuming this is C#, otherwise use () instead of [], b/c VB sucks ), to access the value ( it will be a string, use int.tryparse to get the number out ).
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Sorry, I still don't understand..Maybe I should just run a SQL insert query when a customer selects their name from the grid.. The problem is, I dont know how to reference the value in the grid... The value I want to reference is the key value( CustID)I want to insert this value into another table called servicequote..I thought the best way to do that would be to carry the CustID from the customer datagrid(based off the customer table) to another datagrid( based on the servicequote table) I guess that is not a good way??? So maybe I should just run an insert sql query when someone selects their name from the customer datagrid that inserts into the serice quotetable.. HOw do I do this? I need very very basic instructions like....in the HTML code type this and in the VB code type this...
Please help..
Thanks,
Cheryl
|
|
|
|