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

hi
i am new to asp.net and can i have the details od automatic sending mail...
here iam using SQL server 2005 and sql 2000 so how can i do the above methods?
please explain in brief...

Saiveena,

Please reread this entire thread before posting a question. A user has previously provided pretty explicit steps on how to accomplish this.

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

You can put the controls you need in the footer row of your table:

http://aspnet.4guysfromrolla.com/articles/021203-1.aspx

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

if you run a debugger on your code, what does the actual sqlcmd's CommandText look like when you run the code? That might give us a clue on what's happening.

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

Have you thought of any yourself? Surely if you're in your final year, you've been exposed to enough problems and solutions that you could design your own project?

Or how about searching the forum? This question has been asked hundreds of times, at least.

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

This is a little more involved than you might think. Basically, what you have to do is write all the HTML markup yourself through your code.

There are a bunch of free "RichTextBox" editor controls out there you can use that employ JavaScript or even just plain Java to return a string that's already HTML formatted based on what buttons the user pressed to format the text. You might want to try Googling "Rich Text ASP.NET" or something similar, and find a control that appeals to you.

Generally with those, you can include them in your solution, build it, and when you write code to get the text from it, it should mostly work like your standard ASP.NET Textbox.

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

Why do this in ASP.NET at all? You could do this in JavaScript entirely. Are you eventually going to take the value generated from the calculator and use it in some kind of business logic? That's the only time you'd need to employ the server-side stuff like ASP.NET

What code have you written so far? Have you had any specific issues attempting this project. It's generally not a good idea to simply come on a forum, and ask for a whole solution like this. Instead, give it a shot yourself, and then ask us to provide pointers on your code.

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

This looks kind of like a homework assignment. Did you even check to see what errors were thrown when you attempted to build? These errors are so easy that they should have jumped right out at you.

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

Can you please modify your post to include code tags? Additionally, I am not entirely sure if I understand what the code is supposed to be doing, versus what it is doing.

Also, there is a WHOLE lot of whitespace in your code. I don't know if the forum did that, but it really makes things that much harder to read...

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

I'm not really sure if I understand your question...

If you write a Sub to add/modify an ArrayList to the SessionState, it should save it. You must postback to get the correct values saved to session state. If you just use a hyperlink, for instance, to go to another page, it might not postback, but instead, just go to the other page.

Make sure when you go to another page, it's either after you've done a PostBack to save session state. However you do it, it's going to be required to get the correct values in there. The server doesn't know you've made a change to the state if you don't post back.

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

Does that say what line of code that's happening on?

I can see that you probably just need to instantiate the HyperLink just once:

Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
	If e.Row.RowType = DataControlRowType.DataRow Then
		Dim hLink As String = DataBinder.Eval(e.Row.DataItem, "STATUS").ToString()
		Dim hLnk As HyperLink = CType(e.Row.FindControl("UW Status"), HyperLink)
	
		If hLink.Equals("KIV") Then
			hLnk.ForeColor = Drawing.Color.Red
			hLnk.NavigateUrl = "linkA.asp?AppId=" + DataBinder.Eval(e.Row.DataItem, "APP_ID").ToString()

		ElseIf hLink.Equals("Complete") Then
			hLnk.ForeColor = Drawing.Color.Green
			hLnk.NavigateUrl = "linkB.asp?AppId=" + DataBinder.Eval(e.Row.DataItem, "APP_ID").ToString()

		Else
			hLnk.ForeColor = Drawing.Color.Black
			hLnk.NavigateUrl = "linkC.asp?AppId=" + DataBinder.Eval(e.Row.DataItem, "APP_ID").ToString()

		End If
	End If
End Sub

Now, if you have that, then what might be going on is that it's not finding a control in your templateField called "UW Status". Alternatively, you might need to use

e.Row.Cells[x].FindControl("UW Status")

where x is the index of the column that you know your templateField is located.

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

What do you have so far? How much do you know about the underlying DataRowView model to a GridView?

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdeleting.aspx

The trick is when the event triggers, it will return a DataRowView that you can pull data from. You just have to figure out the column you want.

This page should provide some insight if you view the source via the link at the bottom of the page:

http://authors.aspalliance.com/aspxtreme/sys/web/ui/webcontrols/demos/gridviewrowdeleting.aspx

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

have you tried googling those program names? Sounds like they're crashing at startup.

I think this needs to be moved over to a Windows XP troubleshooting forum, rather than in ASP.NET

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

Why not store all the usernames in an array to begin with, then bind that Listbox to the array as a datasource? Then you already have a data structure there to work with.

Or alternatively, the ListBox should have an Items property that you can iterate through, pretty much just like you're using an array already. You could do Items[x].Value , if I recall correctly. No need for a separate array there.

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

You might want to look at a predeveloped solution for that. If you use a USB flash drive for that, and you have a token in the form of a file on that drive, then someone can take the file off of that drive, and copy it to another drive.

have you looked at some turnkey-style authentication solutions for your application? there are already a number of pre-existing solutions for this that you might want to consider looking at instead.

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

