473,686 Members | 3,181 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using TextBox.Text

Heres what I want to do...User types into a texbox, clicks a button, the
button saves that text to a file. The problem is that when I click the
submit button, any changes made to the textbox are lost, and it reloads what
was previously there.

Any ideas?

try
{

StreamWriter sw = new StreamWriter(sV irtualDir + @"\News.txt",fa lse);

sw.Write(TextBo x1.Text);

sw.Flush();

sw.Close();

}


Nov 17 '05 #1
5 2487
It's in the click event of the button. Below is the basic idea...
private void OnLoad(object sender, System.EventArg s e)

{

if(sender.GetTy pe()==typeof(Sy stem.Web.UI.Web Controls.TextBo x))

{

TextBox temp = (TextBox)sender ;

StreamReader sr = new StreamReader(sV irtualDir + @"\News.txt" );

temp.Text = sr.ReadToEnd();

sr.Close();

}

}

private void Submit_Click(ob ject sender, System.EventArg s e)

{

try

{

StreamWriter sw = new StreamWriter(sV irtualDir + @"\News.txt",fa lse);

sw.Write(TextBo x1.Text);

sw.Flush();

sw.Close();

}

catch(HttpExcep tion ex)

{

Response.Write( ex.Message);

}

}

"Jim Blizzard [MSFT]" <ji******@onlin e.microsoft.com > wrote in message
news:3f******** @news.microsoft .com...
Well, that's interesting. Where is the code (below) located (in other
words, what event handler is it in)? Can you post a simple repro?

Thanks,
bliz
--
Jim Blizzard | http://weblogs.asp.net/jblizzard
Sr .NET Developer Specialist
Microsoft

Your Potential. Our Passion.

This posting is provided "AS IS" with no warranties, and confers no rights. Please reply to newsgroups only, so that others may benefit. Thanks.
"Steve S" <hi***@rogersNO SPAM.com> wrote in message
news:np******** ************@ne ws01.bloor.is.n et.cable.rogers .com...
Heres what I want to do...User types into a texbox, clicks a button, the
button saves that text to a file. The problem is that when I click the
submit button, any changes made to the textbox are lost, and it reloads

what
was previously there.

Any ideas?

try
{

StreamWriter sw = new StreamWriter(sV irtualDir + @"\News.txt",fa lse);

sw.Write(TextBo x1.Text);

sw.Flush();

sw.Close();

}


Nov 17 '05 #2
Are you pre-populating TextBox1 with something? In your first post you
said, "when I click the submit button, any changes made to the textbox are
lost, and it reloads what was previously there."

How / when does the "previous" text get put in TextBox1?

Also, what are you doing with the "temp" textbox in the page_load event
handler?

bliz
--
Jim Blizzard | http://weblogs.asp.net/jblizzard
Sr .NET Developer Specialist
Microsoft

Your Potential. Our Passion.

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only, so that others may benefit. Thanks.
"Steve S" <hi***@rogersNO SPAM.com> wrote in message
news:zm******** ************@ne ws01.bloor.is.n et.cable.rogers .com...
It's in the click event of the button. Below is the basic idea...
private void OnLoad(object sender, System.EventArg s e)

{

if(sender.GetTy pe()==typeof(Sy stem.Web.UI.Web Controls.TextBo x))

{

TextBox temp = (TextBox)sender ;

StreamReader sr = new StreamReader(sV irtualDir + @"\News.txt" );

temp.Text = sr.ReadToEnd();

sr.Close();

}

}

private void Submit_Click(ob ject sender, System.EventArg s e)

{

try

{

StreamWriter sw = new StreamWriter(sV irtualDir + @"\News.txt",fa lse);

sw.Write(TextBo x1.Text);

sw.Flush();

sw.Close();

}

catch(HttpExcep tion ex)

{

Response.Write( ex.Message);

}

}

"Jim Blizzard [MSFT]" <ji******@onlin e.microsoft.com > wrote in message
news:3f******** @news.microsoft .com...
Well, that's interesting. Where is the code (below) located (in other
words, what event handler is it in)? Can you post a simple repro?

Thanks,
bliz
--
Jim Blizzard | http://weblogs.asp.net/jblizzard
Sr .NET Developer Specialist
Microsoft

Your Potential. Our Passion.

This posting is provided "AS IS" with no warranties, and confers no

