Showing posts with label server. Show all posts
Showing posts with label server. Show all posts

Wednesday, March 28, 2012

Things only work in development machine not in "REAL" web server

This summary is not available. Please click here to view the post.

Third Party Import Library?

Does anyone know of (or can you recommend) a third party product that
can:
- read from a comma-delimited flat file, and import the data into
SQL server or XML
- Allow users (using a simple interface) to map fields in the flat
file to the SQL db
- Allow concatenation or breaking down of fields in the flat file
to map them to fields in the DB
Of course we could write our own code to do this, but we need to
get this project out as soon as possible.
Please let me know any leads you may have.
Thanks!
Posted Via mcse.ms Premium Usenet Newsgroup Services
----
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----
http://www.mcse.msSure, Microsoft Access and Microsoft Excel can both do all you require :)
Import the file, map the fields to a linked sql server database table(s) and
if
you need to, you can use VBA to do the breaking down of the fields ...
Mythran
"cjones42" <sarophes@.yahoo-dot-com.no-spam.invalid> wrote in message
news:40dc5b1b_2@.mcse.ms...
> Does anyone know of (or can you recommend) a third party product that
> can:
> - read from a comma-delimited flat file, and import the data into
> SQL server or XML
> - Allow users (using a simple interface) to map fields in the flat
> file to the SQL db
> - Allow concatenation or breaking down of fields in the flat file
> to map them to fields in the DB
> Of course we could write our own code to do this, but we need to
> get this project out as soon as possible.
> Please let me know any leads you may have.
> Thanks!
>
> Posted Via mcse.ms Premium Usenet Newsgroup Services
> ----
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----
> http://www.mcse.ms

Third Party Import Library?

Does anyone know of (or can you recommend) a third party product that
can:
- read from a comma-delimited flat file, and import the data into
SQL server or XML
- Allow users (using a simple interface) to map fields in the flat
file to the SQL db
- Allow concatenation or breaking down of fields in the flat file
to map them to fields in the DB

Of course we could write our own code to do this, but we need to
get this project out as soon as possible.
Please let me know any leads you may have.

Thanks!

Posted Via Usenet.com Premium Usenet Newsgroup Services
------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
------------------
http://www.usenet.comSure, Microsoft Access and Microsoft Excel can both do all you require :)

Import the file, map the fields to a linked sql server database table(s) and if
you need to, you can use VBA to do the breaking down of the fields ...

Mythran

"cjones42" <sarophes@.yahoo-dot-com.no-spam.invalid> wrote in message
news:40dc5b1b_2@.Usenet.com...
> Does anyone know of (or can you recommend) a third party product that
> can:
> - read from a comma-delimited flat file, and import the data into
> SQL server or XML
> - Allow users (using a simple interface) to map fields in the flat
> file to the SQL db
> - Allow concatenation or breaking down of fields in the flat file
> to map them to fields in the DB
> Of course we could write our own code to do this, but we need to
> get this project out as soon as possible.
> Please let me know any leads you may have.
> Thanks!
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ------------------
> http://www.usenet.com

Monday, March 26, 2012

This is for the nth time I am posting. Is there no one to help!

This is how the presentation code look like. If I use
runat = server, ie; when I try to use onserverclick on the
button the javascript doesn't work . The displayanswers
method in the form returns a string of html text,basically
a table with radiobuttons or checkboxes aligned in it.

<form id="frmQuestion" method="post"
<ASP:DataList id="Questions" ShowHeader="false"
ShowFooter="false" runat="server" >
<ItemTemplate>
<TABLE ALIGN="left" >
<td
<asp:Label runat="server" Text='<%# DataBinder.Eval
(Container.DataItem, "MainQuestion_ID")%> '
ID="QuestionID" NAME="QuestionID">
</asp:Label
</td
<td
<asp:Label runat="server" Text='<%# DataBinder.Eval
(Container.DataItem, "MainQuestion_Txt")%>'
ID="QuestionTxt" NAME="QuestionTxt">
</asp:Label
</td
<td
<%# DisplayAnswers(DataBinder.Eval
(Container.DataItem, "MainQuestion_ID"),DataBinder.Eval
(Container.DataItem, "QuestionTypeID")) %
</td>
</tr></TABLE>
</ItemTemplate>
</ASP:DataList
<table align=right >
<tr><td
<a id=btnForward href="http://links.10026.com/?link=#"
onMouseOut="bforward.src='images/bforward.gif';"
onMouseOver="bforward.src='images/bforward_f2.gif';"
runat=server onclick="return validate();"><IMG
SRC="images/bforward.gif" ALT="" NAME="bforward"
ID="bforward" WIDTH="78" HEIGHT="24" BORDER="0"></A
</td></tr></table
I would like to retrieve the question id and the answer
(user-input) at the same time on click of the button. The
questionaire is paginated and this is the only form i am
using.

