Showing posts with label hii. Show all posts
Showing posts with label hii. Show all posts

Saturday, March 31, 2012

Themes vs css?

Hi;

I see the additional functionality that themes add. But it also seems to me
that if we use css instead of themes, then it's a lot easier for people to
change the look of our site as css is very well understood.

Any comments on how useful in practice the extra features of themes have been?

--
thanks - daveCSS files are usually part of a theme.
Rely on them as much as you wish.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"David Thielen" <thielen@.nospam.nospam> wrote in message
news:CCBFC3CA-87C4-4C69-A847-208227AF90FE@.microsoft.com...
> Hi;
> I see the additional functionality that themes add. But it also seems to
> me
> that if we use css instead of themes, then it's a lot easier for people to
> change the look of our site as css is very well understood.
> Any comments on how useful in practice the extra features of themes have
> been?
> --
> thanks - dave
Hi,

How is this case going? Please feel free to let me know if you have any
concern or questions.

Thanks & Regards,

Neil Ni
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.

This and other support options are available here:

BCPS:
https://partner.microsoft.com/US/te...erview/40010469

Others: https://partner.microsoft.com/US/te...upportoverview/

If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/defaul...ernational.aspx.
================================================== ===

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

Themes vs css?

Hi;
I see the additional functionality that themes add. But it also seems to me
that if we use css instead of themes, then it's a lot easier for people to
change the look of our site as css is very well understood.
Any comments on how useful in practice the extra features of themes have bee
n?
thanks - daveCSS files are usually part of a theme.
Rely on them as much as you wish.
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"David Thielen" <thielen@.nospam.nospam> wrote in message
news:CCBFC3CA-87C4-4C69-A847-208227AF90FE@.microsoft.com...
> Hi;
> I see the additional functionality that themes add. But it also seems to
> me
> that if we use css instead of themes, then it's a lot easier for people to
> change the look of our site as css is very well understood.
> Any comments on how useful in practice the extra features of themes have
> been?
> --
> thanks - dave
Hi,
How is this case going? Please feel free to let me know if you have any
concern or questions.
Thanks & Regards,
Neil Ni
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
========================================
=============
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a w to all
Microsoft technology partners in the United States and Canada.
This and other support options are available here:
BCPS:
https://partner.microsoft.com/US/te...erview/40010469
Others: https://partner.microsoft.com/US/te...upportoverview/
If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/defaul...rnational.aspx.
========================================
=============
This posting is provided "AS IS" with no warranties, and confers no rights.

There is no position at row 0

Hi:

I am getting this error when a transaction needs to write to the Database after the user clicks the submit button.

Any help on what is the cause is greatly appreciated.

Thanks in advance for your help.It's impossible to answer this without seeing some code and also the eventual stored procedure you are using to execute the transaction.
************* Edited by moderator Adec ***************
Inserted missing < code></ code> tags. Always include such
tags when including code in your postings. Many readers
disregard postings without the code tags.
**************************************************

Thanks. Here is the situation. I am updating a site which was given to me, and fairly new to .net. I am competent to decifer the situation with the help by a person who knows.
Now correct me if I am wrong. I see that it is going to write the transaction to a table called 'Transactions'. I'm looking at the table in the DB and the fields do not look like the fields it is looking for below. Now I am assuming that I should change the fields in this code to match exactly what is in the table. Also the fields in the table do not have the letters in front of the field name. Ex: iUserID, dtDateTime. It has UserID, DateTime.. etc. what are the letters in front for? Also the last line of this code, should there be a table called PublicPayInvoice created in the DB, because I don't see it. Not sure if that is the table it is looking for.

Thanks

The Code:


'Write the Transaction
If sX_Response_Code = "1" Then
Transactions.WriteTransaction(iUSerID, dtDateTime, iAccountID, sTransactionType, sMethod, sRecipientEmail, _
sx_Email, "YES", "NO", sX_Response_Code, sX_Response_Subcode, _
sX_Response_Reason_Code, sX_Response_Reason_Text, _
sX_Auth_Code, sX_AVS_Code, sX_Trans_ID, sX_Description, dProcessing, _
dTransactionFee, dChargeBackFee, dRefundFee, dPremiereFee, dRequestedAmount, _
dX_Amount, sIP, "PP")
Else
If sX_Auth_Code = "" Then
sX_Auth_Code = "0"
End If