rights.
Please reply to newsgroups only, so that others may benefit. Thanks.
"Steve S" <hi***@rogersNO SPAM.com> wrote in message
news:np******** ************@ne ws01.bloor.is.n et.cable.rogers .com...
Heres what I want to do...User types into a texbox, clicks a button, the button saves that text to a file. The problem is that when I click the submit button, any changes made to the textbox are lost, and it
reloads what
was previously there.

Any ideas?

try
{

StreamWriter sw = new StreamWriter(sV irtualDir + @"\News.txt",fa lse);

sw.Write(TextBo x1.Text);

sw.Flush();

sw.Close();

}



Nov 17 '05 #3
Sorry, Im new to ASP, but why does determining whether or not it's the first
run matter? When I click submit, is it not able to locally grab whats in
the textbox? If thats the case, can it be done somehow locally w/out having
to go back to the server...
"MS News (MS ILM)" <sq**********@h otmail.com> wrote in message
news:uA******** ******@tk2msftn gp13.phx.gbl...
do you do anything like that in your pageload?

if ( ! Page.IsPostBack ) // First time load or Not if vb.net ... 'then'
{

}
else
{

}
it looks like you are loading the same thing over and over again even when
you post back
"Steve S" <hi***@rogersNO SPAM.com> wrote in message
news:t4******** *************@n ews02.bloor.is. net.cable.roger s.com...
The Load event populates the textbox with data in a text file, which the
user can then change, and when the submit button is pressed the changes

are
applied and saved back to the text file. However what is happening is

that
the text gets loaded fine in OnLoad, but if I delete everything from the

box
then hit submit...the data justs gets placed back in the box as if no
changes were saved.
"Jim Blizzard [MSFT]" <ji******@onlin e.microsoft.com > wrote in message
news:3f******@n ews.microsoft.c om...
Are you pre-populating TextBox1 with something? In your first post you said, "when I click the submit button, any changes made to the textbox are lost, and it reloads what was previously there."

How / when does the "previous" text get put in TextBox1?

Also, what are you doing with the "temp" textbox in the page_load event handler?

bliz
--
Jim Blizzard | http://weblogs.asp.net/jblizzard
Sr .NET Developer Specialist
Microsoft

Your Potential. Our Passion.

This posting is provided "AS IS" with no warranties, and confers no

rights.
Please reply to newsgroups only, so that others may benefit. Thanks.
"Steve S" <hi***@rogersNO SPAM.com> wrote in message
news:zm******** ************@ne ws01.bloor.is.n et.cable.rogers .com...
> It's in the click event of the button. Below is the basic idea...
>
>
> private void OnLoad(object sender, System.EventArg s e)
>
> {
>
> if(sender.GetTy pe()==typeof(Sy stem.Web.UI.Web Controls.TextBo x))
>
> {
>
> TextBox temp = (TextBox)sender ;
>
> StreamReader sr = new StreamReader(sV irtualDir + @"\News.txt" );
>
> temp.Text = sr.ReadToEnd();
>
> sr.Close();
>
> }
>
> }
>
> private void Submit_Click(ob ject sender, System.EventArg s e)
>
> {
>
> try
>
> {
>
> StreamWriter sw = new StreamWriter(sV irtualDir + @"\News.txt",fa lse); >
> sw.Write(TextBo x1.Text);
>
> sw.Flush();
>
> sw.Close();
>
> }
>
> catch(HttpExcep tion ex)
>
> {
>
> Response.Write( ex.Message);
>
> }
>
> }
>
>
>
> "Jim Blizzard [MSFT]" <ji******@onlin e.microsoft.com > wrote in message > news:3f******** @news.microsoft .com...
> > Well, that's interesting. Where is the code (below) located (in other > > words, what event handler is it in)? Can you post a simple repro?
> >
> > Thanks,
> > bliz
> > --
> > Jim Blizzard | http://weblogs.asp.net/jblizzard
> > Sr .NET Developer Specialist
> > Microsoft
> >
> > Your Potential. Our Passion.
> >
> > This posting is provided "AS IS" with no warranties, and confers no > rights.
> > Please reply to newsgroups only, so that others may benefit. Thanks. > >
> >
> > "Steve S" <hi***@rogersNO SPAM.com> wrote in message
> > news:np******** ************@ne ws01.bloor.is.n et.cable.rogers .com... > > > Heres what I want to do...User types into a texbox, clicks a button, the
> > > button saves that text to a file. The problem is that when I click the
> > > submit button, any changes made to the textbox are lost, and it
reloads
> > what
> > > was previously there.
> > >
> > > Any ideas?
> > >
> > > try
> > > {
> > >
> > > StreamWriter sw = new StreamWriter(sV irtualDir +

@"\News.txt",fa lse);
> > >
> > > sw.Write(TextBo x1.Text);
> > >
> > > sw.Flush();
> > >
> > > sw.Close();
> > >
> > > }
> > >
> > >
> > >
> > >
> >
> >
>
>