The code behind looks somewhat this way:

Sub Page_Load(ByVal Sender As Object, ByVal E As
EventArgs)

Dim oDt As DataTable
Dim oQuestion As Question ('This is the class
in my business layer)
oQuestion = New Question

Questions.DataSource = New DataView(oDt)
Questions.DataBind()

End Sub

What is the best way to handle Questionaire(online test)
projects . Can I display questions and answers at the same
time and how do I get questionid's and user-input to
insert into the database. There can be subquestions

From: "Corey Wineman" <cwineman@dotnet.itags.org.no-spam-adelphia.net
Maybe you could post some code. Its hard to tell what your
problem is from
you message which you have posted several times.

"ani" <anonymous@dotnet.itags.org.discussions.microsoft.com> wrote in
message
news:01b601c3a3ce$cbdc78c0$a401280a@dotnet.itags.org.phx.gbl...
> I have a datalist control in my aspx page(this is
> paginated and everytime submits to itself). I am calling
a
> function within my datalist that returns a html control
> (radio button ) in the form of the string. I also have
asp
> server controls(labels) in the datalist. When the form is
> processed, I am retrieving the values of the radio
buttons
> through Request.form. To retrieve the values of the asp
> server controls , I am using FindControl method. But this
> is written in the Page_Load method, so it returns the
> values of the current page before the page gets
submitted.
> I want the values after the page gets submitted. How do I
> retrieve them.
> If I use onserverclick on my button (which is a html
> control with rollover capability <a href>) , the onclick
> doesn't work fine for validating the html controls. I
> don't have runat=server on my form tag when I have
onclick
> attribute on the button. I am new to asp.net. I am not
> able to use both onclick and onserverclick at the same
> time. Why is it so..
> Please help!!

..I am guessing that your problem is with the <a href="http://links.10026.com/?link=#"
portion of your code. The problem is that you have a
runat=server on this control. The OnClick for the <a>
will then submit to the server, not to the javascript on
the client side. If you take that out, you should be
fine.

If you want to do validation on the click of the link,
you will need to put a custom validator in there.

I hope this helps

>--Original Message--
>This is how the presentation code look like. If I use
>runat = server, ie; when I try to use onserverclick on
the
>button the javascript doesn't work . The displayanswers
>method in the form returns a string of html
text,basically
>a table with radiobuttons or checkboxes aligned in it.
><form id="frmQuestion" method="post" >
><ASP:DataList id="Questions" ShowHeader="false"
>ShowFooter="false" runat="server" >
><ItemTemplate>
><TABLE ALIGN="left" >
><td>
> <asp:Label runat="server" Text='<%# DataBinder.Eval
>(Container.DataItem, "MainQuestion_ID")%> '
>ID="QuestionID" NAME="QuestionID">
> </asp:Label>
></td>
><td>
> <asp:Label runat="server" Text='<%# DataBinder.Eval
>(Container.DataItem, "MainQuestion_Txt")%>'
>ID="QuestionTxt" NAME="QuestionTxt">
> </asp:Label>
></td>
><td >
><%# DisplayAnswers(DataBinder.Eval
>(Container.DataItem, "MainQuestion_ID"),DataBinder.Eval
>(Container.DataItem, "QuestionTypeID")) %>
></td>
></tr></TABLE>
></ItemTemplate>
></ASP:DataList>
><table align=right >
><tr><td>
> <a id=btnForward href="http://links.10026.com/?link=#"
>onMouseOut="bforward.src='images/bforward.gif';"
>onMouseOver="bforward.src='images/bforward_f2.gif';"
>runat=server onclick="return validate();"><IMG
>SRC="images/bforward.gif" ALT="" NAME="bforward"
>ID="bforward" WIDTH="78" HEIGHT="24" BORDER="0"></A>
></td></tr></table>
>
>I would like to retrieve the question id and the answer
>(user-input) at the same time on click of the button.
The
>questionaire is paginated and this is the only form i am
>using.
>The code behind looks somewhat this way:
> Sub Page_Load(ByVal Sender As Object, ByVal E As
>EventArgs)
>
> Dim oDt As DataTable
> Dim oQuestion As Question ('This is the
class
>in my business layer)
> oQuestion = New Question
> Questions.DataSource = New DataView(oDt)
> Questions.DataBind()
>
>End Sub
>
>What is the best way to handle Questionaire(online test)
>projects . Can I display questions and answers at the
same
>time and how do I get questionid's and user-input to
>insert into the database. There can be subquestions
>
>From: "Corey Wineman" <cwineman@.no-spam-adelphia.net>
>Maybe you could post some code. Its hard to tell what
your
>problem is from
>you message which you have posted several times.
>
>"ani" <anonymous@.discussions.microsoft.com> wrote in
>message
>news:01b601c3a3ce$cbdc78c0$a401280a@.phx.gbl...
>> I have a datalist control in my aspx page(this is
>> paginated and everytime submits to itself). I am
calling
>a
>> function within my datalist that returns a html control
>> (radio button ) in the form of the string. I also have
>asp
>> server controls(labels) in the datalist. When the form
is
>> processed, I am retrieving the values of the radio
>buttons
>> through Request.form. To retrieve the values of the asp
>> server controls , I am using FindControl method. But
this
>> is written in the Page_Load method, so it returns the
>> values of the current page before the page gets
>submitted.
>> I want the values after the page gets submitted. How
do I
>> retrieve them.
>> If I use onserverclick on my button (which is a html
>> control with rollover capability <a href>) , the
onclick
>> doesn't work fine for validating the html controls. I
>> don't have runat=server on my form tag when I have
>onclick
>> attribute on the button. I am new to asp.net. I am not
>> able to use both onclick and onserverclick at the same
>> time. Why is it so..
>>
>> Please help!!
>>
>..
>
>.

