alc6379 120 Cookie... That's it Team Colleague

Dunno why, but I'm digging Obama. I seem to be able to stomach him more than the others. On the R Side, the only person that appeals to me is Romney, and I don't even know why there, either...

alc6379 120 Cookie... That's it Team Colleague

I dunno... I'm a big Pinot Grigio fan. Maybe I just haven't had a good red yet?

It's funny. I like my really hard liquor because it tastes like liquor. I really like "BEER" tasting beer, especially really bitter IPAs. But then again, I like my wine sweet...

alc6379 120 Cookie... That's it Team Colleague

you can use the mailto: syntax to fill in the email in its entirety. It's throughly documented in the RFC822 standard...

alc6379 120 Cookie... That's it Team Colleague

I think it still boils down to the fact that you can't cast a Control to that Filter type directly. You're going to have to write logic to do that conversion, or something.

alc6379 120 Cookie... That's it Team Colleague

Ok... when you use method 2, does it actually go through the loop, or does it say no rows are returned there?

alc6379 120 Cookie... That's it Team Colleague

You can do inline code instead of using code-behind. That way, all the code is included directly on the ASP page:

http://quickstarts.asp.net/QuickStartv20/aspnet/doc/pages/codebehind.aspx

But, why would you want to do that?

alc6379 120 Cookie... That's it Team Colleague

I'm not really sure I understand exactly what you're asking. Theres obviously some enums or other classes that we're not being provided here. If I just compiled this code as-is, there would be a bunch of undefined references.

alc6379 120 Cookie... That's it Team Colleague

WHAT IS WITH THE CAPS I GAVE YOU A PAGE WITH INSTRUCTIONS ON HOW TO DO IT

Did you even read the link I sent? There was a link to a .NET KB article on how to do what you're asking.

alc6379 120 Cookie... That's it Team Colleague

What are the specs on this system? How much load is on this thing?

alc6379 120 Cookie... That's it Team Colleague

can you please post the code for these two methods?

alc6379 120 Cookie... That's it Team Colleague

Did you see this article?

http://support.microsoft.com/kb/244954

alc6379 120 Cookie... That's it Team Colleague

Also, can you post the code to your stored procedure? That might tell us even more.

alc6379 120 Cookie... That's it Team Colleague

Do you have the code-behind for the error in question? We won't be able to tell you much without that...

alc6379 120 Cookie... That's it Team Colleague

hiiiiii,
thaaaaaaaaaaaaaanks a lot it helped very well
:) it get my work done thanks
but I have another question

I have a datasource in my page then I want to get a value from it according to a condition
example : to get a name according to an id

note I need the datasource because I am using gridview
thanks

Hey there,

Start a new thread for this question-- since the original issue has been resolved, people might not look at this other question you have. :)

alc6379 120 Cookie... That's it Team Colleague

Can you post more of the code? I've never seen a Control with that property that's part of System.Web.UI.Control.

On top of that, even if that particular cast is possible, that looks a bit confusing. Why not do this:

Control c; 
Filter myFilter = (Filter)c; //that's assuming this is possible

//then... 