@alc
the problem is.. express version doesn' t have it.

Yikes! sorry I missed that!

Yeah in that case, you can just use the Deploy functionality built into there. My bad!

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

Hi there,

You might want to create a new thread for this question, since it's not related to your other question. That way, more people will look at your question...

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

I don't think you can actually write it back using a DTD-- I think you can only use an XSD file. Once you load the file into a DataSet, it loses the DTD information and stores it in an XSD schema, I think. The WriteXML() method on a dataset does allow you to write the XSD schema to file, though...

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

That's not so much a C# question as it is one of Windows file management. Check out this information on AutoRun:

http://msdn2.microsoft.com/en-us/library/bb776823.aspx

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

Hey all,

Some of you may remember me from a few years ago. I just wanted to re-debut myself, what with how much the site has changed since I left.

Anyways, I'm Alex, formerly known as The Cookie Moderator. I'll probably be around quite a bit in the ASP.NET and C# forums, since that's what my profession primarily focuses on right now. Hope I can get back into helping again!

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

Are you sure that the Cells directly contain the values in them, and they're not contained in a label within the Cell?

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

yep. I think that you're right there. I'm pretty sure the data tools in the IDE are removed from the Express Edition...

But hey on the bright side-- at least you're getting really familiar with those controls, right? ;)

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

Why not use a switch statement? Make a variable that can contain the value of your Enum, pass that as a parameter of the method, and then use a switch statement to evaluate the value of that variable in the method... Why would that not work?

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

Unfortunately, no matter what you can do you can't get just a time value from the database. Shaulf's suggestion will work, but that's for a string.

Here's a suggestion, though. If you're working with Time, there may end up being a time where you deal with something that happens at 11:59PM and ends at 12:30AM the next day. If you just store the time values, how will you deal with this? Just a thought. Then it starts to make sense why there's a DateTime value instead of just a Time value...

But also, I think you can cast a SqlDataType that is a Date/Time value to a DateTime data type. From there, the closest you might be able to get is use the .ToShortTime() method or something just to get the time. But then again, it only returns it in a string, too...

The DateTime object has all kinds of properties, like Hours, Minutes, Seconds, etc, that you can use in some form or another if you're wanting to do things like Time adding or similar. I suggest you look into those...

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

You can't really return more than one value from a single method type, even if you do overloading.

But, what you could do is break up your logic some, or use an object that contains a String, a Double, and a Result Code. Have the code return this Result object, then code logic to say something like this:

Result r;
//do something to populate r

switch (r.ResultCode)
   {
	case ResultCode.Fail:
		// do something with r.String result
	case ResultCode.Success:
		//do something with the r.Double result
   }

Basically, what I'm saying is that you could make an object that has the properties that you want, and based on what the Result Code is.

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

Also, Visual Studio has Deployment project, too. MSDN has some excellent documentation that will allow you to build a pretty decent Setup.exe program.

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

Well, to be more specific, EVERYTHING in an ArrayList gets stored as an object. The ArrayList is kind of like an Array that you can add objects to after you've instantiated it.

The ArrayList even has methods that you can use to convert the ArrayList to an Array. But, if you try to convert an ArrayList of objects that won't convert or cast to the type you're specifying to convert to, I imagine you'll get an exception thrown...

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

Can you please post a snippet of your code, and what exactly it's not doing? I think you'll get a better result than simply posting a ZIP of your work, and expecting someone to sift through it all...

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

What is the intended purpose of this dongle? Verification? A token or something?

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

I have to agree here. I think you probably want to set those other threads to execute asynchronously after the form has been instantiated.

I'm not that up on threading, but I know that in order to make a form still responsive, you have to look at running the method in an asynchronous delegate, and then have another delegate get called with a callback method to get the result, IIRC... but I'm a bit rusty on that...

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

you might want to check out these two links:

http://msdn2.microsoft.com/en-us/library/ykdxa0bc(VS.80).aspx

http://msdn2.microsoft.com/en-us/library/t4a23xx4(VS.80).aspx

I think a combination of adding logic in your program to do the same constraint validation, as well as handling the exception when the underlying DB raises it will produce the result you require.

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

The postbit on this forum was custom-developed... Maybe Dani might be willing to help out on this?

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

Serialization would allow this.

Actually, there's lots of ways to do this. You could store your results in a text file, or in XML, something like that, then make sure you delete the file on the application's exit event.

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

Windows vista IS coded in c#, but the core is still in c++ that xp also use (all xp is coded in c++).
All of windows vista is the new .NET 3.0 platform, so it automaticly can run the c# code.

Do some research before you come with stupid answers.

Do some research before you post stupid quips.

See? Not nice, is it? Calm it down, please. :) Answer all the questions you like, but let's keep it polite.

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

My favorite drink... I invented it:

The Big Al

  • 1 can of Osotspa M-150 energy drink, imported from Thailand. (Can use Carabao for more pep!)
  • 2 shots of Vodka