This is really weird...

I've got a search on my site that runs off index server.. it works well enough but has something very strange going on - it only returns results for certain searches if the seach words are in uppercase..

Now - rather than try to figure out what was going on, I just converted the search terms to upper case in my asp.net script.. it still didn't work.

Next option - transform all text in the search box to uppercase using css..

still doesn't work?

It's really odd - I've got a text box that can only display uppercase letters yet the search returns different results if I have caps lock on or off. And, as I say, I'm also converting the text to uppercase before I chuck it into my sql..

It's almost as if there's another bit of info being sent - namely that I have caps lock on??

Am I missing something completely obvious here?

Any ideas?

Thanks.The index search should be case insensitive, so I am doubtful that has anything to do with it.

Can you provide the pertinent code surround the actual query execution?

Terri

this is strange....

Hey

asp.net 2.0

My problem is that the image web server control (see below) won't display
the image if web.config have this setting:
<authorization>
<deny users="?" />
</authorization>

<asp:Image ID="logo" runat="server" ImageUrl="~/logo.png" />

Any ideas what I should do to solve this so the image is displayed if
web.config have
<authorization>
<deny users="?" />
</authorization>

Best Regards!

JeffThis web page uses a theme

and it looks like the page can't use the theme either if
<authorization>
<deny users="?" />
</authorization>

<pages theme="Standard" maintainScrollPositionOnPostBack="true"></pages>

any suggestions?

"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
news:OFg7n$w4GHA.1460@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

Hey
>
asp.net 2.0
>
My problem is that the image web server control (see below) won't display
the image if web.config have this setting:
<authorization>
<deny users="?" />
</authorization>
>
<asp:Image ID="logo" runat="server" ImageUrl="~/logo.png" />
>
Any ideas what I should do to solve this so the image is displayed if
web.config have
<authorization>
<deny users="?" />
</authorization>
>
>
Best Regards!
>
Jeff
>


"?" stands for anonymous users and "*" for all users. So,

<allow users="Jv"/>
<deny users="?"/>

will allow user "Jv" but deny all anonymous users. You can use to separate
multiple identiies.

<allow users="Jv, Kylin"/>
<deny users="?"/>

"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message news:OjhGjTx4GHA.4352@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

This web page uses a theme
>
and it looks like the page can't use the theme either if
<authorization>
<deny users="?" />
</authorization>
>
<pages theme="Standard" maintainScrollPositionOnPostBack="true"></pages>
>
any suggestions?
>
>
"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message news:OFg7n$w4GHA.1460@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

>Hey
>>
>asp.net 2.0
>>
>My problem is that the image web server control (see below) won't display the image if web.config have this setting:
><authorization>
> <deny users="?" />
></authorization>
>>
><asp:Image ID="logo" runat="server" ImageUrl="~/logo.png" />
>>
>Any ideas what I should do to solve this so the image is displayed if web.config have
><authorization>
> <deny users="?" />
></authorization>
>>
>>
>Best Regards!
>>
>Jeff
>>


