Showing posts with label example. Show all posts
Showing posts with label example. Show all posts

Thursday, March 29, 2012

Newbie - Where Can I find?

Hi Group,

Just wondering if anybody could point me in the direction of a link where I
could download some example ASP .Net pages which would allow me to Add,
Modify, Delete Tables for a SQL Database. I mean what im looking for is a
example which will explain how I do it?

Either that of some links for some how-to guides

Many Thanks
WizardThe Microsoft .Net SDK is the single best reference, and is filled with
articles, tutorials, samples, and an awesome reference. Best of all, it's
free!

http://www.microsoft.com/downloads/...&displaylang=en

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Wizard" <Wizard@.Wizard.com> wrote in message
news:FwOdnWFoi4VXCUDcSa8jmA@.karoo.co.uk...
> Hi Group,
> Just wondering if anybody could point me in the direction of a link where
> I
> could download some example ASP .Net pages which would allow me to Add,
> Modify, Delete Tables for a SQL Database. I mean what im looking for is a
> example which will explain how I do it?
> Either that of some links for some how-to guides
> Many Thanks
> Wizard
Download the Microsoft Web Data Administrator:
http://www.microsoft.com/downloads/...&displaylang=en

The Web Data Administrator is a utility program
implemented in ASP.NET that enables you to
easily manage your SQL Server data.

Using its built-in features, you can do the following
from Internet Explorer or your favorite Web browser:

Create and edit databases in Microsoft SQL Server 2000
or Microsoft SQL Server 2000 Desktop Engine (MSDE)

Perform ad-hoc queries against databases
and save them to your file system

Export and import database schema and data

--000--

Source code is included, so you can easily study it
and develop your own tools using it as a code example.

Juan T. Llibre
ASP.NET MVP
===========
"Wizard" <Wizard@.Wizard.com> wrote in message
news:FwOdnWFoi4VXCUDcSa8jmA@.karoo.co.uk...
> Hi Group,
> Just wondering if anybody could point me in the direction of a link where
> I
> could download some example ASP .Net pages which would allow me to Add,
> Modify, Delete Tables for a SQL Database. I mean what im looking for is a
> example which will explain how I do it?
> Either that of some links for some how-to guides
> Many Thanks
> Wizard

--
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.794 / Virus Database: 538 - Release Date: 11/10/2004

Newbie - Where Can I find?

Hi Group,
Just wondering if anybody could point me in the direction of a link where I
could download some example ASP .Net pages which would allow me to Add,
Modify, Delete Tables for a SQL Database. I mean what im looking for is a
example which will explain how I do it?
Either that of some links for some how-to guides
Many Thanks
WizardThe Microsoft .Net SDK is the single best reference, and is filled with
articles, tutorials, samples, and an awesome reference. Best of all, it's
free!
http://www.microsoft.com/downloads/...&displaylang=en
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.
"Wizard" <Wizard@.Wizard.com> wrote in message
news:FwOdnWFoi4VXCUDcSa8jmA@.karoo.co.uk...
> Hi Group,
> Just wondering if anybody could point me in the direction of a link where
> I
> could download some example ASP .Net pages which would allow me to Add,
> Modify, Delete Tables for a SQL Database. I mean what im looking for is a
> example which will explain how I do it?
> Either that of some links for some how-to guides
> Many Thanks
> Wizard
>
Download the Microsoft Web Data Administrator:
http://www.microsoft.com/downloads/...&displaylang=en
The Web Data Administrator is a utility program
implemented in ASP.NET that enables you to
easily manage your SQL Server data.
Using its built-in features, you can do the following
from Internet Explorer or your favorite Web browser:
Create and edit databases in Microsoft SQL Server 2000
or Microsoft SQL Server 2000 Desktop Engine (MSDE)
Perform ad-hoc queries against databases
and save them to your file system
Export and import database schema and data
--000--
Source code is included, so you can easily study it
and develop your own tools using it as a code example.
Juan T. Llibre
ASP.NET MVP
===========
"Wizard" <Wizard@.Wizard.com> wrote in message
news:FwOdnWFoi4VXCUDcSa8jmA@.karoo.co.uk...
> Hi Group,
> Just wondering if anybody could point me in the direction of a link where
> I
> could download some example ASP .Net pages which would allow me to Add,
> Modify, Delete Tables for a SQL Database. I mean what im looking for is a
> example which will explain how I do it?
> Either that of some links for some how-to guides
> Many Thanks
> Wizard
>
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.794 / Virus Database: 538 - Release Date: 11/10/2004

Saturday, March 24, 2012

Newbie Email

Hi,

New to .Net - using the 4Guys example to send email form data via email.

I'm getting stuck though when trying to add more fields to form and therefore the actual email sent.

Any help would be grateful!!

Code below :

<script language="vb" runat="server"
Sub btnSendFeedback_Click(sender as Object, e as EventArgs)

'Create an instance of the MailMessage class
Dim objMM as New MailMessage()

