476 Posted Topics
Re: Most likely you have to create an ActiveX control that visitors have to install. Because a webcam is a clientside device you cannot control it from a serverside-codebehind. | |
Re: Here's a method to upload files using FTP in ASP.NET. [URL="http://www.devasp.net/net/articles/display/280.html"]http://www.devasp.net/net/articles/display/280.html[/URL] | |
Re: You can use the RequiredFieldValidator-control. Put one next to each textbox or dropdownlist and bind each validator-control to the corresponding input-control. | |
Re: What is the error you recieve? Perhaps you should implement some error checking like a try...catch. Also, the use of CDate(...) always gives me a chill. You should [U]always[/U] make sure that the string passed into that method is a valid date. Try this instead. [CODE] Dim dateString As String … | |
Re: In order to create a PDF from ASP.NET (C#,VB...) you need a third-party tool. I recommend using ITextSharp, because it's very easy to use and it's free. [URL]http://sourceforge.net/projects/itextsharp/[/URL] ITextSharp has methods that basically does exactly what you are looking for. Here's an example of how to do it: [URL]http://www.atashbahar.com/post/Converting-Multipage-TIFF-image-to-PDF.aspx[/URL] Note … | |
Re: [QUOTE=iamchamith;1076614]Hi I want pass multiple values javascript to asp.net(C#) server side... how i do it using array ?? don't using hidden fields... thanks[/QUOTE] I'm not exactly sure what you are trying to do. But I would compile the information into an XML or JSON-string and pass that back to a … | |
Hi, it's me agin. I would like to know if it's possible to customize a tabcontrol, so that I can have the tabpages shown horizontally when alignment is set to left or right. If so, could someone give an example, or a link, of how to accomplish this? I've been … | |
Re: First off, you don't need to use the statement [ICODE]With Me[/ICODE] because it's redundant. Second, in an If statement there's only need for (in my oppinion) one Else. As the If statement is for checking different values you should use: [ICODE]IF {something} Else If {something else} Else {totally different} End … | |
Re: The code looks valid and it's gonna do what it's supposed to. You don't need a Do While. This snippet extracts the first and last character of the string which is then used in the IF statement for comparison. [ICODE]str1stCharacter = Microsoft.VisualBasic.Left(strInput, 1)[/ICODE] [ICODE]strlstCharacter = Microsoft.VisualBasic.Left(strInput, 4)[/ICODE] What, exactly, is … | |
Re: I would try to limit the amount of data for each query. Using the reader in order to populate some kind of repository do take a long time. The way the reader works is that it only reads one line of data at a time. Ie: [CODE]While Rs.Read If Not … | |
Hi! It's been a while since i last posted, and now I'm in need of some expert assistance. I've found this Control written in C# with .NET 1.0 on vbAccelerator and wanted to use it with my current project. I decided to convert the entire code to VB.NET but one … | |
Hi, all! I'm trying to send a HttpWebRequest to an url that, other than %20, does not take escaped characters. But for some reason, when I do: [ICODE]_HttpWebRequest = DirectCast(System.Net.HttpWebRequest.Create(New Uri("http://web_address")), System.Net.HttpWebRequest)[/ICODE] I end up with an escaped uri string. For example, a string containing the swedish letters Ã¥, ä … | |
Hi, all! Here's another one that's starting to boggle my mind. I have a form that, with a button, adds a bunch of text-fields in a tablerow. For every press of the button another row is added. This works in both IE and FF. No probs. When pressing another button, … | |
Hi. As suggested by ~s.o.s~ in another thread, I'm posting this question here in the high hopes that someone might be able to help me. I have a JSON string coming in from a javascript that I need to convert to a predefined class object. I'd even settle for a … | |
Re: If the database was to be openly accessible *shudder*, albeit with a username and password. Then you can most likely access the database with javascript and odbc (jdbc?). If that is the case then no server-side scripting would be needed. | |
Hi! I don't know if this has been answered already and a search gave to many results. I have a website that is built with ASP.NET and that uses some javascript. When I run a debug on localhost to check for errors the ASP.NET code works just fine, but every … | |
Hi! Sorry about my bad grammer and/or spelling. English is not my native language. I don't know if this already have been asked and answered, however... I'm currently developing a program in which it will be possible to select table fields from a database and set various criteria using dropdown-lists. … | |
Re: Why not just extract the HTML part from the XML file, display it in a hidden WebBrowser control and then print it from there? That would be the same as printing a normal webpage from, say Internet Explorer using File->Print. Right? | |
Re: For buttons, take a look at the PerformClick() event. Otherwise, have a look at the function Focus(). | |
Re: Address book ID3 tag editor Inventory Chat FTP client Image viewer Calendar Cook book | |
Hi. I'm having some difficulty here. Perhaps someone here has some ideas. I would like to implement some kind of P2P functionality in an existing application that is designed to work within a local network. The concept of this functionality is that the application stores the username of the current … | |
Hi! I've come across an interesting, and annoying, bug(?) in Visual Studio 2005. I don't know if anyone else has been experiencing this bug, and I don't know if this is something that exists in all versions, but it does in mine. I'm using version 8.0.50727.42. I have set the … | |
Hi, guys! Got a problem here. :) I have a form that when it loads spawns a thread which in turn fills a publicly declared dataset with a table by a dataadapter and then binds a field from the table to a combobox. [code=vb]combobox1.DisplayMember = "fieldName" combobox1.ValueMember = "fieldName" combobox1.DataSource … | |
Hello! Now I have another problem. I have successfully implemented cross-page postback with ASP.NET 1.1 using: [code] [COLOR=#0000ff]Protected[/COLOR] [COLOR=#0000ff]Sub[/COLOR] submit_Click([COLOR=#0000ff]ByVal[/COLOR] sender [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]Object[/COLOR], [COLOR=#0000ff]ByVal[/COLOR] e [COLOR=#0000ff]As[/COLOR] System.EventArgs) [COLOR=#0000ff] For[/COLOR] [COLOR=#0000ff]Each[/COLOR] o [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]Object[/COLOR] [COLOR=#0000ff]In[/COLOR] Page.Request.Form [COLOR=#0000ff] Dim[/COLOR] ctlName [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = o.ToString() [COLOR=#0000ff] If[/COLOR] [COLOR=#0000ff]Not[/COLOR] ctlName.StartsWith(UniqueID & [COLOR=#800000]":"[/COLOR]) [COLOR=#0000ff]Then [/COLOR][COLOR=#0000ff] … | |
Re: Hi. Try exchanging [inlinecode]Label1.RenderControl(htmlTW)[/inlinecode] with [inlinecode]Page.RenderControl(htmlTW)[/inlinecode]. This will give you the entire page including all controls. Or, you can put the code inside a <div> tag like this: [inlinecode]<div id="divPanel" runat="server"> <your code> </div>[/inlinecode] And then use [inlinecode]divPanel.RenderControl(htmlTW)[/inlinecode]. | |
Hi, all! I've been trying to pass a javascript variable to an asp.net webapp through a hidden input field. All according to post [URL="http://www.daniweb.com/techtalkforums/thread26184.html"]http://www.daniweb.com/techtalkforums/thread26184.html[/URL]. But something seems to be garbled. Here's what parts of my aspx code looks like. [code] ... [COLOR=#0000ff] var[/COLOR] src = document.documentElement.outerHTML; document.getElementById([COLOR=#800000]"pSource"[/COLOR]).Value = src; } … |
The End.