>
>


thanks!

"Jon Paal" <Jon[ nospam ]Paal @. everywhere dot comwrote in message
news:OIVEUIz4GHA.3512@.TK2MSFTNGP04.phx.gbl...

Quote:

Originally Posted by

"?" stands for anonymous users and "*" for all users. So,
>
<allow users="Jv"/>
<deny users="?"/>
>
will allow user "Jv" but deny all anonymous users. You can use to separate
multiple identiies.
>
<allow users="Jv, Kylin"/>
<deny users="?"/>
>
>
>
"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
news:OjhGjTx4GHA.4352@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

>This web page uses a theme
>>
>and it looks like the page can't use the theme either if
><authorization>
> <deny users="?" />
></authorization>
>>
><pages theme="Standard" maintainScrollPositionOnPostBack="true"></pages>
>>
>any suggestions?
>>
>>
>"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
>news:OFg7n$w4GHA.1460@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

>>Hey
>>>
>>asp.net 2.0
>>>
>>My problem is that the image web server control (see below) won't
>>display the image if web.config have this setting:
>><authorization>
>> <deny users="?" />
>></authorization>
>>>
>><asp:Image ID="logo" runat="server" ImageUrl="~/logo.png" />
>>>
>>Any ideas what I should do to solve this so the image is displayed if
>>web.config have
>><authorization>
>> <deny users="?" />
>></authorization>
>>>
>>>
>>Best Regards!
>>>
>>Jeff
>>>


>>
>>


>
>

This mail server requires authentication when attempting to send to a non-local e-mail add

This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.

the best resource for email with asp.net (IMHO)

http://www.systemnetmail.com/


You will need to authenticate to send an email. Here's how:

http://www.systemnetmail.com/faq/4.2.aspx


Thanks

but when i try to send mail using my username and password it send correctly but when i use my other account like yahoo and hotmail it fail and this exception generates

User not local; please try a different path. The server response was: Sender address is not valid for your login. Check your email program settings.

Thanks in advance

Irfan Ullah


Did you figure this out?

Saturday, March 24, 2012

This message has been blocked for your safety

Have you tried to click on "Learn more" ?!!!

It looks like you are using a software (not sure if this is a server side
firewall software or if you try to read the message in a client) that
consider this as a potential threat. IMO your best is to look for support at
this third party product site as it looks like this issue is not related to
..NET...

--
Patrice

"Jassim Rahma" <jrahma@dotnet.itags.org.hotmail.coma crit dans le message de news:
F12C8C18-20DE-4A06-A415-2FC181265544@dotnet.itags.org.microsoft.com...

Quote:

Originally Posted by

>I am getting this message when sending using System.Net.Mail... I have
attached the print screen and here is the complete code:
>
NetworkCredential network_credential = new
NetworkCredential("info@dotnet.itags.org.zatoor.com", "xxxxxx");
MailMessage mail_message = new MailMessage();
// SmtpClient smtp_client = new SmtpClient("localhost");
SmtpClient smtp_client = new SmtpClient("smtp.zatoor.com");
smtp_client.UseDefaultCredentials = false;
smtp_client.Port = 25;
smtp_client.Credentials = network_credential;
>
string html_message = null;
>
html_message = "<html>";
html_message += "<head>";
html_message += "<meta http-equiv=Content-Type
content='text/html; charset=windows-1252'>";
html_message += "</head>";
html_message += "<body>";
html_message += "Thank you for registering with zatoor.com
and welcome to the world of free classifieds. We hope you will enjoy using
our website.";
html_message += "<br>";
html_message += "<br><br>";
html_message += "zatoor.com Team";
html_message += "</body>";
html_message += "</html>";
>
mail_message.From = new MailAddress("info@dotnet.itags.org.zatoor.com",
"zatoor.com");
mail_message.To.Add(txtEmailAddress.Text);
mail_message.CC.Add("jrahma@dotnet.itags.org.yahoo.com");
// mail_message.Priority = MailPriority.High;
mail_message.IsBodyHtml = true;
mail_message.Subject = "welcome to zatoor.com";
mail_message.Body = html_message;
>
mail_message.DeliveryNotificationOptions =
DeliveryNotificationOptions.OnFailure;
>
smtp_client.Send(mail_message);
>

can you please expian what do you mean?