Transactions.WriteTransaction(iUSerID, dtDateTime, iAccountID, sTransactionType, sMethod, sRecipientEmail, _
sx_Email, "NO", "YES", sX_Response_Code, sX_Response_Subcode, _
sX_Response_Reason_Code, sX_Response_Reason_Text, _
sX_Auth_Code, sX_AVS_Code, sX_Trans_ID, sX_Description, dProcessing, _
dTransactionFee, dChargeBackFee, dRefundFee, dPremiereFee, dRequestedAmount, _
dX_Amount, sIP, "PP")
End If
'Get the TransactionID
iTransactionID = Transactions.GetPublicTransactionID(iUSerID, sRecipientEmail, sx_Email)

Dim sTo As String
Dim sFrom As String
Dim sSubject As String
Dim sBody As String
Dim mail As New MailMessage()
Dim iTemp As Integer

If sX_Response_Code = 1 Then
Transactions.PublicPayInvoice(iUSerID, sCustomerInvoivceNum, iTransactionID, sTransactionType, sMethod, _
Left(Session.Contents.Item("x_Card_Num"), 4) & "-XXXX-XXXX-" _
& Right(Session.Contents.Item("x_Card_Num"), 4), sExpDate, _
Session.Contents.Item("x_Card_Code"), Session.Contents.Item(" _
"x_bank_Name"), Left(Session.Contents.Item("x_Bank_Acct_Num"), 2) _
& "XXXXXXXXXXXXXX" & Right(Session.Contents.Item("x_Bank_Acct_Num"), 4), _
Session.Contents.Item("x_Bank_ABA_Code"), sFirstName & " " & sLastName, _
sAddress, sCity, sState, sZip, sCountry, sCardType)


You are using an own Class called Transactions here. What do the methods from that Class used here look like?
The class is to long to post here for you to look at. Can I email it to you?
Firstly, sharpening up your communication skills would be a great help. How do you expect us to know what is going on if you don't give us the appropriate information? For example, what is the error that you talked about in your first post!?!

Secondly, the additional "letters in front of the field name" are simply a naming convention and relate to the ID of the Controls/Varaibles that you are using.