Nov 17 '05 #4
Ahhh, I C. Thanks

Steve

"Jim Blizzard [MSFT]" <ji******@onlin e.microsoft.com > wrote in message
news:3f******** @news.microsoft .com...
Hi Steve,

You need to check to see if it's a postback. (It's a postback when the user clicks the submit button). The Page_Load event is always fired before any
Button event handling. As a result, by the time you get to your button
click handler, you've already wiped out the text in the textbox in the page load.

If it's a postback, don't populate the textbox... it contains the value from the user.

If it's not a postback, populate the textbox yourself...

See the code snipit from "MS NEWS" below.

Hope this helps!
bliz

--
Jim Blizzard | http://weblogs.asp.net/jblizzard
Sr .NET Developer Specialist
Microsoft

Your Potential. Our Passion.

This posting is provided "AS IS" with no warranties, and confers no rights. Please reply to newsgroups only, so that others may benefit. Thanks.
"Steve S" <hi***@rogersNO SPAM.com> wrote in message
news:H3******** *************@n ews02.bloor.is. net.cable.roger s.com...
Sorry, Im new to ASP, but why does determining whether or not it's the

first
run matter? When I click submit, is it not able to locally grab whats in
the textbox? If thats the case, can it be done somehow locally w/out

having
to go back to the server...
"MS News (MS ILM)" <sq**********@h otmail.com> wrote in message
news:uA******** ******@tk2msftn gp13.phx.gbl...
do you do anything like that in your pageload?

if ( ! Page.IsPostBack ) // First time load or Not if vb.net ... 'then' {

}
else
{

}
it looks like you are loading the same thing over and over again even when you post back
"Steve S" <hi***@rogersNO SPAM.com> wrote in message
news:t4******** *************@n ews02.bloor.is. net.cable.roger s.com...
> The Load event populates the textbox with data in a text file, which the > user can then change, and when the submit button is pressed the changes are
> applied and saved back to the text file. However what is happening is that
> the text gets loaded fine in OnLoad, but if I delete everything from the box
> then hit submit...the data justs gets placed back in the box as if no > changes were saved.
>
>
> "Jim Blizzard [MSFT]" <ji******@onlin e.microsoft.com > wrote in message > news:3f******@n ews.microsoft.c om...
> > Are you pre-populating TextBox1 with something? In your first post you
> > said, "when I click the submit button, any changes made to the textbox are
> > lost, and it reloads what was previously there."
> >
> > How / when does the "previous" text get put in TextBox1?
> >
> > Also, what are you doing with the "temp" textbox in the page_load

event
> > handler?
> >
> > bliz
> > --
> > Jim Blizzard | http://weblogs.asp.net/jblizzard
> > Sr .NET Developer Specialist
> > Microsoft
> >
> > Your Potential. Our Passion.
> >
> > This posting is provided "AS IS" with no warranties, and confers
no > rights.
> > Please reply to newsgroups only, so that others may benefit. Thanks. > >
> >
> > "Steve S" <hi***@rogersNO SPAM.com> wrote in message
> > news:zm******** ************@ne ws01.bloor.is.n et.cable.rogers .com... > > > It's in the click event of the button. Below is the basic idea... > > >
> > >
> > > private void OnLoad(object sender, System.EventArg s e)
> > >
> > > {
> > >
> > > if(sender.GetTy pe()==typeof(Sy stem.Web.UI.Web Controls.TextBo x))
> > >
> > > {
> > >
> > > TextBox temp = (TextBox)sender ;
> > >
> > > StreamReader sr = new StreamReader(sV irtualDir + @"\News.txt" );
> > >
> > > temp.Text = sr.ReadToEnd();
> > >
> > > sr.Close();
> > >
> > > }
> > >
> > > }
> > >
> > > private void Submit_Click(ob ject sender, System.EventArg s e)
> > >
> > > {
> > >
> > > try
> > >
> > > {
> > >
> > > StreamWriter sw = new StreamWriter(sV irtualDir +

@"\News.txt",fa lse);
> > >
> > > sw.Write(TextBo x1.Text);
> > >
> > > sw.Flush();
> > >
> > > sw.Close();
> > >
> > > }
> > >
> > > catch(HttpExcep tion ex)
> > >
> > > {
> > >
> > > Response.Write( ex.Message);
> > >
> > > }
> > >
> > > }
> > >
> > >
> > >
> > > "Jim Blizzard [MSFT]" <ji******@onlin e.microsoft.com > wrote in