"Patrice" <http://www.chez.com/scribe/wrote in message
news:uKsNceTyHHA.4712@.TK2MSFTNGP04.phx.gbl...

Quote:

Originally Posted by

Have you tried to click on "Learn more" ?!!!
>
It looks like you are using a software (not sure if this is a server side
firewall software or if you try to read the message in a client) that
consider this as a potential threat. IMO your best is to look for support
at this third party product site as it looks like this issue is not
related to .NET...
>
--
Patrice
>
"Jassim Rahma" <jrahma@.hotmail.coma crit dans le message de news:
F12C8C18-20DE-4A06-A415-2FC181265544@.microsoft.com...

Quote:

Originally Posted by

>>I am getting this message when sending using System.Net.Mail... I have
>attached the print screen and here is the complete code:
>>
> NetworkCredential network_credential = new
>NetworkCredential("info@.zatoor.com", "xxxxxx");
> MailMessage mail_message = new MailMessage();
> // SmtpClient smtp_client = new SmtpClient("localhost");
> SmtpClient smtp_client = new
>SmtpClient("smtp.zatoor.com");
> smtp_client.UseDefaultCredentials = false;
> smtp_client.Port = 25;
> smtp_client.Credentials = network_credential;
>>
> string html_message = null;
>>
> html_message = "<html>";
> html_message += "<head>";
> html_message += "<meta http-equiv=Content-Type
>content='text/html; charset=windows-1252'>";
> html_message += "</head>";
> html_message += "<body>";
> html_message += "Thank you for registering with zatoor.com
>and welcome to the world of free classifieds. We hope you will enjoy
>using
>our website.";
> html_message += "<br>";
> html_message += "<br><br>";
> html_message += "zatoor.com Team";
> html_message += "</body>";
> html_message += "</html>";
>>
> mail_message.From = new MailAddress("info@.zatoor.com",
>"zatoor.com");
> mail_message.To.Add(txtEmailAddress.Text);
> mail_message.CC.Add("jrahma@.yahoo.com");
> // mail_message.Priority = MailPriority.High;
> mail_message.IsBodyHtml = true;
> mail_message.Subject = "welcome to zatoor.com";
> mail_message.Body = html_message;
>>
> mail_message.DeliveryNotificationOptions =
>DeliveryNotificationOptions.OnFailure;
>>
> smtp_client.Send(mail_message);
>>


>
>


AFAIK this message is not produced by the DOTNET framework but by a third
party product that blocks the message you try to send for some reason.. In
this message you have a "Learn more" link that you could click to see why
this third party software choosed to block this transmission.

So for now it looks like to me this is not at all related to a programming
issue but to a third party software (firewall, antivirus ?)

Or is this that your mail provider replaced the screenshot by a message of
its own ;-) - Generally just reproducing the text should be enough. The
message I see is the "This message has been blocked for your safety"" whih
is not a DOTNET message...

--
Patrice

"Jassim Rahma" <jrahma@.hotmail.coma crit dans le message de news:
uOjWFueyHHA.5380@.TK2MSFTNGP04.phx.gbl...

Quote:

Originally Posted by

can you please expian what do you mean?
>
>
>
"Patrice" <http://www.chez.com/scribe/wrote in message
news:uKsNceTyHHA.4712@.TK2MSFTNGP04.phx.gbl...

Quote:

Originally Posted by

>Have you tried to click on "Learn more" ?!!!
>>
>It looks like you are using a software (not sure if this is a server side
>firewall software or if you try to read the message in a client) that
>consider this as a potential threat. IMO your best is to look for support
>at this third party product site as it looks like this issue is not
>related to .NET...
>>
>--
>Patrice
>>
>"Jassim Rahma" <jrahma@.hotmail.coma crit dans le message de news:
>F12C8C18-20DE-4A06-A415-2FC181265544@.microsoft.com...

Quote:

Originally Posted by

