- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
IT/c#/asp.net web development
142 Posted Topics
Re: vb would be fine for this i think. but you shouldnt expect very much info regarding this technology on the net as i doubt it is a very popular thing to program as open source, expecially in vb. if i was doing it tho, i would get the directx sdk … | |
Re: are you trying to upload this image from every visitor of the page or just you? I dont believe it is possible to upload a file from a visitor, because then nothing would stop you from taking any file off a persons computer. | |
Re: Hmm, i replyed to a post exactly like this somewhere else on this forum. Anyways use Request.Form["controlID"] to get the value after a postback. | |
Re: try this. it creates its own file stream and sets the access to append. it replaces your fiest line [code] Stream xmlFile = new FileStream(@"c:\path",FileMode.Append); XmlTextWriter textWritter = new XmlTextWriter(xmlFile, Encoding.Default); [/code] | |
Re: you could also use the "ref" parameter that would change the values of the passed parameter. | |
Re: you already made a thread about this... | |
Re: the problem is you cant put an event on a option in IE as far as i know. so the best solution is to put the event on the select [code] <div id="div1" style="display: visible">Div 1</div> <select onchange="changeDisplay('div1',this.options[this.selectedIndex].value)"> <option value="block">visible</option> <option value="none">hidden</option> </select> [/code] | |
Re: PostBackURL sends all the form data to the assigned page. Whereas when using Response.Redirect your sending the form data to your current page then moving your user to the assigned page. So if your going to handle the form data on a separate page then you set the PostBackURL. Otherwise, … | |
Re: ok below is code i made to connect to a access database. the Select function takes your query and returns a dataset datasets are really easy to work with. if you dont have any experience with them i could post how to use them. also use parameters this doesnt have … | |
Re: [QUOTE=tgreer]Does C# have a conditional compiler directive for debug mode? I have code that I want to run only if I'm debugging.[/QUOTE] yeah c# uses directives [CODE] #if DEBUG Do this in debug; #else do this optionaly if not in debug #endif[/CODE] ![]() | |
Re: in the target property of the field, set it to _blank | |
Re: Page.IsPostBack Is used to check if the user posted back to the page. Meaning they clicked a button or changed a field in the form that causes it to post back to itself. Putting Not usually is used to check the initial load of the page. You only need to … | |
Re: You should set this up in IIS using an http redirect. You just need to have the file highlighted then in features view select http redirect then specify the new address in the box and check the two options for exact location and not the subdir and select the return … | |
Re: try storing it in your context.session. ive always prefered to just hit the database again for each page. just grab only enough each query to fill one page. EDIT: sorry i just realized, that you may not be talking about asp.net oops. in that case, fill a dataset up with … | |
Re: the operating system is made in c. but a lot of the apps are made in c# or vb.net, like the whole ms office suite is written in vb | |
Re: [QUOTE=mickwen]Hi : There is a .net flash component , your can free download it. ASP.NET and Win Form Supporting , It's may help to you. [url]http://www.e-iceblue.com[/url] NickMichel[/QUOTE] awsome com. ive been wanting something like this for a long time. thanks | |
Re: if you want to add a not null column to a table with rows, you need to set a default value to the new column. adding a new column without a default value would put a null in the column for each row, which would be breaking the not null … | |
Re: you can add the program into yout app as content then extract it and run it with the above mentioned way u just add the file to your project like any other file then change the build action to content. im noto sure if you can call it directly from … | |
Re: static void Main(string[] args) { } make your Main look like this and "args" is a string array of all the args passed | |
Re: [QUOTE=neelu421]I have a string "Hello". How can I copy this string into an array in words e.g 'H', 'e', 'l', 'l', 'o'. Thanks in advance[/QUOTE] a string is nothing more then an array of chars, so if you want to split up the strings letters into a different string array … | |
Re: [QUOTE=khusani;301726]I am developing a multi file uploader user control. after researching for it. the trick is to build a custom HttpHandler to perform the upload process from the context.request.files. here is the code for my handler: [COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] PSUpload[/COLOR] { [COLOR=#808080]///[/COLOR][COLOR=#008000] [/COLOR][COLOR=#808080]<summary> [/COLOR][COLOR=#808080]///[/COLOR][COLOR=#008000] Custom HttpHandler to perform uploading files from client … | |
Re: [QUOTE=adam1991;1004802]Here is the code first off all for the login script (HTML) [CODE] <form id="form1" runat="server" method="post"> <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox> <asp:TextBox ID="txtPassword" runat="server" style="width: 128px"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Login" />[/CODE] Here is the behind code to that page double click on the button and get this code (VB.NET) [CODE] Dim … | |
Re: [QUOTE=Se7Olutionyg;1001156][CODE]using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; namespace WebApplication5 { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { SqlConnection conn = new SqlConnection( " Server =localhost\\SqlExpress; Database= … | |
Re: i might be wrong but i dont think you can use a timer in asp.net because inorder to change a value on the page it has to do a postback, which reloads the page each time. but ive seen this done with ajax. like using setTimeout() to loop and XMLHttpRequest … | |
Re: [QUOTE=Shalvin;257937]But how to do the same in C#. For instance : int hits = Int32.Parse(Application["Hits"]); Will create a error Error 2 Argument '1': cannot convert from 'object' to 'string' E:\Sh\ASP\cS HitCounter\Global.asax 26 32 E:\...\cS HitCounter\ [B][/B][COLOR=#0000ff][COLOR=#0000ff][/COLOR][B] [/B][/COLOR][B][/B][/QUOTE] int hits = Int32.Parse(Application["Hits"].ToString()); but int hits = (int)Application["Hits"]; would be better because … | |
Re: Instead of hitting the db twice, you can increase the count with one query "update TheTable SET visitorcount = visitorcount+1" [QUOTE=AliAbbas;230615]Hi, 1. Create one database named "Sample", create a new table called "visitorcount" and create one column called "visitorcount" as integer in sql server. 2. Then put one label called … | |
Re: [QUOTE=vedmack;583539]I tried ~s.o.s~ suggest... [code]<html> <body oncontextmenu="return false;"> <iframe src='c:\name.xml'> </iframe> </body> </html> [/code] [/QUOTE] First off you cannot link to c:\ Unless name.xml is on every users computer nothing will show there. Saving the file does not reveal the files location, its probably just that you have the src … | |
im trying to find a way to do an action when someone accesses a image file. example would be someone views 'http://site.com/image.jpg' then say i want to log who has veiwed this file in my database. ive heard of ad sites doing somethign like this for tracking people but i … | |
Re: is the templet an html/text file? if so use System.IO and open the file with a filestream and read it with a streamreader. Otherwise if you are like generating this dynamically with some type of asp response writing. try doing a webrequest to the page. Im not really sure if … | |
im having problems with the following code it works fine when i have the sleep in but without the sleep it writes the same number twice does this have something to do with the way the computer generates the random number? like based on the computers time? [CODE] using System; … | |
is there any simple way to do this? im making a chat client and i want it to display text like all chat clients do, which is buttom to top. Thanks! | |
I need help with RPGIV . Im taking a class in school and the teacher and books suck. Can you point me to a site or 2 with RPG basics. I just need help navigating the whole as/400 pdm thing and a reference to keywords and shortcuts. The syntax and … | |
Re: you can move these events out into a function, but im just keeping it simple. [code] <div onmouseover="document.getElementById('img1').style.display='block';document.getElementById('txt1').style.display='none';" onmouseleave="document.getElementById('txt1').style.display='block';document.getElementById('img1').style.display='none';"> <img id="img1" src="img1.jpg" style="display: none;"> <div id="txt1" style="display: block"> text 1</div> </div> [/code] | |
Re: the inner html of the whole html document is document.childNodes[1].innerHTML or document.body.innerHTML if you just want the bodys html | |
Re: select * from table1, table2 this combines both tables | |
| |
Re: [QUOTE=wani_raj;582484]It is retrieval of unique records from table but I want retrieval of those records which are unique on some coloumns eg if table have 5 coloumns I want to retrieve only those records which are unique on 3 coloumns suppose a student table stores details of all college students … | |
Re: [QUOTE=charliena;585179]hi all i have created a project on photo album using asp.net. but the pictures are viewed small. i want to know if there is ny way as to add the zooming tools to the web forms using asp.net[/QUOTE] increasing the height/width of the image will make it larger, but … | |
Re: Use a master page for the header and footer. If you dont know how to use a masterpage, do some research, its easy to use. | |
I am looking for software that can keep a log of what computer a user has logged on to in our companys building. we have a domain using active directoy, and i would like a way so when a user logs on it will keep track of the computer they … | |
Re: Session("Cart") is null So either check if Session("Cart") is null, and create a new one if it doesnt exists. or create a new Session("Cart") when the session is started. Session("Cart") = New Cart | |
Re: it doesnt sound like you need anything more complicated then a image wrapped in a link to your page. [code]<a href="homepage2"><img /></a>[/code] | |
Re: text1.Text=Request.Form("text1") Request.Form("controlID") will return the text value of the form field. | |
Re: you access your content tags. they look like this. [code=asp]<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"></asp:Content>[/code] then you just call it from the c# code by id ex. Content1.Controls.Add(acontrolfilledwithcontent) | |
Re: what object is not supported? | |
Re: Master pages are not made to display external pages. If you want to have a menu and display external sites, put a iframe where your content panel would be. and on the menu links put target="iframesID" | |
is this possible, i had to use the mysql class to connect to the database, but i would rather use oledb. the connection string i used is "Provider=MySQLProv;Data Source=mySQLDB;User Id=myUsername;Password=myPassword" when i try to connect a popup titled "MySql Data Source Name Setup" always comes up. even if i try … | |
Re: Use the first scenario. Keep all the events in one table and all the categories in one table. It will be faster and easier to work with. | |
Re: you need to put that code in your test.aspx.vb file. |
The End.