message
> > > news:3f******** @news.microsoft .com...
> > > > Well, that's interesting. Where is the code (below) located (in other
> > > > words, what event handler is it in)? Can you post a simple repro? > > > >
> > > > Thanks,
> > > > bliz
> > > > --
> > > > Jim Blizzard | http://weblogs.asp.net/jblizzard
> > > > Sr .NET Developer Specialist
> > > > Microsoft
> > > >
> > > > Your Potential. Our Passion.
> > > >
> > > > This posting is provided "AS IS" with no warranties, and confers no
> > > rights.
> > > > Please reply to newsgroups only, so that others may benefit.

Thanks.
> > > >
> > > >
> > > > "Steve S" <hi***@rogersNO SPAM.com> wrote in message
> > > >

news:np******** ************@ne ws01.bloor.is.n et.cable.rogers .com...
> > > > > Heres what I want to do...User types into a texbox, clicks a
button,
> > the
> > > > > button saves that text to a file. The problem is that when
I click
> > the
> > > > > submit button, any changes made to the textbox are lost, and

it > > reloads
> > > > what
> > > > > was previously there.
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > try
> > > > > {
> > > > >
> > > > > StreamWriter sw = new StreamWriter(sV irtualDir +
> @"\News.txt",fa lse);
> > > > >
> > > > > sw.Write(TextBo x1.Text);
> > > > >
> > > > > sw.Flush();
> > > > >
> > > > > sw.Close();
> > > > >
> > > > > }
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 17 '05 #5
You're welcome. Thanks for using the newsgroups!
--
Jim Blizzard | http://weblogs.asp.net/jblizzard
Sr .NET Developer Evangelist
Microsoft

Your Potential. Our Passion.

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only, so that others may benefit. Thanks.
--------------------
From: "Steve S" <hi***@rogersNO SPAM.com>
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
Subject: Re: Using TextBox.Text

Ahhh, I C. Thanks

Steve

"Jim Blizzard [MSFT]" <ji******@onlin e.microsoft.com > wrote in message
news:3f******* *@news.microsof t.com...
Hi Steve,

You need to check to see if it's a postback. (It's a postback when the

user
clicks the submit button). The Page_Load event is always fired before any
Button event handling. As a result, by the time you get to your button
click handler, you've already wiped out the text in the textbox in the

page
load.

If it's a postback, don't populate the textbox... it contains the value

from
the user.

If it's not a postback, populate the textbox yourself...

See the code snipit from "MS NEWS" below.

Hope this helps!
bliz

--
Jim Blizzard | http://weblogs.asp.net/jblizzard
Sr .NET Developer Specialist
Microsoft

Your Potential. Our Passion.

This posting is provided "AS IS" with no warranties, and confers no

rights.
Please reply to newsgroups only, so that others may benefit. Thanks.
"Steve S" <hi***@rogersNO SPAM.com> wrote in message
news:H3******** *************@n ews02.bloor.is. net.cable.roger s.com...
> Sorry, Im new to ASP, but why does determining whether or not it's the

first
> run matter? When I click submit, is it not able to locally grab whatsin > the textbox? If thats the case, can it be done somehow locally w/out

having
> to go back to the server...
>
>
> "MS News (MS ILM)" <sq**********@h otmail.com> wrote in message
> news:uA******** ******@tk2msftn gp13.phx.gbl...
> > do you do anything like that in your pageload?
> >
> > if ( ! Page.IsPostBack ) // First time load or Not if vb.net ...'then' > > {
> >
> > }
> > else
> > {
> >
> > }
> > it looks like you are loading the same thing over and over again even