>>>I am getting this message when sending using System.Net.Mail... I have
>>attached the print screen and here is the complete code:
>>>
>> NetworkCredential network_credential = new
>>NetworkCredential("info@.zatoor.com", "xxxxxx");
>> MailMessage mail_message = new MailMessage();
>> // SmtpClient smtp_client = new SmtpClient("localhost");
>> SmtpClient smtp_client = new
>>SmtpClient("smtp.zatoor.com");
>> smtp_client.UseDefaultCredentials = false;
>> smtp_client.Port = 25;
>> smtp_client.Credentials = network_credential;
>>>
>> string html_message = null;
>>>
>> html_message = "<html>";
>> html_message += "<head>";
>> html_message += "<meta http-equiv=Content-Type
>>content='text/html; charset=windows-1252'>";
>> html_message += "</head>";
>> html_message += "<body>";
>> html_message += "Thank you for registering with
>>zatoor.com
>>and welcome to the world of free classifieds. We hope you will enjoy
>>using
>>our website.";
>> html_message += "<br>";
>> html_message += "<br><br>";
>> html_message += "zatoor.com Team";
>> html_message += "</body>";
>> html_message += "</html>";
>>>
>> mail_message.From = new MailAddress("info@.zatoor.com",
>>"zatoor.com");
>> mail_message.To.Add(txtEmailAddress.Text);
>> mail_message.CC.Add("jrahma@.yahoo.com");
>> // mail_message.Priority = MailPriority.High;
>> mail_message.IsBodyHtml = true;
>> mail_message.Subject = "welcome to zatoor.com";
>> mail_message.Body = html_message;
>>>
>> mail_message.DeliveryNotificationOptions =
>>DeliveryNotificationOptions.OnFailure;
>>>
>> smtp_client.Send(mail_message);
>>>


>>
>>


>

This works on my locahost, but not on a remote server?

Hello. This problem is perplexing me.

I have a asp:button which runs a javascript function when it is clicked. It
returns a true or false depending if a postback is needed. This works great
when I run it on my development pc. But, when I run it from another
computer, it ALWAYS does a postback, even if it returns false. I have no
ideas why??

The plot thickens... I don't know if this really matters or not, but this
button is in a datagrid.

Can anyone explain to me why the javascript function posts back??? The
code is posted below.

Thank you in advance!

SteveS

******ASPX CODE************

<asp:Datagirid.....>
..
<asp:TemplateColumn HeaderText="Deny" ItemStyle-HorizontalAlign=Center
HeaderStyle-HorizontalAlign=Center>
<ItemTemplate>
<asp:Button text="Deny" ID="btnDeny" Runat="server"
CommandName="btnDeny"></asp:Button>
</ItemTemplate>
</asp:TemplateColumn>
..
</asp:Datagrid
<script lang=javascript>
function OpenDenyWindow(changeId, btn) {
var ret = false
retVal=window.showModalDialog('DenialEmailForm.asp x?id=' +
changeId+'&mem='+document.Form1.hdnMemId.value,'', '');
alert ("retval = " + retVal)
if (retVal == "Successful") {
//return true
ret = true
}
else {
//return false
ret = false
}
alert(ret);
// *** even if this function returns a FALSE, the form is still posted
when I am not running the web page from my local host.
return ret;
}

**** CODE BEHIND****