Thirdly (to reiterate Andre's point), Transaction is actually an Object (an instantiated Class) and isn't a table in the database.

Finally, PublicPayInvoice is a method of the Invoice Object, not another table.

> I am competent to decifer the situation with the help by a person who knows
Evidently not!!
WoW. Thanks for being so CRUEL!
I was just thinking the same about2flip thing after reading the post from stevenbey.

Its amazing why some tech's get a bad wrap for having god-like complex's, lol. Dealing with people (or answering forums) this guy should not!!!
>>Dealing with people (or answering forums) this guy should not!!!

There are many who would disagree (i.e. those people who's problems I have solved).

Saturday, March 24, 2012

This ones going to be tricky

Hi

I need to pass a variable through a querystring in to another window, popup maybe.

Response.Redirect(

"~/Exam/ExamResult.aspx?sum=" + CalSum);

I thought about Target=_Blank but that will only work for links. Would i need javascript for this.

Any know of any solutions

not tricky, yes you do need javascript

in your HREF you put

thetargetpage.aspx?myName=valuePair.

then in the onClick event you use

window.open(this.href,ADDITIONAL WIDTH, HEIGHT, PARAMETERS)

should work pretty easily. the key is the javascript.onclikc takes its own href value which you can string your variables in.

hth,

mcm


You forgot one parameter :-D It's actually

window.open(URL, window name, additional params)

Cheers,


Cheers

But its not a href its a Resonse.Redirect written in C#

If that makes any sense

Code is order:

<

scriptrunat="server">void Button1_Click(object sender,EventArgs e)

{

int val1 = System.Convert.ToInt32(Q1.SelectedItem.Value);int val2 = System.Convert.ToInt32(Q2.SelectedItem.Value);int val3 = System.Convert.ToInt32(Q3.SelectedItem.Value);int val4 = System.Convert.ToInt32(Q4.SelectedItem.Value);int val5 = System.Convert.ToInt32(Q5.SelectedItem.Value);int val6 = System.Convert.ToInt32(Q6.SelectedItem.Value);int val7 = System.Convert.ToInt32(Q7.SelectedItem.Value);int val8 = System.Convert.ToInt32(Q8.SelectedItem.Value);int val9 = System.Convert.ToInt32(Q9.SelectedItem.Value);int val10 = System.Convert.ToInt32(Q10.SelectedItem.Value);int val11 = System.Convert.ToInt32(Q11.SelectedItem.Value);int val12 = System.Convert.ToInt32(Q12.SelectedItem.Value);int val13 = System.Convert.ToInt32(Q13.SelectedItem.Value);int val14 = System.Convert.ToInt32(Q14.SelectedItem.Value);int val15 = System.Convert.ToInt32(Q15.SelectedItem.Value);int val16 = System.Convert.ToInt32(Q16.SelectedItem.Value);int val17 = System.Convert.ToInt32(Q17.SelectedItem.Value);int val18 = System.Convert.ToInt32(Q18.SelectedItem.Value);int val19 = System.Convert.ToInt32(Q19.SelectedItem.Value);int val20 = System.Convert.ToInt32(Q20.SelectedItem.Value);int val21 = System.Convert.ToInt32(Q21.SelectedItem.Value);int val22 = System.Convert.ToInt32(Q22.SelectedItem.Value);int val23 = System.Convert.ToInt32(Q23.SelectedItem.Value);int val24 = System.Convert.ToInt32(Q24.SelectedItem.Value);int val25 = System.Convert.ToInt32(Q25.SelectedItem.Value);int CalSum = val1 + val2 + val3 + val4 + val5 + val6 + val7 + val8 + val9 + val10 + val11 + val12 + val13 + val14 + val15 + val16 + val17 + val18 + val19 + val20 + val21 + val22 + val23 + val24 + val25;

Label1.Text = CalSum.ToString();

Label2.Text = CalSum.ToString();

if (CalSum >= 1) {

Response.Redirect(

"~/Exam/ExamResult.aspx?sum=" + CalSum);

}

else {

Response.Redirect(

"~/Exam/ExamResult2.aspx");

}

}

</

script>As you can see i have button click event and and response.redirect and not a href with an OnClick event

Any ideas

Thanks in advance


Use this:

1if (CalSum >= 1)2 {3string _script ="<script>window.open('Exam/ExamResult.aspx?sum=" + CalSum.ToString() +"','popup','scrollbar=no menubar=no width=200 height=200');</script>";4 ClientScript.RegisterStartupScript(this.GetType(),"pop", _script);5 }6else7 {8string _script1 ="<script>window.open('Exam/ExamResult2.aspx','popup1','');</script>";9 ClientScript.RegisterStartupScript(this.GetType(),"pop1", _script1);10 }
Thanks

Right on, e_screw.

Ruckme, Response.Redirect works on the server, which has no knowledge of the browser (for things like new windows).

Cheers,


Wow theres some serious syntax in there, However it still doesnt work!

I am going to have dump all the script and say where the errors are:

script

runat="server">void Button1_Click(object sender,EventArgs e)

{

int val1 = System.Convert.ToInt32(Q1.SelectedItem.Value);int val2 = System.Convert.ToInt32(Q2.SelectedItem.Value);int val3 = System.Convert.ToInt32(Q3.SelectedItem.Value);int val4 = System.Convert.ToInt32(Q4.SelectedItem.Value);int val5 = System.Convert.ToInt32(Q5.SelectedItem.Value);int val6 = System.Convert.ToInt32(Q6.SelectedItem.Value);int val7 = System.Convert.ToInt32(Q7.SelectedItem.Value);int val8 = System.Convert.ToInt32(Q8.SelectedItem.Value);int val9 = System.Convert.ToInt32(Q9.SelectedItem.Value);int val10 = System.Convert.ToInt32(Q10.SelectedItem.Value);int val11 = System.Convert.ToInt32(Q11.SelectedItem.Value);int val12 = System.Convert.ToInt32(Q12.SelectedItem.Value);int val13 = System.Convert.ToInt32(Q13.SelectedItem.Value);int val14 = System.Convert.ToInt32(Q14.SelectedItem.Value);int val15 = System.Convert.ToInt32(Q15.SelectedItem.Value);int val16 = System.Convert.ToInt32(Q16.SelectedItem.Value);int val17 = System.Convert.ToInt32(Q17.SelectedItem.Value);int val18 = System.Convert.ToInt32(Q18.SelectedItem.Value);int val19 = System.Convert.ToInt32(Q19.SelectedItem.Value);int val20 = System.Convert.ToInt32(Q20.SelectedItem.Value);int val21 = System.Convert.ToInt32(Q21.SelectedItem.Value);int val22 = System.Convert.ToInt32(Q22.SelectedItem.Value);int val23 = System.Convert.ToInt32(Q23.SelectedItem.Value);int val24 = System.Convert.ToInt32(Q24.SelectedItem.Value);int val25 = System.Convert.ToInt32(Q25.SelectedItem.Value);int CalSum = val1 + val2 + val3 + val4 + val5 + val6 + val7 + val8 + val9 + val10 + val11 + val12 + val13 + val14 + val15 + val16 + val17 + val18 + val19 + val20 + val21 + val22 + val23 + val24 + val25;

Label1.Text = CalSum.ToString();

Label2.Text = CalSum.ToString();

if (CalSum >= 1)

{

string _script ="<script>window.open('Exam/ExamResult.aspx?sum=" + CalSum.ToString() +"','popup','scrollbar=no menubar=no width=200 height=200');</script>";

ClientScript.RegisterStartupScript(this.GetType(), "pop", _script);

}

else

{

string _script1 = "

<script>window.open('Exam/ExamResult2.aspx','popup1','');</script>";

ClientScript.RegisterStartupScript(this.GetType(), "pop1", _script1);

}

}

</

script>

Basically it says that there is a:CS1010: Newline in constant

on this line:

string _script ="<script>window.open('Exam/ExamResult.aspx?sum=" + CalSum.ToString() +"','popup','scrollbar=no menubar=no width=200 height=200');</script>";

Cheers i though this would be hard

Thans again


That is because you are writing the code in the aspx page (html) and with that are you trying to write <script> tag inside another <script> tag (your <script runat=server>). The code i provided is in code behind file.

Thanks


I thought it was because there was a newline in the string (after 'no'). However, since you're not using codebehind, you *will* want to change your string slightly as e_screw mentioned to avoid terminating the parent script early:

0');</scr" + "ipt>";

Also, I believe you should have commas instead of spaces between your list of formatting parameters:

string _script ="<script>window.open('Exam/ExamResult.aspx?sum=" + CalSum.ToString() +"','popup','scrollbar=no,menubar=no,width=200, height=200');</scr" + "ipt>";


Awsome it works!!!:):):