when
> > you post back
> >
> >
> > "Steve S" <hi***@rogersNO SPAM.com> wrote in message
> > news:t4******** *************@n ews02.bloor.is. net.cable.roger s.com...
> > > The Load event populates the textbox with data in a text file, which the
> > > user can then change, and when the submit button is pressed the

changes
> > are
> > > applied and saved back to the text file. However what is happeningis > > that
> > > the text gets loaded fine in OnLoad, but if I delete everything
from
the
> > box
> > > then hit submit...the data justs gets placed back in the box as ifno > > > changes were saved.
> > >
> > >
> > > "Jim Blizzard [MSFT]" <ji******@onlin e.microsoft.com > wrote inmessage > > > news:3f******@n ews.microsoft.c om...
> > > > Are you pre-populating TextBox1 with something? In your firstpost > you
> > > > said, "when I click the submit button, any changes made to the

textbox
> > are
> > > > lost, and it reloads what was previously there."
> > > >
> > > > How / when does the "previous" text get put in TextBox1?
> > > >
> > > > Also, what are you doing with the "temp" textbox in the page_load
> event
> > > > handler?
> > > >
> > > > bliz
> > > > --
> > > > Jim Blizzard | http://weblogs.asp.net/jblizzard
> > > > Sr .NET Developer Specialist
> > > > Microsoft
> > > >
> > > > Your Potential. Our Passion.
> > > >
> > > > This posting is provided "AS IS" with no warranties, and confersno > > > rights.
> > > > Please reply to newsgroups only, so that others may benefit.Thanks. > > > >
> > > >
> > > > "Steve S" <hi***@rogersNO SPAM.com> wrote in message
> > > >news:zm******* *************@n ews01.bloor.is. net.cable.roger s.com... > > > > > It's in the click event of the button. Below is the basicidea... > > > > >
> > > > >
> > > > > private void OnLoad(object sender, System.EventArg s e)
> > > > >
> > > > > {
> > > > >
> > > > > if(sender.GetTy pe()==typeof(Sy stem.Web.UI.Web Controls.TextBo x))
> > > > >
> > > > > {
> > > > >
> > > > > TextBox temp = (TextBox)sender ;
> > > > >
> > > > > StreamReader sr = new StreamReader(sV irtualDir + @"\News.txt" );
> > > > >
> > > > > temp.Text = sr.ReadToEnd();
> > > > >
> > > > > sr.Close();
> > > > >
> > > > > }
> > > > >
> > > > > }
> > > > >
> > > > > private void Submit_Click(ob ject sender, System.EventArg s e)
> > > > >
> > > > > {
> > > > >
> > > > > try
> > > > >
> > > > > {
> > > > >
> > > > > StreamWriter sw = new StreamWriter(sV irtualDir +
> @"\News.txt",fa lse);
> > > > >
> > > > > sw.Write(TextBo x1.Text);
> > > > >
> > > > > sw.Flush();
> > > > >
> > > > > sw.Close();
> > > > >
> > > > > }
> > > > >
> > > > > catch(HttpExcep tion ex)
> > > > >
> > > > > {
> > > > >
> > > > > Response.Write( ex.Message);
> > > > >
> > > > > }
> > > > >
> > > > > }
> > > > >
> > > > >
> > > > >
> > > > > "Jim Blizzard [MSFT]" <ji******@onlin e.microsoft.com > wrote in
> message
> > > > > news:3f******** @news.microsoft .com...
> > > > > > Well, that's interesting. Where is the code (below) located(in > > other
> > > > > > words, what event handler is it in)? Can you post a simple

repro?
> > > > > >
> > > > > > Thanks,
> > > > > > bliz
> > > > > > --
> > > > > > Jim Blizzard | http://weblogs.asp.net/jblizzard
> > > > > > Sr .NET Developer Specialist
> > > > > > Microsoft
> > > > > >
> > > > > > Your Potential. Our Passion.
> > > > > >
> > > > > > This posting is provided "AS IS" with no warranties, andconfers > no
> > > > > rights.
> > > > > > Please reply to newsgroups only, so that others may benefit.
> Thanks.
> > > > > >
> > > > > >
> > > > > > "Steve S" <hi***@rogersNO SPAM.com> wrote in message
> > > > > >
> news:np******** ************@ne ws01.bloor.is.n et.cable.rogers .com...
> > > > > > > Heres what I want to do...User types into a texbox, clicks
a > > button,
> > > > the
> > > > > > > button saves that text to a file. The problem is that when