Private Sub grdList_ItemCreated(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles grdList.ItemCreated
'ADD THE JAVASCRIPT TO TO THE BUTTON
Dim ctrlDeny As Button = CType(e.Item.FindControl("btnDeny"),
Button)
If Not IsNothing(ctrlDeny) Then
Dim grid As DataGrid = CType(sender, DataGrid)
ctrlDeny.Attributes.Add("onclick", "return OpenDenyWindow("
& grid.DataKeys(e.Item.ItemIndex).ToString & ", this); return false;")
End If
End SubWhat is the configuration of the browser on the other PC? Maybe it has
disabled javascript?

"SteveS" <ssinger@.trendmls.com> wrote in message
news:uZ4IRSWIEHA.2128@.TK2MSFTNGP11.phx.gbl...
> Hello. This problem is perplexing me.
> I have a asp:button which runs a javascript function when it is clicked.
It
> returns a true or false depending if a postback is needed. This works
great
> when I run it on my development pc. But, when I run it from another
> computer, it ALWAYS does a postback, even if it returns false. I have no
> ideas why??
> The plot thickens... I don't know if this really matters or not, but this
> button is in a datagrid.
> Can anyone explain to me why the javascript function posts back??? The
> code is posted below.
> Thank you in advance!
> SteveS
>
> ******ASPX CODE************
> <asp:Datagirid.....>
> .
> <asp:TemplateColumn HeaderText="Deny" ItemStyle-HorizontalAlign=Center
> HeaderStyle-HorizontalAlign=Center>
> <ItemTemplate>
> <asp:Button text="Deny" ID="btnDeny" Runat="server"
> CommandName="btnDeny"></asp:Button>
> </ItemTemplate>
> </asp:TemplateColumn>
> .
> </asp:Datagrid>
> <script lang=javascript>
> function OpenDenyWindow(changeId, btn) {
> var ret = false
> retVal=window.showModalDialog('DenialEmailForm.asp x?id=' +
> changeId+'&mem='+document.Form1.hdnMemId.value,'', '');
> alert ("retval = " + retVal)
> if (retVal == "Successful") {
> //return true
> ret = true
> }
> else {
> //return false
> ret = false
> }
> alert(ret);
> // *** even if this function returns a FALSE, the form is still
posted
> when I am not running the web page from my local host.
> return ret;
> }
>
> **** CODE BEHIND****
> Private Sub grdList_ItemCreated(ByVal sender As Object, ByVal e As
> System.Web.UI.WebControls.DataGridItemEventArgs) Handles
grdList.ItemCreated
> 'ADD THE JAVASCRIPT TO TO THE BUTTON
> Dim ctrlDeny As Button = CType(e.Item.FindControl("btnDeny"),
> Button)
> If Not IsNothing(ctrlDeny) Then
> Dim grid As DataGrid = CType(sender, DataGrid)
> ctrlDeny.Attributes.Add("onclick", "return
OpenDenyWindow("
> & grid.DataKeys(e.Item.ItemIndex).ToString & ", this); return false;")
> End If
> End Sub
>
>
>

This works on my locahost, but not on a remote server?

Hello. This problem is perplexing me.
I have a asp:button which runs a javascript function when it is clicked. It
returns a true or false depending if a postback is needed. This works great
when I run it on my development pc. But, when I run it from another
computer, it ALWAYS does a postback, even if it returns false. I have no
ideas why'
The plot thickens... I don't know if this really matters or not, but this
button is in a datagrid.
Can anyone explain to me why the javascript function posts back'? The
code is posted below.
Thank you in advance!
SteveS
******ASPX CODE************
<asp:Datagirid.....>
.
<asp:TemplateColumn HeaderText="Deny" ItemStyle-HorizontalAlign=Center
HeaderStyle-HorizontalAlign=Center>
<ItemTemplate>
<asp:Button text="Deny" ID="btnDeny" Runat="server"
CommandName="btnDeny"></asp:Button>
</ItemTemplate>
</asp:TemplateColumn>
.
</asp:Datagrid>
<script lang=javascript>
function OpenDenyWindow(changeId, btn) {
var ret = false
retVal=window.showModalDialog('DenialEmailForm.aspx?id=' +
changeId+'&mem='+document.Form1.hdnMemId.value,'', '');
alert ("retval = " + retVal)
if (retVal == "Successful") {
//return true
ret = true
}
else {
//return false
ret = false
}
alert(ret);
// *** even if this function returns a FALSE, the form is still posted
when I am not running the web page from my local host.
return ret;
}
**** CODE BEHIND****
Private Sub grdList_ItemCreated(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles grdList.ItemCreated
'ADD THE JAVASCRIPT TO TO THE BUTTON
Dim ctrlDeny As Button = CType(e.Item.FindControl("btnDeny"),
Button)
If Not IsNothing(ctrlDeny) Then
Dim grid As DataGrid = CType(sender, DataGrid)
ctrlDeny.Attributes.Add("onclick", "return OpenDenyWindow("
& grid.DataKeys(e.Item.ItemIndex).ToString & ", this); return false;")
End If
End SubWhat is the configuration of the browser on the other PC? Maybe it has
disabled javascript?
"SteveS" <ssinger@.trendmls.com> wrote in message
news:uZ4IRSWIEHA.2128@.TK2MSFTNGP11.phx.gbl...
> Hello. This problem is perplexing me.
> I have a asp:button which runs a javascript function when it is clicked.
It
> returns a true or false depending if a postback is needed. This works
great
> when I run it on my development pc. But, when I run it from another
> computer, it ALWAYS does a postback, even if it returns false. I have no
> ideas why'
> The plot thickens... I don't know if this really matters or not, but this
> button is in a datagrid.
> Can anyone explain to me why the javascript function posts back'? The
> code is posted below.
> Thank you in advance!
> SteveS
>
> ******ASPX CODE************
> <asp:Datagirid.....>
> .
> <asp:TemplateColumn HeaderText="Deny" ItemStyle-HorizontalAlign=Center
> HeaderStyle-HorizontalAlign=Center>
> <ItemTemplate>
> <asp:Button text="Deny" ID="btnDeny" Runat="server"
> CommandName="btnDeny"></asp:Button>
> </ItemTemplate>
> </asp:TemplateColumn>
> .
> </asp:Datagrid>
> <script lang=javascript>
> function OpenDenyWindow(changeId, btn) {
> var ret = false
> retVal=window.showModalDialog('DenialEmailForm.aspx?id=' +
> changeId+'&mem='+document.Form1.hdnMemId.value,'', '');
> alert ("retval = " + retVal)
> if (retVal == "Successful") {
> //return true
> ret = true
> }
> else {
> //return false
> ret = false
> }
> alert(ret);
> // *** even if this function returns a FALSE, the form is still
posted
> when I am not running the web page from my local host.
> return ret;
> }
>
> **** CODE BEHIND****
> Private Sub grdList_ItemCreated(ByVal sender As Object, ByVal e As
> System.Web.UI.WebControls.DataGridItemEventArgs) Handles
grdList.ItemCreated
> 'ADD THE JAVASCRIPT TO TO THE BUTTON
> Dim ctrlDeny As Button = CType(e.Item.FindControl("btnDeny"),
> Button)
> If Not IsNothing(ctrlDeny) Then
> Dim grid As DataGrid = CType(sender, DataGrid)
> ctrlDeny.Attributes.Add("onclick", "return
OpenDenyWindow("
> & grid.DataKeys(e.Item.ItemIndex).ToString & ", this); return false;")
> End If
> End Sub
>
>
>
>

Thought about server controls

Hi all, I'm new to web app development and jumped right into ASP.NET - so of course I created an application full of asp:xxxxx controls with runat=server. Now I wonder if this is really not the recommended practice? Are there times that a plain old input box or drop down list would do better? Any advice would be appreciated! Thanks!Hello,

there are a few differences between these two kind of controls. In the following i just describe what i´m actually remember but maybe there are a bit it more...

First of all i give you a link where you can read the differences in detail:Introduction to ASP.NET Server Controls

Second is here a short summary:

1. Browser Compatibility
The HTML Server Controls have no mechanism of identifying the capabilities of the client browser accessing the current page.

ASP .NET Server Controls can however detect the target browser's capabilities and render themselves accordingly.

2. Object Model
The HTML Server Controls follow the HTML-centric object model.

ASP .NET Server Controls have an object model different from the traditional HTML and even provide a set of properties and methods that can change the outlook and behavior of the controls.

Sometimes i have heart that ASP.Net controls are a little bit more slowly than the appropriate html controls but i haven't experienced this by now...

Regards,
Ok, so you haven't experienced slower pages with server controls than a HTML control? I guess that is my main concern, I just want to make sure I am not wasting processor time with server controls when I may not really need them.
There is an overload. All the extra property and method of the asp.net version of the standard HTML need to be stored somewhere, as in the server memory.

While you may not experience slowdown, using them only when you need the extra fonctionality is the way to go IMHO.

What too much of them is will be up to you to decide though.
Thank you soo much!

Tuesday, March 13, 2012

Thread was being aborted thrown for background thread (win2003 ser

Hello,
Thread was being aborted exception is thrown by IIS for my asp.net
application on win2003 server. This error has not yet occured with the same
asp.net application on
windows 2000 professional computers that are also lot older and less
effective. And this error does not occure if this thread is run by console
application.
This asp.net gui application starts a background thread that mainly
reads data from ms access database (approximately 0,5 GB access db)
with oledb connection and then calculates something and writes to
another database.
I have tracked down that this exception is thrown by IIS in the
following code when the dataadapter should be filled with data from ms
access database or at least it seems that way after running three test trial
s.
OleDbDataAdapter dataadapter = new OleDbDataAdapter(command);
DataSet ds = new DataSet();
dataadapter.Fill(ds);
And this code should be totally OK as such since the same method is
run about thousand times before this exception is thrown and the
thread is terminated.
Has anyone run to same kind of problem ?
There are many questions in these newsgroups about direct and transfer
commands sending thread was being aborted, but this is not a case for
which that situation would apply. This is a new thread created by the
asp.net code and should run until the operation is finished, but does
not do that right now.
I read that IIS could unload application domain by throwing this
exception if it thinks that a crash,timeout,deadlock or memory has
been exceeded. But this should not do that since console application
on the same win2003 server runs just fine and on slower and older
win2000 machines the application also performs okey on IIS.
Also tried to change connection timeout parameter of IIS server, but
it did not help (from 120 to 1200)
Thank you in advance for reading and for possible answers that might
help me to figure a way out of this problematic situation.
BR,
JohannaWhat happens if you run this as a single thread?