The vodka kind of lightens up the mood, so to speak, and then the M-150 has about 200% your RDA of Vitamin B6, so later on that night, you'll have the energy to keep partying!

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

I like to use mnemonics, replacing numbers with letters, and then I'll add punctuation for it. The only thing is, though, once you publish a password, it becomes a poor choice for a password.

For instance, I could take the phrase "DaniWeb is a great forum!" and make it into a password:

D@Wiagr84m!

That's a pretty nice long password, it's easy enough to remember if you can remember the phrase you based it off of, and the addition of punctuation makes it that much harder to crack.

...Of course, like I mentioned, I wouldn't ever consider using this as a password, now. Spiders crawl the web, and they make dictionaries out of words to use for brute-force cracking. So, pick something like my example, and don't tell ANYONE!

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

While the latest version of Norton Ghost doesn't let you make backups from outside of Windows, I also have a copy of Norton Ghost 2003 which does.

Well crud.

I thought one of the biggest strengths of Ghost was its ability to clone disks from outside of Windows. Does 2003 use WinPE? I thought it just used DOS.

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

I hear Acronis is pretty nice.

The tough thing with any imaging program right now is driver support for x64. In the case of Norton Ghost, you have a CD that you can boot to for recovery, but I don't know if it can actually do backup outside of the OS.

Specifically, with your system, the RAID support is going to be crucial. I know that Ghost doesn't care what OS is on the disk-- I've heard reports of success using their WinPE-based 32-bit disk to image a 64-bit OS down to a hard drive.

Considering the fact that an x64 OS runs in a standard partition type, I'd assume any of them could do the job. If I had access to my x64 box right now, I'd try it out with Ghost 10. But, of course I run into the issue that WinPE is based off of Windows XP SP1, and that doesn't natively support my nForce RAID setup... :(

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

When did this first start happening? Did you change anything around that point?

I don't deal with SCSI and OpenServer directly, but it might even be a termination issue, or something. Have you considered swapping cables, or checking the termination on your drives?

Just a thought.

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

In truth, I haven't been trolling the forums as much as I should lately. Given your post count, I could probably safely say that you haven't been reported, so you must be doing GREAT! :D

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

Can you please just stop? leave me alone. What I like about dreamlinux is that wine was so easy to configure, and my games actually work with it with this distro, I've tried other distros and wine doesn't work as well on those. And please stop posting on my threads jeoprogrammer.

As I remember correctly I got banned becuase of you, so stop posting on my threads.

I'm going to say this once, and only once: Stop.

The only reason you're not currently banned by IP is because the rest of moderation staff convinced me not to do it. This is your second, and final chance. joeprogrammer is doing what people are supposed to do in a forum: Discuss a topic. If you don't like it, don't post here. Anyone can post on a public forum.

We, the moderation staff, will determine who's flaming, and who's not. If you feel you're being flamed, report it. If you ever get banned from this forum, it was your own fault.

Can we please just play nice now?

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

I really don't know what program that is, but I do know vista uses massive amounts of ram and cpu power. I think its that program that's sucking all the bandwitdth. tell him to reinstall vista again.

Why not just eliminate the program?

It appears this thread has been cross-posted amongst a number of other forums. I think re-installing Vista for this one issue isn't really sound advice. I'm not familiar just yet with the Vista startup process, but it's feasible that there's some kind of MSCONFIG-type program to run to eliminate this process.

Is your friend running any P2P software on these systems, like Bittorrent, perhaps?

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

What are all of the system specs? Are we sure the disc is properly burnt?

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

duplicate-- closing thread.

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

Awesome! Thanks for submitting!

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

Quick question:

Are you wanting C# or C? C is not the same language as C#.

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

This is awesome.

If it had been me doing this, I'd redirect to a self-created webpage that talks about how stealing WiFi is wrong, and that the FBI has been sent to the person's location. For added legitimacy, you could write a PHP script that says "Your IP address is: xxx.xxx.xxx.xxx and has been recorded."

EVIL!

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

Thanks for your indiscreet comments and your relentless display of your superior brain. You certainly need a How-not-to-be-a-jerk101 class. I'll take my posting elsewhere.

I'd have to weigh in on this one.

Normally, I'm the first one to call someone out for being a "jerk", but I don't see anything wrong with hollystyles's post. Did you read the information in the post, and get past the manner the post was written in? If so I have a feeling you'd be rather enlightened...

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

That's acually the minimum to run Vista at it's fullest base UI experience not to actually run Vista itself. I have an R9700P that runs ok with Vista but that system does have 2 gig of ram. I suspect that an X800GT0/XL (for ATI) and an VIDA 6800GS would be the base optimal card for the best experience initially even though they aren't DX10 compliant.

This comment is entirely correct.

There is an option to turn down the graphics an incredible lot, using the Windows Classic theme. But, even still, if you were to try that theme, you'd still need a beefy system up until you got it up and running.

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

What kind of CD drive do you have? How is it connected?