I > > click
> > > > the
> > > > > > > submit button, any changes made to the textbox are lost,

and it
> > > > reloads
> > > > > > what
> > > > > > > was previously there.
> > > > > > >
> > > > > > > Any ideas?
> > > > > > >
> > > > > > > try
> > > > > > > {
> > > > > > >
> > > > > > > StreamWriter sw = new StreamWriter(sV irtualDir +
> > > @"\News.txt",fa lse);
> > > > > > >
> > > > > > > sw.Write(TextBo x1.Text);
> > > > > > >
> > > > > > > sw.Flush();
> > > > > > >
> > > > > > > sw.Close();
> > > > > > >
> > > > > > > }
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>




Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1878
by: Sporke13 | last post by:
I have used stored procedures to insert and select but for some reason I can not get this code to update records. Please help I must have made a dumb mistake STORED PROCEDURE CREATE Procedure OrdersAddDetail ( @fname nvarchar(50), @lnametxt nvarchar(50), @add1 nvarchar(50), @add2 nvarchar(50),
1
6421
by: ratnakarp | last post by:
Hi, I have a search text box. The user enters the value in the text box and click on enter button. In code behind on button click i'm writing the code to get the values from the database and binding it to a repeater control. This repeater control has multiple text boxes and buttons. Can you please tell me how can i do paging in this case ? I'm posting my code below. The problem is that if i click on "AdjustThisAd" button, it opens...
3
5332
by: Rob | last post by:
Hi all, I am having trouble converting the code below (found on http://vbnet.mvps.org/index.html?code/core/sendmessage.htm) into a format that will work using vb .NET. Can anyone have a look at it and let me know what I need to change. I have tried changing the "hwnd" type into intptr's but there seem to be other problems too, like it won't allow "lParam As Any" to be declared.
3
6039
by: sck10 | last post by:
Hello, I am creating a form for users to enter information about a lab and the members of the lab. I have one form (FormView) that they use to enter information about that lab. The keyvalue is "LabLocation_ID". With an existing lab, they then need to add the members for that lab. So, what I am trying to do is the following. With the FormView of the Lab open, the user will click a button to open a FormView (InsertMode) and add a new...
0
2200
by: Metal2You | last post by:
I'm working on an ASP.NET 2.0 application in Visual Studio 2005 that accesses a Sybase database back end. We're using Sybase SQL Anywhere 9.0.2.3228. I have installed and registered the Sybase .NET 2.0 DataProvider (iAnywhere.Data.AsaClient.dll) into the GAC so it can be used in the ProviderName property of a SQLDataSource and loads properly at run time. The application I'm writing is a bit more complex than the example I'm about to...
5
3086
by: Mukesh | last post by:
Hi i want to use AJAX.net in my Existing Application I have already installed the ajax .net ..net 3.0 and using VS 2005 in the old application i have added a new web form then script manager and then update panel and some control in it to test it. When i run the programme ir does not work . imean ajax does not works
0
2772
by: Sister Ray | last post by:
I'm trying to create a simple form that sends an email using my company's exchange server. I'm using the System.Net.Mail Namespace of the .net framework 2.0. I've googled everywhere and i think my code is ok, however i keep getting a "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond" error every time. Any...
2
3877
by: toddw607 | last post by:
Hi all! I am attempting to bring an SQL Server table into ASP.NET using the datagrid . I have set all cells to be a text box by which the user can just click on and edit the cell. I have a save button and when I click the save button the page reloads and the new data is in the cell, however when I close out and come back in the data is no longer there. I have a databind() subroutine which includes a postback included within my code for...
12
4703
by: brwalias | last post by:
Hi, using .net 2 sql server 2005 Here is my situation: I'm passing a variable in the url from a selection on Page A and need to display the results on the Results page be based on that variable in the url. I would like that variable to trigger a stored and
6
2272
by: IReallyNeedHelp | last post by:
I have saved the questions using AddQuestion.aspx page i have created but i don't know how to display it and calculate their score. this is the formview i have done, but there is some error <asp:FormView ID="FormView1" runat="server" DataKeyNames="QuestionID" DataSourceID="SqlDataSource1" Width="151px" AllowPaging="True"> <EditItemTemplate> QuestionID: ...
0
8581
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8932
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8778
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7598
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6439
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2944
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2205
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.