Forum: ASP.NET Mar 23rd, 2009 |
| Replies: 3 Views: 1,140 What the previous post gave you was a way to know how many people are online at any given moment, however, it is very unstable as you are not guaranteed to trigger Session_OnEnd, and if you look into... |
Forum: ASP.NET Mar 23rd, 2009 |
| Replies: 7 Views: 4,960 That's actually incorrect. You can use AJAX to do multiple file uploads, however, you will most likely not have any idea of the size of the file without contact to the file system, which requires... |
Forum: ASP.NET Jan 22nd, 2009 |
| Replies: 3 Views: 3,286 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 Jan 21st, 2009 |
| Replies: 2 Views: 389 I use discountasp.net. Haven't had a problem yet, and they are never overloaded. |
Forum: ASP.NET Jan 21st, 2009 |
| Replies: 4 Views: 5,515 That code is javascript, so it is independent of any language run on the server. Now where it says "serversubmitbtn" or "servercontrol", you will want to put the ID of the server control right there.... |
Forum: ASP.NET Jan 6th, 2009 |
| Replies: 5 Views: 994 That's because it is not a member of System.Data.SqlClient.SqlConnection. That is the class of the actual connection. You need one right before that:
System.Data.SqlClient |
Forum: ASP.NET Jan 3rd, 2009 |
| Replies: 3 Views: 412 Personally, I would stray away from Castles in the Sky IT Solutions, as I am not sure how it would really relate to the services available. Keep in mind, also, that your company name is what you will... |
Forum: ASP.NET Jan 2nd, 2009 |
| Replies: 3 Views: 412 Keep in mind, your company name will not be the only thing looked at, but as well as your mission statement. And based on your mission statement, your company name will be found. |
Forum: ASP.NET Jan 2nd, 2009 |
| Replies: 4 Views: 777 All I will be doing for this is creating the large object when initialized and stored in a single session variable. When needed, it will be brought in and be a reference, so when updated, it will... |
Forum: ASP.NET Jan 2nd, 2009 |
| Replies: 21 Views: 1,218 I'm sorry, didn't realize that was a function I built to add an option. Here is the way to add an option:
<script type="text/javascript">
function chkChange(ddl)
{
var textbox... |
Forum: ASP.NET Jan 1st, 2009 |
| Replies: 3 Views: 506 No, this is not possible the way you are wanting. If you wish to do this, you would have to do a cross-page postback, then redirect back to the current page. So by doing this, you will make these... |
Forum: ASP.NET Jan 1st, 2009 |
| Replies: 21 Views: 1,218 In javascript (the script tags below your dropdownlist), you can set focus to an element by first grabbing the element (document.getElementById("id")) and applying ".focus()". Becareful of this, it... |
Forum: ASP.NET Jan 1st, 2009 |
| Replies: 3 Views: 640 That method can only be done via ajax, and a loop triggering a database query. Your best bet would be to check for messages on page_load. If there is a message, show an alert. I believe that is how... |
Forum: ASP.NET Jan 1st, 2009 |
| Replies: 2 Views: 961 This has to do with CSS. On the td row, apply this style attribute: style="position: relative;". Then on your calendar, apply this attribute: style="position: absolute; z-index: 1000;". This will... |
Forum: ASP.NET Jan 1st, 2009 |
| Replies: 21 Views: 1,218 Aneesh_Argent is right, you need to replace the Textbox, or remove the "Visible='False'" property. The one thing you will need to learn about the visibility property of these web controls is that if... |
Forum: ASP.NET Jan 1st, 2009 |
| Replies: 4 Views: 3,980 Your method should be working alright.. Are you sure you are returning a row from the database? You might not be finding anything. Run it manually to see your result. |
Forum: ASP.NET Jan 1st, 2009 |
| Replies: 5 Views: 994 A simple way would be to retrieve the information for the dropdown. Then when the user selects from the drop down, trigger an event to call the database to retrieve the values based on the dropdown... |
Forum: ASP.NET Jan 1st, 2009 |
| Replies: 4 Views: 777 All GetSessionObject() would do is return the session variable and convert it into the ClassName object.
I have never heard of the class factory design pattern, and was an interesting read.... |
Forum: ASP.NET Dec 31st, 2008 |
| Replies: 21 Views: 1,218 Try this without a postback. This works with javascript to do it on the client, not on the server:
<asp:DropDownList ID="ddldept" onchange="chkChange(this);" runat="server" Style="z-index: 131;... |
Forum: ASP.NET Dec 31st, 2008 |
| Replies: 1 Views: 499 You have a couple of options, and one I would recommend would be to change the database column type.
You can change the database column type from date/datetime to nvarchar or char format. This way... |
Forum: ASP.NET Dec 31st, 2008 |
| Replies: 4 Views: 777 I have a custom class that is an entire structure within itself, many layers deep. However, this object is stored in memory through sessions. I need a way to retrieve the session variable without... |
Forum: ASP.NET Dec 31st, 2008 |
| Replies: 3 Views: 640 Database wise:
Create a table that holds the messages, with at least the message, userid to send it to, userid who sent it, and "read date" or read flag. When a user sends the message, you can... |
Forum: ASP.NET Nov 13th, 2008 |
| Replies: 12 Views: 4,623 For this, just update your query to select the top 5 results ...
SELECT TOP 5 Category.Cat....
This way it has only 5 records and is limited. |
Forum: ASP.NET Aug 28th, 2008 |
| Replies: 7 Views: 1,015 Why use all those? Using server controls is costly, so a repeater would be best. Just create a repeater and bind all your images to an array, then bind it to the datasource. Basically, use the... |
Forum: ASP.NET Aug 28th, 2008 |
| Replies: 14 Views: 5,238 What you are doing should be referenced by each page. When you click a button in your header, which is located on your master page, you want the main content to change? This is done by just going to... |
Forum: ASP.NET Aug 27th, 2008 |
| Replies: 4 Views: 1,548 This will be done through your query language, not ASP.NET. However, go ahead and post your query / code and I'll see what I can do to help. |
Forum: VB.NET Jul 12th, 2008 |
| Replies: 4 Views: 537 alkeshnayak is wrong on that point, as long as you have "< 2 GB" in your database, it will work. However, if you meant: =< "2 GB" then this statement will fail as you cannot use an operator (=<)... |
Forum: ASP.NET Jul 11th, 2008 |
| Replies: 7 Views: 4,960 Well, the thing is that you must have an activex or java application to get the files. Uploading them after that point is always open to anything you wish. What it does is puts the selected files... |
Forum: ASP.NET Jul 11th, 2008 |
| Replies: 2 Views: 429 What kind of game are you talking about? A clan, a community, an actual game on a site? |
Forum: ASP.NET Jun 7th, 2008 |
| Replies: 5 Views: 1,396 It's not difficult in asp.net to use the ASP.NET built in methods to do url rewriting.
Also, if you wish to stray away from this method, just add a check at the beginning of each page.
Dim... |
Forum: ASP Jun 7th, 2008 |
| Replies: 4 Views: 3,340 Actually, no lol. If you post your code, I can give you an update code snippet to show you what you need to do.
For this, and most cross-page checks, you have many options, but all options you... |
Forum: JavaScript / DHTML / AJAX May 22nd, 2008 |
| Replies: 2 Views: 2,257 You can put this inside a script tag in the header.
document.onclick = function() { setupZoom(); }
or put an ID on your body tag and put:
document.getElementById("bodyid").onclick =... |
Forum: ASP.NET Apr 8th, 2008 |
| Replies: 47 Views: 11,259 you need to specify your assembly after your "ImageHandler". Also make sure you're re-routing requests. But I am pretty damn sure it is because the imagehandler is never being called. You will need... |
Forum: ASP.NET Apr 4th, 2008 |
| Replies: 2 Views: 957 You can use a field validator. Use regular expressions to detect what the @ address is.
It will come up false and show an error if it is not the same @ address.
Or you can use javascript and... |
Forum: ASP.NET Apr 4th, 2008 |
| Replies: 4 Views: 3,707 place your code, only your content place holder code like the above example, and I will try to help you. |
Forum: ASP.NET Apr 4th, 2008 |
| Replies: 47 Views: 11,259 What is it displaying to you.. an error, or just the image that is unwatermarked?
If it is displaying just the image, post your config file and the image names you are calling. |
Forum: ASP.NET Mar 31st, 2008 |
| Replies: 4 Views: 3,743 To avoid errors, you should put it into a function:
function tryClose()
{
Try
{
window.close();
}catch(e){
this.close();
}
} |
Forum: ASP.NET Mar 31st, 2008 |
| Replies: 6 Views: 2,725 Not really. Explain it in 101 for me.
Some links will open in a content place holder, the others will open in a new window. What exactly are you after.. no postbacks? I have no clue exactly what... |
Forum: ASP.NET Mar 31st, 2008 |
| Replies: 7 Views: 4,480 I sent you a PM, if it works, place the code you used and solve the thread, if not, let me know your situation and I'll attempt to solve it for you. |
Forum: ASP.NET Mar 31st, 2008 |
| Replies: 4 Views: 3,743 you can do window.close, this.close. It won't matter if you place them like this:
onclick="window.close;this.close;return false;" |