|
Response.Write(Request.UserHostName.ToString());
|
|
|
|
|
so thanks.
best regards.
mehran asghari
|
|
|
|
|
OK. So i'm dealing with the ASP.NET membership systems right now and i'm writing a page for activating a user based on the code and the username supplied in the query string.
What I need to do is check to see if the username supplied exists in the users table.
The only way I can think to do this, is get a collection of all the users in the database, and see if it's in the collection. 2 problems with that though:
* I don't know how to do that (yet)
* It will be really slow when the database gets bigger
Is there any other way to do it? And could somebody show me how to check if something is(or in this case isn't) in a collection using an if statement (I want to do "If value isn't in collection, do error page")?
Don't you just hate coming up with something to put here?
|
|
|
|
|
Bursh. wrote: It will be really slow when the database gets bigger
Not really at all. We do this kind of thing all the time without any ill-effects.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
aah right. Thanks for clearing that up for me. That was my (educated) assumption. So can anybody show me how to do this?
Don't you just hate coming up with something to put here?
|
|
|
|
|
I've done just the basic table with username/password.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I need to know how to check that the user exists! Not what tables you have.
Don't you just hate coming up with something to put here?
|
|
|
|
|
Bursh. wrote: Not what tables you have.
Huh? You have to have the users stored somewheres in a table. You query the username/password and if it returns with nothing, then user doesn't exist.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I do. I have them stored in the tables created by the asp_regsql tool. I need to know how to query it and check if it returns null
Don't you just hate coming up with something to put here?
|
|
|
|
|
by clicking one button in parent window the popup is opened and now on clicking on the popup button the parent window another button event has to call how could be possible.
|
|
|
|
|
If you're writing in VB you could do something like this in your on click sub:
<br />
Dim intActionNo As Integer = 0<br />
<br />
Select intActioNo<br />
Case 0<br />
'Do first action<br />
intActionNo = 1<br />
Case 1<br />
'Do second action<br />
intActionNo = 2 'Or alternatively revert to 0<br />
End Select<br />
Hope that helps
Don't you just hate coming up with something to put here?
|
|
|
|
|
You need to use Javascript for that. You can access the opener object. then, get the object of DOM and then, fire the click event.
For example ~
window.opener.document.getElementById("yourbtn").click();
Just an example. there might be typo error so you need to find the correct syntax based on this concept.
|
|
|
|
|
iam having a grid view with three columns where the last coumn is hidden i want this column value must be show in a tool tip when the mouse goes to the gridview second column
|
|
|
|
|
So what you need to do is define the text in a label, and add the text you want to show, as a tooltip on that label.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I am developing a webproject in C#.net using .net2005.
My project contains two pages. First page displays data from the database in a datagrid view. when i double clicks a row in the datagrid it directs to the second page.
for this i am writing the following code in the rowcreated event of the datagrid.
e.Row.Attributes.Add("ondblclick", String.Format("window.location='" + Columns[i].ToString() + "'"));
here the arraylist Columns contains the following sample data
Columns.Add( "frmOtherPage.aspx?ListType=Empty&ViewType=Invoice&UniqueId=" + uniqueid.ToString());
In the datagrid i am not displaying this unique id.
on double click of the row i am getting the uniqueid of that particular row in the second page.
In second page i am displaying the data of the selected row in detail and diplaying the sub activities of this row in a data grid. In this grid also i am not displaying the activityid.
Here i have to display some controls to create a new sub activity. I am placing all these controls in a panel and displaying (.visible = true) them when user clicks the create sub activity button.
Here what i want is, on doubleclicking a row on the sub activities grid the panel for creating activity must be visible and i have to display the data of that row in those controls of the panel.
Please Help me. Its urgent.
Thanks in Advance
Ramu
|
|
|
|
|
Hi Everyone,
(I apologize for my terrible terminology)
Do you know when you "wave" your cursor over a photo or a url link and it appears as I would like to put it "clickable" or the cursor changes into a "hand". My issue is this, on my site I have a photo that I've changed the source code to and the photo is actually "clickable" but if you "wave" your cursor over the photo it dosen't appear "clickable" Does anyone know how I would fix that ? The source code is below.
<asp:hyperlink id="HyperLink1" runat="server" imageurl="~/Ringtone-Carrier-Photos/alltel-Complimentary Ringtones.jpg">
onClick="makeUrl('http://fbgdc.com/click/?s=8785&c=53726&subid=yahoo=flycell=alltel')"
Target="_blank"Alltell 15 Complimentary Ringtones</asp:hyperlink>
http://tinyurl.com/2tca8w (This is the page, just "wave" your cursor over the "alltell photo" and you will know what I'm talking about.)
Thanks everyone for there help.
|
|
|
|
|
Handle the onmouseover and onmouseout events and change the cursor accordingly.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You can use either ways:
* Use CssClass to set the Image's cursor:pointer (Use StyleSheet here)
or
* HyperLink1.Style.Add("cursor","pointer") in the code behind.
|
|
|
|
|
// iam testing in sandbox enviroment and it is shows the following error
//"ErrorCode=10501&Desc=Invalid Configuration
//&Desc2=This transaction cannot be processed due to an invalid merchant configuration."
// ver iam wrong i enter all the correct details
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using com.paypal.sdk.services;
using com.paypal.sdk.profiles;
using com.paypal.sdk.core;
using com.paypal.sdk;
using com.paypal.sdk.util;
using System.ComponentModel;
using System.Web.SessionState;
public partial class paymantapi : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
com.paypal.sdk.services.NVPCallerServices caller = new com.paypal.sdk.services.NVPCallerServices();
IAPIProfile profile = ProfileFactory.createSignatureAPIProfile();
profile.APIUsername = "seller_1197901374_biz_api1.rediffmail.com";
profile.APIPassword = "1197901386";
profile.Subject = string.Empty;
profile.APISignature = "AJPRAFDEADN4KU5-uQOlH6F4lndTAo8rfA-5axq.xADfGzVZNCtI.U-A";
caller.APIProfile = profile;
NVPCodec encoder = new NVPCodec();
encoder["METHOD"] = "DoDirectPayment";
encoder["PAYMENTACTION"] = "sale";
encoder["AMT"] = "59.45";
encoder["CREDITCARDTYPE"] = "VISA";
encoder["ACCT"] = "4356645484999804";
encoder["EXPDATE"] = "1/2026";
encoder["CVV2"] = "125";
encoder["FIRSTNAME"] = "Test";
encoder["LASTNAME"] = "User";
encoder["STREET"] = "1 Main St";
encoder["CITY"] = "San Jose";
encoder["STATE"] = "CA";
encoder["ZIP"] = "95131";
encoder["COUNTRYCODE"] = "US";
encoder["CURRENCYCODE"] ="USD" ;
encoder["NOTIFYURL"] = "www.paypal.yashsoftech.com/ipn.aspx";
string pStrrequestforNvp = encoder.Encode();
string pStresponsenvp = caller.Call(pStrrequestforNvp);
NVPCodec decoder = new NVPCodec();
decoder.Decode(pStresponsenvp);
Response.Write(pStresponsenvp);
string strAck = decoder["ACK"];
if (strAck != null && (strAck == "Success" || strAck == "SuccessWithWarning"))
{
string pStrResQue = "TRANSACTIONID=" + decoder["TRANSACTIONID"] + "&" +
"AMT=" + decoder["AMT"] + "&" +
"AVSCODE=" + decoder["AVSCODE"] + "&" +
"CVV2MATCH=" + decoder["CVV2MATCH"];
Response.Redirect("DoDirectPaymentReceipt.aspx?"+pStrResQue);
}
else
{
string pStrError = "ErrorCode=" + decoder["L_ERRORCODE0"] + "&" +
"Desc=" + decoder["L_SHORTMESSAGE0"] + "&" +
"Desc2=" + decoder["L_LONGMESSAGE0"];
Response.Redirect("APIError.aspx?"+pStrError);
}
}
}
|
|
|
|
|
Good Lord, tell me you didn't just post all the details of your paypal account to CP ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Kind of looks like it
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I posted all the details , the details are those which i collected from books and also from codeproject, just type the paypal in search box u will get the code from ajith r nair article.
Actually the credit card which iam giving is a sandbox generated credit card.
my developer.paypal.com, username="megha_3983@rediffmail.com password=chandra550
my seller password = 197901323
my buyer password = 197901255
plz tell me ver iam missin the details
hope u reply me soon
modified on Sunday, December 23, 2007 4:06:07 AM
|
|
|
|
|
chanu007 wrote: Actually the credit card which iam giving is a sandbox generated credit card.
I know, it was the paypal account details, that you reiterate here, that left me incredulous.
Have you tried asking paypal ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi, i used from this javascript code in my website an it works correctly by IE.
But it dos not work with Firefox.
what is it's equivalent compatible with Firefox?
Thank you.
$get('Panel1').style.left=100;
$get('Panel1').style.top =100;
$get('Panel1').style.posWidth=100;
$get('Panel1').style.posHeight=100;
|
|
|
|
|
What is $get ? I've never seen that. document.getElementById is how you find an element, and you should do it once, check the returned value, then use that variable.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|