Sure: http://www.codeproject.com/ :-D [Modified] Heh, I'll not be so rude. This is actually the site that I used to first learn asp.net: http://quickstarts.asp.net/QuickStartv20/aspnet/Default.aspx[^] It starts off slow, with basic examples, then gets a bit deeper into things. When the time comes to learn how to perform data access/reporting, I'd suggest http://asp.net/learn/data-access/.[^]
dekart_roo
Posts
-
Asp.net Basics -
resources in exe?If you need to read in the value of a string that's subject to configuration, why not store\read from the registry?
-
How can i close page from another page?I'm not entirely sure what you're asking about... But I think you might be able to find a solution through javascript. You can use the function window.open() to open a page (typically used for a popup.) If you do that, on the newly opened page you can refference the page that opened it, via window.opener. So window.opener.close() would close the page that opened the current open, provided the current one was opened via window.open(). I hope that helps answer the question?
-
Master Page and Session null pointer on page loadWell... if It's in the onload of the master page, that means it will be among the very first lines of code executed in your application. Thus, it will be checking for the session variable, in all likelyhood, before you can get the chance to set it. Before using the session variable in any way, try checking first to see if it's null, or use a try catch block to stave off unhandled exceptions until you can set the session variable.
-
Funny JavascriptFirst one: R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A() { for(i=0; i-DIL; i++) { DIS = DI[ i ].style; DIS.position="absolute"; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5 } R++ } setInterval("A()",5); void(0); It gave errors on DIS.position=’absolute’ and setInterval(’A()’,5) Because ’ != '
-
Reading values from dynamically added controls.I found out that it will not delete the controls inside of the placeholder, provided I DO NOT assign the controls a unique id. This functionality is... strange at best. But I guess a part of learning a solution is becoming familiar with its quarks.
-
Reading values from dynamically added controls.I'm coming across a problem while trying to read values from dynamically added text boxes. This is my method: *Create placeholder inside of the aspx. *Read in data from sql, creating a label and textbox for each entry. *Add those controls to the placeholder. That works just fine. However, I can't seem to read the values from those dynamically added textboxes. When I run in debug mode, the placeholder is empty by the time the page loads. Any advice on the matter? Thanks.
-
custom validation in asp.netThat's a regular expression. It's a syntax for describing patterns within strings, and can be quite powerful. It takes some time and research to understand them, but I find it well worth it. That particular one is a bit strange though... I'm not sure if I fully get what it's going for. I'd suggest something along the lines of: ^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$
-
How to check a number is hexadecimal in c#Either you've worded this question in a slightly misleading way, or you're not up on your number systems. If you're really asking us how to tell if a number is hexadecimal, that's kind of a moot point. All numbers can be represented as a hexidecimal value. It's not a way of storing or encoding a number persay (with exceptions to the more complex storage systems such as the IEEE floating point,) so much a means of viewing it. If you want to express a number as a hex value, look into .net format strings. If you're asking how to check a string to see if it represents a hexidecimal value, then I suggest looking into regular expressions. ^0x[\da-fA-F]{1,}$ should suffice as an expression to check against. Though, I'll often append a \s{0,} to either the front or back, to add forgiveness to user input. -Roo
-
OnClientClick in girdView ??I'm pretty sure the error is coming from the <%# %> tags. At the point of OnClientClick, everything is being directly translated into JavaScript, and Javascript does not support those tags. If you need to combine asp.net variables with javascript, I'd recommend using the click attribute, and setting up a server side event handler. Either that, or you could always "cheat" it, by having a hidden data field that you write to via asp.net, and read from via javascript to execute your Eval(). -Roo
-
ASP.NETI find myself using "\n" when I'm writing to literals in javascript. I do this, because later when I view the source, to debug it, I get something that's intelligible rather than a single line. Ex: ----- Later, in code-behind file ------ string jsString = "\n"; string jsString += "var something='This is something to say.';\n"; string jsString += "alert(something);\n"; string jsString += "\n"; JSexample.Text = jsString; ----- This way, I when debugging it shows up as: ---------- var something='This is something to say.'; alert(something); ----- Instead of: --------- var something='This is something to say.';alert(something); This can make a big difference, when the javascript gets to be 50+ lines.
-
Setting file access restrictions...Thanks a lot; knowing this is definitely a big piece of the puzzle, as it will surely be how I target the specific file. But I'm still unsure of the specific configuration that will instruct IIS to reject http requests for that file, while still allowing server requests. -Roo
-
Setting file access restrictions...For an asp.net application, I'm using an xml file to read in configuration settings. The problem is... some of the settings can hold sensitive data. I want to ensure that the application can read in the values, but that the server will not acknowledge any http requests on the file. Prior programming conventions would dictate placing the configuration file somewhere outside of the scope of the web root, but that makes for more difficult installations... I'm trying to keep the whole application limited to one directory. So... is there a web.config setting I could use to grant server access to a file, but not http access?
-
AD authenticationShould have 75-80% of everything you could want to know for AD coding in .Net: http://www.c-sharpcorner.com/UploadFile/ecabral/ADand.NET08242005065451AM/ADand.NET.aspx In direct answer to your second question: DirectoryEntry de = new DirectoryEntry(); de.AuthenticationType = AuthenticationTypes.Secure; -Roo
-
urgent need about stored procedure...,It's sounding to me like you might be needing to do some string formats. Check out this link... I think it's the answer to your question. http://blog.stevex.net/index.php/string-formatting-in-csharp/ -Roo
-
HttpWebRequestI have a script that I can post to via a simple html form, but I can't figure out how to replicate the results with HttpWebRequest. Is there a way of getting the full functionality of a form submit via the HttpWebRequest? Works:
Does not Work: ASCIIEncoding encoder = new ASCIIEncoding(); string ifxLoc = "http://script-to-submit-to/login.dll?login"; string postData = "UserName=" + unme; postData += "&PassWord=" + upswd; byte[] data = encoder.GetBytes(postData); HttpWebRequest s2oReq = (HttpWebRequest) WebRequest.Create(ifxLoc); s2oReq.Method = "POST"; s2oReq.AllowAutoRedirect = true; s2oReq.ContentType = "application/x-www-form-urlencoded"; s2oReq.ContentLength = data.Length; Stream s2oStream = s2oReq.GetRequestStream(); s2oStream.Write(data, 0, data.Length); s2oStream.Close(); Problem: The HttpWebRequest seems to make a shallow connection to the login.dll, or doesn't fully follow through. I can't get it...working... in any way. It just returns the input of the html of the login page. Am I going about it in the wrong manner? I also need a way to impliment the native redirect that's built into the simple form submit. If I use a response.redirect() after closing the stream, it is not the same. Thanks! -Roo
-
Interface irritationYou might be able to solve this problem via CSS. Try creating a custom CSS class for the list views, with the property { display: inline }.
-
Creating / Running a seperate aspx instance/application on the server.Thanks, I took a very quick glance at web services, and it looks to be just what I need. I appreciate the quick response! I'll go bury my nose in tutorials and documentation, and hopefully I'll have a working solution soon.
-
Creating / Running a seperate aspx instance/application on the server.I'm wondering if anyone knows how to create/start an instance of a separate aspx or c# application on the server, read its output, and terminate it, all from inside of an asp.net instance... or, if such a thing is possible at all. My initial searches on google have been fruitless, and I was wondering if anyone has done something like this before and/or could link me to an article/documentation outlining some of the procedures. -Reasons- I've begun authoring to Microsoft Sharepoint 2007, which fully runs on asp.net 2.0. However, it has some limitations (probably for security purposes.) It seems to be completely lacking in support of DirectoryServices, and throws a very generic error ("An operations error occurred.") when you so much as run an LDAP query through System.DirectoryServices.DirectorySearcher.FindAll(). This (security feature?) can be completely avoided, if I can find a way to create then initialize an application to perform the basic AD query, and report back basic information. Thanks a bunch! -Roo