switch(myFilter.FilterModifier)
{
	//rest of your code

again, assuming that's even possible.

Another thing to consider is that the switch statement only works with primitive types. Is FilterModifier an enum or something?

alc6379 120 Cookie... That's it Team Colleague

Perhaps this should be a tutorial?

alc6379 120 Cookie... That's it Team Colleague

You have to make a SqlCommand object, and change the CommandType to "CommandType.StoredProcedure". Then when you initialize the SqlDataAdapter, you pass that SqlCommand to the SqlDataAdapter.

I just found this pretty good code snippet, from this site:

sqlConnection = new SqlConnection( "Integrated Security=yes;Initial Catalog=Northwind;Data Source=(local)" );

            //pass the stored proc name and SqlConnection
            sqlCommand = new SqlCommand( "Employee Sales by Country", sqlConnection );
            //important to set this as StoredProcedure is *not* the default
            sqlCommand.CommandType = CommandType.StoredProcedure;
    
            //instantiate SqlAdapter and DataSet
            sqlDataAdapter = new SqlDataAdapter( sqlCommand );

The example is in C#, but it illustrates how you'd use the SqlCommand instead of just feeding a string to the SqlDataAdapter.

alc6379 120 Cookie... That's it Team Colleague

Hi Kapil could u please tell me how to open a pdf file using jsp file within the browser instead of showing prompt of open --- save --- cancel dialog box to user. I am running my application on "https" .....

Hi there,

Please start your own thread. This is totally unrelated to the original poster's question. We have an entire JSP forum you could tap.

alc6379 120 Cookie... That's it Team Colleague

How to create a subdomain in IIS.

You don't create the subdomain in C#, so much as doing it in IIS. I just did a Google search and came up with a bunch of stuff:

http://www.google.com/search?hl=en&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=r1q&q=subdomain+IIS&btnG=Search

alc6379 120 Cookie... That's it Team Colleague

So for starters, make sure the spelling of your filenames are all correct. I mean, you're going back and forth between "lgoin" and "login". That's bound to lead to confusion.

I just made a brand new ASPX page and the first line looked like this:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

so from that standpoint, I would imagine you would be looking at this:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Login.vb" Inherits="Class1" %>

I'd make sure that all the capitalization is as it should be-- that makes a difference with C#, but I'm not sure with VB.NET.

alc6379 120 Cookie... That's it Team Colleague

Run the code through a debugger, and set a breakpoint at the line where you make that new SqlCommand. Get the .CommandText value of it, and run that actual text against your SQL server. See if it returns any rows, for starters.

alc6379 120 Cookie... That's it Team Colleague

I really don't think you can answer this question accurately. Last month I went on at least 10 different interviews, and I came up with 10 different interviews.

Some people will ask more about your work ethic, or about previous projects. Others will grill you with technical questions about object-oriented programming. Some will try to trip you up with trick questions about different .NET library tools. I even had one ask if I preferred tea or coffee as a genuine interview question!

So really, it depends. I think the best advice is just to know you, and know what to do. Further, don't be afraid to say you don't know something, but also be sure to indicate an understanding of a concept if they explain further.

Good luck!

alc6379 120 Cookie... That's it Team Colleague

Dude that's kind of insulting. That is straight up a homework assignment.

I hate to sound rude, but please. You could Google the answers for this stuff. :(

alc6379 120 Cookie... That's it Team Colleague

Unfortunately, you can't do that. IE 7 was set up so it HAS to prompt the user to confirm file downloads. ..

alc6379 120 Cookie... That's it Team Colleague

Would it perhaps be possible to modify your SQL query to do the work for you?

You could do the initial query, then do a UNION ALL using the query that does the calculations. That way, you would have one single result set, and the last row should be the calculations that you require.

I can't think of any other way to do what you're asking, aside from how you've described it. You could iterate through all of the rows in the DataTable, get the values of each row in the desired column, then perform your calculations. But essentially, that sounds like what you're doing already...

alc6379 120 Cookie... That's it Team Colleague

Well... you're still within the .NET framework if you take this approach-- you're just customizing the HTML you're putting on the page. That's a pretty standard thing to do...

alc6379 120 Cookie... That's it Team Colleague

did you check out this article?

http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.getnextcontrol.aspx

It looks like it should return a control, but I don't see what is supposed to happen when you've iterated through all the controls... This Method isn't very well documented...

alc6379 120 Cookie... That's it Team Colleague

how to create a calender control by using a imahe button in the html control by using java script

How to create a new thread for a question that is unrelated to the question the original poster is asking.

alc6379 120 Cookie... That's it Team Colleague

I can't think of anything offhand. Everything I might be able to think of is available as a commercial product...

alc6379 120 Cookie... That's it Team Colleague

you'd have to download those tools or purchase them. I don't know of a particular method or free tool that will allow you to do that...

alc6379 120 Cookie... That's it Team Colleague

Yeah... session doesn't really seem like such a great idea. Where is that objDt getting populated from to begin with?

I mean... unless you're saving the state in a database or something. That's the only way it would make sense to me. Perhaps that's why they're using state?

alc6379 120 Cookie... That's it Team Colleague

This will still do it-- that's why you put the controls in the footer row of the datagrid. That way, there will always be a new row. You could even go so far as to make an Add button that, when pressed, can display those fields.

alc6379 120 Cookie... That's it Team Colleague

you could use a set of if statements or something.

basically,

string myValues = "" //initialize the string

if (chkAlt.Checked == true)
{
       myValues = myValues + " Alt";
}

//...and so forth

Then, you'd create an OleDBCommand or SqlCommand that contained the ID. Something like:

"UPDATE tbl_values SET columnName = " + myfield + " Where ID = " + myRow;

You still need to figure out what your ID is. But, that code I just gave you is what the CommandText of your SqlCommand or OleDbCommand might look like. Then, you'd run the ExecuteNonQuery() of your command. That should commit it to the database.

alc6379 120 Cookie... That's it Team Colleague

What if it converted floats over to ints automatically? What would it do with the fractions?

scru makes an excellent point. When you're working with a type-safe language, one of the key points is that the compiler is going to be VERY picky about making sure types match up.

Personally, I wouldn't even use the explicit conversion unless I absolutely had a good reason...

alc6379 120 Cookie... That's it Team Colleague

what cards are doing who for which server now? Why didn't you purchase the hardware with the server, whatever it is?

I'm confuserated...

alc6379 120 Cookie... That's it Team Colleague

Actually, even if you use it as an IDE controller, you may still have to install the driver. I have an ITE8212 based IDE controller that I still have to install a driver for, even if I don't use it in a RAID config. That's just how it is...

alc6379 120 Cookie... That's it Team Colleague

I haven't had a problem with them, personally. Are you running any firewall software?

alc6379 120 Cookie... That's it Team Colleague

What kind of hard drive are you trying to install on? You probably need to load the Drivers for your hard drive controller at the F6 screen during the XP install.

alc6379 120 Cookie... That's it Team Colleague

That's kind of a broad question... what exactly are you looking to do?

I find that using the Import Export Wizard in Business Intelligence Development Studio is a great way to create a sample package, and look over what it did... That's how I learned, at least.

alc6379 120 Cookie... That's it Team Colleague

I agree with both bits of advice. I would just like to add that you can download Visual Web Developer from Microsoft for free. If you're just looking to make simple changes in a WYSIWYG type fashion, it should fit the bill.

alc6379 120 Cookie... That's it Team Colleague

Personally I can't stand any Step By Step book that MS puts out. However, I do like the "Programming ASP.NET 2.0" book from Microsoft Press, and I agree with waterfall-- WROX books ROCK. Professional ASP.NET 2.0 is OUTSTANDING, in my opinion. Both books contain information in VB and C#, and they cover the entire "lifespan" of a page that you develop.

alc6379 120 Cookie... That's it Team Colleague

if those are the only codes that you'll be using, couldn't you just use string concatenation on it? Ie, if you had one that was "alt LaF" would could just input that in as a string.

From that standpoint, when you updated it, you would have to make sure that you updated ALL of it, ie, if you wanted to change "alt LaF" to "alt sy ord." ,you would want to make sure that each value is explicitly updated when you do it.

Does that make sense? Otherwise, you'd need to set up a normalized database, with a row representing each code that applied to that bit of data, joined together.

alc6379 120 Cookie... That's it Team Colleague

Have you checked the tutorials on this very site? This subject has been covered before in depth, and one need only browse the tutorials to find the information.

alc6379 120 Cookie... That's it Team Colleague

They're called USB tokens. There are all kinds of ones available. Simply check this Google search out:

http://www.google.com/search?hl=en&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=IAv&q=usb+token&btnG=Search

But yes. What I was saying is that unless you really make a complicated scheme to prevent someone from copying it, someone could simply copy the files over to a new memory key.

alc6379 120 Cookie... That's it Team Colleague

Yeah... the Visual Studio designer is nice... sometimes.

I've had it do all kinds of crazy things, like make new EventHandlers when there's nothing at all wrong with the one you already built. It's just one of the quirks I've come to live with...

alc6379 120 Cookie... That's it Team Colleague

He just pasted it right here! Can you not simply copy it and paste from this forum?

alc6379 120 Cookie... That's it Team Colleague

Do you know how to use the Shell command in C#?

This member has provided you an awesome response. It's not his job to write your code for you. Check this out:

http://www.codeguru.com/forum/archive/index.php/t-181653.html

you can use this, and replace the actual filenames as provided in mahendrabatt's explanation with variables. From there you should be able to write your own code.

We're here to provide help, not full-blown coding solutions.

alc6379 120 Cookie... That's it Team Colleague

Alternatively, you could create a templateField for the fields you want to validate, and use an ASP.NET validator control in that templateField. I've had that work without issue...

It does require knowledge of templateFields. Fortunately MSDN has good documentation on them:

http://www.asp.net/learn/data-access/tutorial-12-cs.aspx

alc6379 120 Cookie... That's it Team Colleague

Did they not teach you how to do this in class? I find it odd that an instructor would give you such an assignment, but not provide some initial instruction on how to do so.

alc6379 120 Cookie... That's it Team Colleague

I haven't dug into it much, but I would think the page might be a binary executable. Have you dug through the directories where the SharePoint is deployed, to see if you can find the code for that webpart?