Thanks you very much everybody it works

Cheers

This should be easy

Hi

I want to take a variable I have read from a database and place it in
<h1></h1tags on the web page. What's the best/easiest way to do this?

I don't want to use an asp:label because this is rendered as a <span>.

Thanks in advance

JohnJohn Haycock wrote:

Quote:

Originally Posted by

Hi
>
I want to take a variable I have read from a database and place it in
<h1></h1tags on the web page. What's the best/easiest way to do this?
>
I don't want to use an asp:label because this is rendered as a <span>.
>
Thanks in advance
>
John
>
>
>


Use a literal control.

MyLiteral.Text = "<h1>" + MyVariable + "</h1>";
Thank you Ray

I will read up on literal controls

John

Quote:

Originally Posted by

Quote:

Originally Posted by

>>


Use a literal control.
>
>
MyLiteral.Text = "<h1>" + MyVariable + "</h1>";
>


<h1><%# variable %></h1>

You can also use

<h1 id="hgcHeader" runat="server" />

and then in your code-behind, set the text as follows:

hgcHeader.InnerText = variable;

--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"John Haycock" <jhayc@.blueyonder.co.ukwrote in message
news:1Jovg.2800$q97.1399@.fe3.news.blueyonder.co.uk ...

Quote:

Originally Posted by

