Writing To External Devices - Code?
Jan 23, 2010i have to select some audio or video files and write to some cd or dvd . is it posible to do this in asp.net
View 7 Repliesi have to select some audio or video files and write to some cd or dvd . is it posible to do this in asp.net
View 7 RepliesI just want to ask , how to claer logics , and how to think Logically While writting code ... As i am working from the past 4 months My Seniors always ask me to think logicaly just post this qusetion bcoz i thought these things are happening to me ?
View 5 RepliesI want to code a image link like this...
String p = ""
P = P + "<asp:Image ID='Imageprofile runat='server ImageUrl='~/images/"+ x[5].ToString() +"'/><br/><br/>";
Literal2.Text = P;
But this doenst work,
I am using Visual Web Developer Express with VB.net and have a website with 2 pages in them called "Tables.aspx" and "Variables.aspx". On the Tables page the user is required to enter a variable name in to a texbox, which I want then to take the user to the Variables page and have the gridview display the sql result. In behind the search button on the "Tables.aspx" page I have the following code.
Code:
' Search button code
Dim search As Char
Search = CChar(txtSearch.Text)
If Search = "" Then
MsgBox("You cannot leave this field blank.")
[code]....
On the "Variables.aspx" page I had decided to use data readers which brought up only one of the columns however I realised using data readers would mean I would have to individually position each textbox which I am not sure how to do.
Basically what I would like to know is how I do get the result of sql= "SELECT dbo.NILS_tables.Table_ID, dbo.NILS_variables.Variable_Name, dbo.NILS_ variables.Variable_Description FROM dbo.NILS_variables JOIN dbo.NILS_tables ON dbo.NILS_tables.Table_ID = dbo.NILS_variables.Table_ID WHERE dbo.NILS_tables.Table_Name LIKE '%' OR dbo.NILS_tables.Table_Description LIKE '%' " on to a gridview on the "Variables.aspx" page? NB the code for the search button is stored in the code behind file on the "Tables.aspx" page.
Is there a way (except for using JS on the html view) to tell asp.net to run a certain code on client side (instead of server side)?
View 4 Replieshow does the code within the <% .... %> brackets write to the output stream of a view?
Where view code that looked like the following would write the HTML for a <table> to the output html of the view.
<%
ToViewOutput( "<table>" ) ;
ToViewOutput( "<tr>" ) ;
ToViewOutput("<td>row1. cell 1.</td>") ;
ToViewOutput("<td>row1. cell 2.</td>") ;
oViewOutput("</tr>") ;
ToViewOutput("</table>") ;
%>
I want to execute a piece of code. Currently it is written in Page_load().
Because of this my application becomes slow.
Is there any other option where can i write the code?
i am doing a webapplication where any asp.net control i am using is not available while i am writing code in code behind. e.g- i am using a DataList but i did not find DataList1 in the pop up to show my data in .cs page. i dont know what is the problem .
i am using Visual Studio 2008 pro SP1.
i have a unordered list(HTML) whose style i am changing conditionally in the code behind
<ul class="steps">
<li class="" id="step1" runat="server">Step 1</li>
<li class="step2" id="step2" runat="server">Step 2</li>
<li class="step3" id="step3" runat="server">Step 3</li>
<li class="step4" id="step4" runat="server">Step 4</li>
</ul>
in the code behind iam doing something
step1.Attributes["class"] = "step1";
step2.Attributes["class"] = "step2New";
something like this
If iam using internal styles then its working fine but when iam taking the same style sheet to external file then it is not working
Is it because i am assigning attributes using id i don't know
the css file is some what like this
[Code]....
i am trying to work up with captcha in my sign up page.Having a google search,i found a .dll which i implemented in my project and it worked fine.Now i want to know that is it a good idea to download the dll files and use it in the project instead of writing the whole code from the scratch?What are the disadvantages of using a dll instead of writing up the entire code form the scratch?
View 6 RepliesI want Parameters collectionPager paging and without writing code
View 1 RepliesI'm trying to test the login control without writing any code. According to Murachs book, you can drag and drop the login control onto a Login.aspx form. Use the ASP Configuration Security tool to create user, roles, and access rules for the website. And you should then be prompted for authentication. I created two folders in my website, admin and users. The admin folder has a admin.aspx form and the users folder has a users.aspx form. I also edited the access rules to only allow admin to access the admin.aspx and only allow user to access the users.aspx form.
View 4 RepliesI have a code like
var mySession = "<%= Session["MyID"] %>";
alert ( mySession );
and when I place this code in my aspx page inside a script tag, it works fine. But it doesn't work in an external js file. I am not able to figure out the problem.
Is there anything wrong in my code, or is it like this by default?
We have encountered this difference in file creation while using a HttpHandler Versus a Code Behind Aspx page. We are reading a saved jpg/png picture as byte array from a 'Image' field in sql server database and create a physical file in the server. Both the Aspx Page and Httphandler use the same code pasted below.
//Begin
int docID = Convert.ToInt32(Request.QueryString["DocID"]);
var docRow = documentDB.GetDocument(docID);
// Retrieve the physical directory path for the Uploads subdirectory
string destDir = Server.MapPath("../../Uploads").ToString() + "\";
string strFileName = destDir + DateTime.Now.ToFileTime() + "_" + docRow.DocName.ToString();
FileStream fs = new FileStream(strFileName, FileMode.CreateNew, FileAccess.Write);
fs.Write(docRow.DocData, 0, docRow.DocData.Length);
fs.Flush();
fs.Close();
// End
After the file is created, it is viewable as a jpg/png Image only in Aspx Code Behind. While in case of HttpHandler it is not a valid Image.
My external javascript file named "messages.js" located in the "/scripts" directory:
[Code]....
How do I call this function from my codebehind? I need to register it through the client script manager right? Can someone provide me the call as I'm not sure how to add the function through an external file using type="text/javascript"
I'm working on a C# web app and I've to handle some javascript code.
I can do it both using javascript injection from my .cs file, which I'm doing now or choose to include my code into an external js file.
I would like to know when you would prefer to choose one way over the other.
According to me, it can be more clear to put code in external .js file and it can ease debugging.
Code injection from code-behind would however keep together all the necessary code for my component.
I would like to use methods in the RDLC designer from external sources. How can I reference an external method say for a complex calculation in a field? The internal vb code is not robust enough.
View 1 Repliesi got this message when writing code-behind page: Compiler Error Message: BC30506: Handles clause requires a WithEvents variable defined in the containing type or one of its base types. Source Error:
[Code]....
Line 2: Partial Class _DefaultLine 3: Inherits System.Web.UI.PageLine 4: Protected Sub NewUserWizard_CreatedUser(ByVal sender As Object, ByVal e As System.EventArgs) Handles NewUserWizard.CreatedUserLine 5: ' Get the UserId of the just-added userLine 6: Dim newUser As MembershipUser = Membership.GetUser(NewUserWizard.UserName) also this from the error list: Error 2 'NewUserWizard' is not declared. It may be inaccessible due to its protection level. C:inetpubwwwrootWebSiteDefault.aspx.vb 6 60 [URL] the create wizard resides in the loginview
I'm creating a optimized web page for mobile devices with C#. Is there a way to offer a page for larger screens and one for smaller screens on android devices? With Apple i can differentiate between iPad and iPhone, but how can I do this with the galaxy tab or a regular android phone?I don't want to use any javascript in this case.
View 3 RepliesI am devloping ASPX pages and I want to prevent caching of pages. So i have used the following code:
<% @OutputCache Location = "None" Duration="1" VaryByParam="none" %>
But this code is working only for the desktop browsers. This is not working in mobile browsers.
I am wanting to design a web application (ASP.NET with vs 2010 and the 4 framework) that should work on mobile devices web browsers as well. Do I have to write 2 seperate web UI's or can I write 1, that is styled differently for desktop browsing vs mobile browsing? I am new to trying to develope for a mobile device, and a push in the right direction would be a big help. I have googled but must not be using the right terms as what I get is not very good.
View 4 RepliesI am planning to implement a runtime or Environment . which allow any Mobile application to run on top of IT.
View 3 RepliesWe have a need to stream live audio from remote devices and be able to listen to it in a web page. I can stream stored audio files, but the live stream has me a bit confused, since we will be adding the data at runtime. Can someone point me in the right direction to show me how to do this?
View 1 RepliesI currently use VS2008 and VS2010 for web applications and would like to start looking at creating apps for both OS'sMajority of the apps will be for myself and wifes phone, so want to play around with what can be done.
View 3 RepliesI would like to truncate my existing website for use with mobile devices specifically the iphone. how might I accomplish this? Are there MS tools or methodolgies for truncating my site without building a new website from scratch?
View 2 Replies