'Set the properties - send the email to the person who filled out the
'feedback form.
objMM.To = "me@dotnet.itags.org.mydomain"
objMM.From = txtEmail.Text

'If you want to CC this email to someone else, uncomment the line below
'objMM.Cc = "someone@dotnet.itags.org.someaddress.com"

'If you want to BCC this email to someone else, uncomment the line below
'objMM.Bcc = "someone@dotnet.itags.org.someaddress.com"

'Send the email in text format
objMM.BodyFormat = MailFormat.Text
'(to send HTML format, change MailFormat.Text to MailFormat.Html)

'Set the priority - options are High, Low, and Normal
objMM.Priority = MailPriority.Normal

'Set the subject
objMM.Subject = "Email Test"

'Set the body
objMM.Body = txtName.Text & vbCrLf _ txtPhone.Text & vbCrLf _ txtComments.Text & vbCrLf _ txtEmail.Text

'Specify to use the default Smtp Server
SmtpMail.SmtpServer = "mymailserver"

'Now, to send the message, use the Send method of the SmtpMail class
SmtpMail.Send(objMM)

panelSendEmail.Visible = false
panelMailSent.Visible = true
End Sub

</script
<asp:panel id="panelSendEmail" runat="server">
<form runat="server">
<p>We are interested in your feedback! Please enter the following
requested information below to send us your comments.</p>
<p>Your Name:
<asp:textbox id="txtName" runat="server" /></p>
<p>Your Email Address:
<asp:textbox id="txtEmail" runat="server" /></p>
<p>Your Phone Number:
<asp:textbox id="txtPhone" runat="server" /></p>
<p>Your Message:</p>
<p><asp:textbox id="txtComments" TextMode="MultiLine"
Columns="40" Rows="10" runat="server" /></p>
<p> <asp:button runat="server" id="btnSendFeedback" Text="Send Feedback!"
OnClick="btnSendFeedback_Click" /></p>
</form>
</asp:panel>
<asp:panel id="panelMailSent" runat="server" Visible="False">
<p>An email has been sent to the email address you specified. Thanks!</p>
</asp:panel>Hi,

nice code but what exactly is the error you experience? Did the code you copied from the site of 4guys work on your system before you altered the code?

Grz, Kris.
Kris,

Many thanks for your reply...

The problem i am having (and have tried many variations to correct) is with the objMMbody and declaring what to send to the mail recepient.

If i change the code to this :

<code
'Set the body
objMM.Body = txtName.text + txtPhone.text + txtComments.text + txtEmail.text

<code/
It works fine.

But i want to be able to add headers for the form data such as "Name: txtName.text" with a CR to make it neat to the end user.

Help!!

TIA
This might help:http://www.systemwebmail.com/faq/2.8.aspx.
Thanks for the URL but this is not what i am trying to achieve as per my last post...all i think i need to know is the syntax for separating by a <CR> the form data in the email that i want to send...i have tried vbCRLF and chr13 etc but not in the correct way i think...

TIA
Hi Jezzer,

try this one out:Environment.NewLine Property.

Grz, Kris.

Newbie help! importing custom namespaces in IIS

Hi say for example if I had the following code: - how would I instantiate testclass in an aspx page. I am aware that I have to Import Namespace="tester" but do I compile test.cs into a library? and if so where on the webserver do I store it, (is stored in wwwroot\bin\)?

//test.cs
using System;
namespace tester{
public class testclass {
public String myString;
public void setMystring(){
myString = "hello world";
}
public String getString(){
return myString;
}
}

}

You help would be appreciated!
Thanks
abzI assume you aren't using Visual Studio .NET

You answered your own questions:

compile the cs file:

cs /t:library testclass.cs

and put it in your application's bin directory.

Thursday, March 22, 2012

Newbie looking for a "Simple" Example