Hi
>
I want to take a variable I have read from a database and place it in
<h1></h1tags on the web page. What's the best/easiest way to do this?
>
I don't want to use an asp:label because this is rendered as a <span>.
>
Thanks in advance
>
John
>
>


Cheers Chris it's good to know there are different ways to do this. I
haven't tried those out yet because I used a literal as suggested by Ray and
it worked a treat (cheers Ray) but I will definately try your methods on the
next one.

Many thanks

John
"Christopher Reed" <carttu@.nospam.nospamwrote in message
news:uUxCGqyqGHA.4424@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

<h1><%# variable %></h1>
>
You can also use
>
<h1 id="hgcHeader" runat="server" />
>
and then in your code-behind, set the text as follows:
>
hgcHeader.InnerText = variable;
>
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."
>


Glad it helped! :)

John Haycock wrote:

Quote:

Originally Posted by

Cheers Chris it's good to know there are different ways to do this. I
haven't tried those out yet because I used a literal as suggested by Ray and
it worked a treat (cheers Ray) but I will definately try your methods on the
next one.
>
Many thanks
>
John
"Christopher Reed" <carttu@.nospam.nospamwrote in message
news:uUxCGqyqGHA.4424@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

><h1><%# variable %></h1>
>>
>You can also use
>>
><h1 id="hgcHeader" runat="server" />
>>
>and then in your code-behind, set the text as follows:
>>
>hgcHeader.InnerText = variable;
>>
>--
>Christopher A. Reed
>"The oxen are slow, but the earth is patient."
>>


>
>
>

Thursday, March 22, 2012

Thread in ASP.Net

Hi
I wana to ask that
can i make script in ASP.Net using thread?
Regards
HumairAs long as you have a good needle.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Humair Ahmed" <humair@.axact.com> wrote in message
news:e50m#NGKEHA.2692@.tk2msftngp13.phx.gbl...
> Hi
> I wana to ask that
> can i make script in ASP.Net using thread?
> Regards
> Humair
Technically, you can but you will run into problems because the script must
be streamed out to the client thru the response object. The response object
is owned by the main thread and such cross pollination is forbidden. As an
alternative, you can build the script on a thread, pass it back to the main
thread and then the main thread can stream it out to the client.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Humair Ahmed" <humair@.axact.com> wrote in message
news:e50m%23NGKEHA.2692@.tk2msftngp13.phx.gbl...
> Hi
> I wana to ask that
> can i make script in ASP.Net using thread?
> Regards
> Humair

Thread in ASP.Net

Hi
I wana to ask that
can i make script in ASP.Net using thread?
Regards
HumairAs long as you have a good needle.
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Humair Ahmed" <humair@.axact.com> wrote in message
news:e50m#NGKEHA.2692@.tk2msftngp13.phx.gbl...
> Hi
> I wana to ask that
> can i make script in ASP.Net using thread?
> Regards
> Humair
>
Technically, you can but you will run into problems because the script must
be streamed out to the client thru the response object. The response object
is owned by the main thread and such cross pollination is forbidden. As an
alternative, you can build the script on a thread, pass it back to the main
thread and then the main thread can stream it out to the client.
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Humair Ahmed" <humair@.axact.com> wrote in message
news:e50m%23NGKEHA.2692@.tk2msftngp13.phx.gbl...
> Hi
> I wana to ask that
> can i make script in ASP.Net using thread?
> Regards
> Humair
>