Forum: ASP.NET Jan 22nd, 2009 |
| Replies: 3 Views: 3,664 You should also stear away from inserting code just like that. Look into adding parameters:
SqlCommand comm = new SqlCommand("INSERT INTO desg VALUES (@txtsno, @txtdesg, @txtbasic)", connection);... |
Forum: ASP.NET Mar 28th, 2008 |
| Replies: 2 Views: 3,188 Use javascript, and put it into a span element:
<script type="text/javascript">
<!--//
function blinkme()
{
var elm = document.getElementById("blinker");
if (elm.value.length > 0)
{
... |
Forum: ASP.NET Mar 28th, 2008 |
| Replies: 2 Views: 4,617 Line 78, your query:
Dim SQLCheckForUser As String = "SELECT * FROM Users WHERE UserAlias = " & UserAlias.Text
THe problem with this is that you are not putting it within quotes. ANd because... |
Forum: JavaScript / DHTML / AJAX Mar 14th, 2008 |
| Replies: 3 Views: 17,075 If you still need it, this will delete all rows from your table, except for your head row.
var table = document.getElementById("tableid");
//or use : var table = document.all.tableid;
for(var i... |
Forum: ASP.NET Mar 10th, 2008 |
| Replies: 2 Views: 2,874 Are you sure the page isn't cached? If the page is cached, then it isn't finding the cookies, just using the settings on when they found them in the past. |
Forum: ASP.NET Mar 7th, 2008 |
| Replies: 9 Views: 909 No problem.
I'm a performance geek I guess. I sit here at work almost all day long just finding what is faster than what, and tweaking a 1500 line file I use whenever I build an application, just... |
Forum: ASP.NET Mar 7th, 2008 |
| Replies: 9 Views: 909 Without Commenting lines, it's a lot smaller than it was:
Lines Before Edit: 143
Lines After Edit: 98
A nice 45 line savings ^^
It should be a lot quicker in performance as well. |
Forum: ASP.NET Mar 7th, 2008 |
| Replies: 9 Views: 909 Unfortunately I don't think you can skip any steps here. It seems all quite logical. If you do skip steps, that would require a different route to take and can be a waste of time, as performance... |
Forum: ASP.NET Mar 7th, 2008 |
| Replies: 9 Views: 909 Thanks. I'll look at it and give you back the results.
One quick question as well, this function works properly, you just wish to make it more efficient and condensed, correct?
I will make it... |
Forum: ASP.NET Mar 7th, 2008 |
| Replies: 9 Views: 909 Question real quick.. then I can help you (it will be in RED).
An no, it was meant for this thread, however I didn't read your thread, just the header. My apologies.
'Get the questions from the... |
Forum: ASP.NET Mar 7th, 2008 |
| Replies: 5 Views: 6,873 It's very simple. Follow the article, it's dead on and works perfectly.
http://www.codeproject.com/KB/aspnet/httpImageHandler.aspx |
Forum: ASP.NET Mar 6th, 2008 |
| Replies: 9 Views: 909 The problem with this is that a querystring can only hold so many characters. Want to see how many? Type as many as you can inside the address bar and response.write your querystring. You'll see how... |
Forum: ASP.NET Mar 6th, 2008 |
| Replies: 10 Views: 1,247 check out w3schools.com to learn the basics of asp.net. After that, jump into tutorials and look at code. To be quite honest, 15 hours isn't anything. Most people don't understand how to search for a... |
Forum: ASP.NET Mar 6th, 2008 |
| Replies: 2 Views: 484 http://www.1keydata.com/css-tutorial/codes.php |
Forum: ASP.NET Mar 6th, 2008 |
| Replies: 1 Views: 719 It's done by database. When the user logs in, or clocks in, you create a record in a database that you specify (lets name it timesheets). When a user logs out, you create a new record as well.... |
Forum: ASP.NET Mar 6th, 2008 |
| Replies: 6 Views: 1,385 The thing is with "update panel" is that you have to download AJAXToolKit, and then you must enable your server to accept it, otherwise it will be problem after problem.
There is also a class... |
Forum: ASP.NET Mar 5th, 2008 |
| Replies: 6 Views: 1,584 Well a way you can do it resides in just resetting the expiration the file
Set the expiration on the file to now or now + 1 second. |
Forum: ASP.NET Mar 5th, 2008 |
| Replies: 6 Views: 1,584 Can't, I am at work and at work I work on a linux machine and have no access to FTP connections. Therefore I cannot test anything ^^ |
Forum: ASP.NET Mar 5th, 2008 |
| Replies: 6 Views: 1,584 Well you will need something like:
HttpResponse.RemoveOutputCacheItem(Server.MapPath("/directory") & "file.aspx");
or just
HttpResponse.RemoveOutputCacheItem("/directory/file.aspx");
Not... |
Forum: ASP.NET Mar 5th, 2008 |
| Replies: 15 Views: 2,935 Also check this out:
http://blog.gilluminate.com/2006/4/25/prevent-copy-paste-and-print-screen-online |
Forum: ASP.NET Mar 5th, 2008 |
| Replies: 3 Views: 4,338 Your easiest and best bet would be to create a transfer page that will read the contents of the current session variable. Then, create a loop that puts down a hidden input field with the id as the... |
Forum: ASP.NET Mar 5th, 2008 |
| Replies: 6 Views: 1,584 HttpResponse.RemoveOutputCacheItem("pathtoyourfile"); |
Forum: ASP.NET Mar 4th, 2008 |
| Replies: 15 Views: 2,935 he can make the opacity of the entire screen down to 30% so the camera can't pick it up!! |
Forum: ASP.NET Mar 4th, 2008 |
| Replies: 4 Views: 5,761 You cannot detect when it has a file, however you can detect length. If you wish to detect length, you need to make sure the box is READONLY. Cause, like me and probably a few others, I type most of... |
Forum: ASP Mar 4th, 2008 |
| Replies: 45 Views: 4,412 You will only have one connection, but multiple record sets.
Change this a bit to do a more sophisticated join:
SQL = "SELECT CL.organisation,... |
Forum: ASP.NET Mar 4th, 2008 |
| Replies: 3 Views: 955 You would need to put your current treeviewstate in a session variable to call along every page on the site. Otherwise, it is page to page or every page has a different coding to show the correct... |
Forum: ASP.NET Mar 4th, 2008 |
| Replies: 15 Views: 2,935 Yes you can disable those keys, but it won't stop them from using the clipboard.
However, what you can do is set up a javascript function that gets called constantly. Then inside the function you... |
Forum: ASP.NET Mar 4th, 2008 |
| Replies: 27 Views: 6,149 Yup, here's the problem with UPDATE:
SqlCommand cmd = new SqlCommand("UPDATE blahUserDetails SET UserDetailsRow WHERE username=@username", conn);
You're not setting a value, it should be something... |
Forum: ASP Mar 4th, 2008 |
| Replies: 45 Views: 4,412 you would have to remove them, or use some very complex regex which would be extremely slow. Something would be like:
[a-Z|-] for each character. You would end up having to search every character,... |
Forum: ASP Mar 3rd, 2008 |
| Replies: 45 Views: 4,412 The period is a wild card. You would first need to replace the string that you are working with. replace all "-" for "." and then setup your regex. This way it will match: email and e-mail. However,... |
Forum: ASP.NET Mar 3rd, 2008 |
| Replies: 27 Views: 6,149 then the control hasn't been created yet, but is in process. |
Forum: ASP.NET Mar 3rd, 2008 |
| Replies: 27 Views: 6,149 is tb declared, and a control? |
Forum: ASP.NET Mar 3rd, 2008 |
| Replies: 6 Views: 1,385 You can have it change, but you need to use javascript and ajax. Use the javascript to keep track of the timer. Once it hits 30 seconds, javascript can call a command against the server, or if you're... |
Forum: ASP.NET Feb 29th, 2008 |
| Replies: 4 Views: 2,257 I use that function with a "btnDelete_Click" and it works perfectly. but okay, glad to hear you got it |
Forum: ASP.NET Feb 29th, 2008 |
| Replies: 27 Views: 6,149 you need to keep track of the ID of the record you are updating. Put it there, or create a "hidden html field" and set the value of it on page_load. Then, grab the value when you update/delete. |
Forum: ASP.NET Feb 29th, 2008 |
| Replies: 27 Views: 6,149 Well I don't do c#, but I can "try" for you. I also don't do code-behind ^^
protected void CancelBtn_Click(object sender, EventArgs e)
{
Response.Redirect("UserAdmin.aspx");
}... |
Forum: ASP.NET Feb 28th, 2008 |
| Replies: 4 Views: 2,257 It's not good practice to check them through HTML, not to mention if anything changes, your entire page is broken.
You should check your repeater for its controls, and then check to see which one... |
Forum: ASP.NET Feb 28th, 2008 |
| Replies: 27 Views: 6,149 It doesn't look like there is something wrong. Where are you actually putting the string on the page? It usually doesn't throw this error unless you are putting server content outside the tag. |
Forum: ASP.NET Feb 28th, 2008 |
| Replies: 27 Views: 6,149 make sure you are spitting out the textboxes within the form. If not, you will get this error. You are most likely spitting out the info above the form tag. |
Forum: ASP.NET Feb 28th, 2008 |
| Replies: 27 Views: 6,149 you don't have a runat server form?
<form runat="server">
<asp:Table....>
</form> |