Hi All,
I`ve downloaded loads of example and the .NET SDK but am so confuded.
Does anybody know of a Example which I could download which will show me how
to ADD, Delete, and Modify Records in a ASP page connected to a SQL Server?
Many ThanksHi Wizard,
Thanks for your posting. Regarding on this issue, I've found another
duplicated thread in this group and some other community members and I have
posted reply there. I'd appreciate if you have a look there.
In addition, if you feel convenient that we continue to discuss in that
thread, please feel free to post there.
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Newbie looking for a "Simple" Example

Hi All,
I`ve downloaded loads of example and the .NET SDK but am so confuded.
Does anybody know of a Example which I could download which will show me how
to ADD, Delete, and Modify Records in a ASP page connected to a SQL Server?
Many Thankshave a read throuhg some of the examples here:
http://www.campus.ncl.ac.uk/databases/dotnet/
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"Wizard" <test@.test.com> wrote in message
news:VgOdnTaSj4CAKXvcSa8jmw@.karoo.co.uk...
> Hi All,
> I`ve downloaded loads of example and the .NET SDK but am so confuded.
> Does anybody know of a Example which I could download which will show me
how
> to ADD, Delete, and Modify Records in a ASP page connected to a SQL
Server?
> Many Thanks
>
This may help. http://www.geocities.com/jeff_louie/datagrid.htm
Regards,
Jeff
>Does anybody know of a Example which I could download which will show
me how to ADD, Delete, and Modify Records in a ASP page connected to a
SQL Server?<
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!
Thanks for John and Jeff's informative inputs,
Hi Wizard,
The ASP.NET QuickStart's DataAccess section is also very helpful for
getting start on asp.net data manipulation.
#Data Access and Customization
http://samples.gotdotnet.com/quicks...ebdatalist.aspx
Hope also helps.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Many Thanks for you help, these links i think are excatly what i was after!
I was sure there would be something out there but after many hours of
googling i couldn`t really find anything specific.
Many Thanks again All
Wizard
"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> wrote in message
news:RmlE9rd%23EHA.2732@.cpmsftngxa10.phx.gbl...
> Thanks for John and Jeff's informative inputs,
> Hi Wizard,
> The ASP.NET QuickStart's DataAccess section is also very helpful for
> getting start on asp.net data manipulation.
> #Data Access and Customization
> http://samples.gotdotnet.com/quicks...ebdatalist.aspx
> Hope also helps.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
Many Thanks for you help, these links i think are excatly what i was after!
I was sure there would be something out there but after many hours of
googling i couldn`t really find anything specific.
Many Thanks again All
Wizard
"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> wrote in message
news:RmlE9rd%23EHA.2732@.cpmsftngxa10.phx.gbl...
> Thanks for John and Jeff's informative inputs,
> Hi Wizard,
> The ASP.NET QuickStart's DataAccess section is also very helpful for
> getting start on asp.net data manipulation.
> #Data Access and Customization
> http://samples.gotdotnet.com/quicks...ebdatalist.aspx
> Hope also helps.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
Thanks for your reply,
Glad that our suggestions are of assistance.
Good luck!
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Newbie looking for a "Simple" Example

Hi All,

I`ve downloaded loads of example and the .NET SDK but am so confuded.

Does anybody know of a Example which I could download which will show me how
to ADD, Delete, and Modify Records in a ASP page connected to a SQL Server?

Many ThanksHi Wizard,

Thanks for your posting. Regarding on this issue, I've found another
duplicated thread in this group and some other community members and I have
posted reply there. I'd appreciate if you have a look there.
In addition, if you feel convenient that we continue to discuss in that
thread, please feel free to post there.
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Newbie looking for a "Simple" Example

Hi All,

I`ve downloaded loads of example and the .NET SDK but am so confuded.

Does anybody know of a Example which I could download which will show me how
to ADD, Delete, and Modify Records in a ASP page connected to a SQL Server?

Many Thankshave a read throuhg some of the examples here:

http://www.campus.ncl.ac.uk/databases/dotnet/

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Wizard" <test@.test.com> wrote in message
news:VgOdnTaSj4CAKXvcSa8jmw@.karoo.co.uk...
> Hi All,
> I`ve downloaded loads of example and the .NET SDK but am so confuded.
> Does anybody know of a Example which I could download which will show me
how
> to ADD, Delete, and Modify Records in a ASP page connected to a SQL
Server?
> Many Thanks
This may help. http://www.geocities.com/jeff_louie/datagrid.htm

Regards,
Jeff
>Does anybody know of a Example which I could download which will show
me how to ADD, Delete, and Modify Records in a ASP page connected to a
SQL Server?<

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Thanks for John and Jeff's informative inputs,

Hi Wizard,

The ASP.NET QuickStart's DataAccess section is also very helpful for
getting start on asp.net data manipulation.

#Data Access and Customization
http://samples.gotdotnet.com/quicks...ebdatalist.aspx

Hope also helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Many Thanks for you help, these links i think are excatly what i was after!

I was sure there would be something out there but after many hours of
googling i couldn`t really find anything specific.

Many Thanks again All

Wizard

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> wrote in message
news:RmlE9rd%23EHA.2732@.cpmsftngxa10.phx.gbl...
> Thanks for John and Jeff's informative inputs,
> Hi Wizard,
> The ASP.NET QuickStart's DataAccess section is also very helpful for
> getting start on asp.net data manipulation.
> #Data Access and Customization
> http://samples.gotdotnet.com/quicks...ebdatalist.aspx
> Hope also helps.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Many Thanks for you help, these links i think are excatly what i was after!

I was sure there would be something out there but after many hours of
googling i couldn`t really find anything specific.

Many Thanks again All

Wizard

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> wrote in message
news:RmlE9rd%23EHA.2732@.cpmsftngxa10.phx.gbl...
> Thanks for John and Jeff's informative inputs,
> Hi Wizard,
> The ASP.NET QuickStart's DataAccess section is also very helpful for
> getting start on asp.net data manipulation.
> #Data Access and Customization
> http://samples.gotdotnet.com/quicks...ebdatalist.aspx
> Hope also helps.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Thanks for your reply,

Glad that our suggestions are of assistance.
Good luck!

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)