|
Cool, god bless Google, gonna get that in mind, just a question... an update panel is used for what? to retrieve data from table and refresh it, in order to keep it updated ? like doing it with AJAX?
Thanks!
|
|
|
|
|
msqar wrote: just a question... an update panel is used for what? to retrieve data from table and refresh it, in order to keep it updated ? like doing it with AJAX?
Here you go....simple & explained nicely
What is the UpdatePanel in ASP.NET Ajax?[^]
BTW you welcome
|
|
|
|
|
Hi All,
I need to integrate Paypal with my web site(asp.net with c#)
I created paypal sandbox account, but still do not have clear idea of how to integrate.
Please help me with...
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
|
Hi,
Check this out http://www.asp.net/downloads/starter-kits/paypal-ecommerce/
OR
You need a paypal account and you have to sign up for a business account so you can accept credit card payments.
There are some clever ways to integrate it but I have illustrated one of the most basic ways here:
http://runtingsproper.blogspot.com/2009/07/simple-paypal-button.html
That would get you going with a purchasable item. You will have to dig deeper if you want to add items to a cart and then purchase them all at once.
There is a dedicated developer network called the PayPal Developer Network.
https://www.paypal.com/developer
http://developer.paypal-portal.com/pdn/
And many many tutorials out there:
http://www.google.co.uk/search?q=asp.net+paypal
Hope it helps
Regards
|
|
|
|
|
|
Hi,
I have created a sample login site using SQL membership provider and authentication and authorization.
The admin folder has a default.aspx and in the web config I have denied access to users who are not of role admin and any other user. When I run the code with the admin/default.aspx as start page locally, it works fine by redirecting me to login page. However on publish when I type in www.domainname.com/admin/default.aspx, I get the error that "The website declined to show this webpage, Most likely causes:This website requires you to log in.". How can I make it redirect to login page.
Thanks
|
|
|
|
|
What settings have you applied to the web.config in your production environment?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Here is a part of the web config file from the production:
<authentication mode="Forms" >
<forms loginUrl="login.aspx" >
</forms>
</authentication>
<authorization>
<allow roles="Admin, Employee"/>
<deny users="*"/>
</authorization>
</system.web>
<location path="Admin">
<system.web>
<authorization>
<allow roles="Admin"/>
<deny roles="Employee"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
Why does it work in development and not when published. I havent changed any settings from development to publish accept the database connection string.
|
|
|
|
|
ok.. I changed the setting for the admin folder from deny users "*" to deny users"?" and it worked.
<location path="Admin">
<system.web>
<authorization>
<allow roles="Admin"/>
<deny roles="Employee"/>
<deny users="?"/>
</authorization>
</system.web>
what is the difference between * and ?.
|
|
|
|
|
Reading the documentation helps to answer questions like this. * means all, ? means only authenticated
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
i got error : Invalid column name 'A1009'.
chk1 = "select Sno from Student where SID = "+ @smemno.Text.ToString();
SqlCommand ck1 = new SqlCommand(chk1, cn);
v11 = (string)ck1.ExecuteScalar();
what should i do?
|
|
|
|
|
Paresh1462 wrote: what should i do?
Realize that we are not looking over your shoulder. Give an accurate description of the conditions, your problem, expected outcome and what you have tried.
Without knowing your database structure or what it is populated with how can we tell what column A1009 means?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
chk1 = "select Sno from Student where SID = '"+ @smemno.Text.ToString()+"'";
will probably fix it, but as Mark said, more details would help tremendously.
|
|
|
|
|
For a start, I would look to change your code to mitigate the chance that you will be left wide open to a Sql Injection attack[^]. Secondly, I would look to Dispose of my SqlCommand object. Wrapping it in a nice using statement will do the trick.
|
|
|
|
|
As already pointed out, use parameters: SqlParameter[^].
But if you still for some reason want to use literals in SQL statements, add apostrophes when you're adding texts to the statement:
chk1 = "select Sno from Student where SID = '"+ @smemno.Text.ToString() + "'";
|
|
|
|
|
Hi,
Can you please help me how data export in Excel File in Ado.Net using Gridview.
Thanks & Regards
Mohit Sharma
|
|
|
|
|
You can't, not on the client. Do you want to export data from the gridview into an Excel Spreadsheet on the server?
|
|
|
|
|
|
Heya, i got a new question,
I got my website, where i placed in header the logged in bar, which includes the "Hello, <username>" and bellow PROFILE | LOG OUT.
The thing is, that the LOG OUT in order to work, has to be a
|
|
|
|
|
You can only have 1 form per page. Put everything in the 1 form.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Yea, but brother told me that, but i got different containers, i.e: like this:
header container
form
LOGGED IN BAR
/form
/header container
body container
CONTACT FORM
/body container
can i do something like this ?
header container
form
LOGGED IN BAR
/header container
body container
CONTACT FORM
/form
/body container
Thanks for replying btw!.
|
|
|
|
|
There is no reason to have two separate forms on your page. Use one form and handle the proper events. Such as, handle the login/logout button click event and the submit button click event. What problem are you trying to solve with two forms?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hello again, Mark
My doubt is about the asp:container's i got on each aspx.
as i mentioned in the previous reply, i got a header container and a body container.
My questions is: Am I able to open a form in the header container and close it in the body container, and afterwards, manage all the events with onclick property -as you said-?
Because i got the log out bar in the header, and contact us form in the body. Need a solution in order to place all the events in one single form
Thanks again!!!
Marian.
|
|
|
|
|
One form and many ContentPlaceHolders is how the default masterpage is constructed when starting an ASP.NET web application project within Visual Studio. Do you understand the concept of masterpages and contentplaceholders?
I know the language. I've read a book. - _Madmatt
|
|
|
|