|
JimBob SquarePants wrote: Any ideas would be really helpful.
When you are trying to save image on the server then this error causes.
I am sure your code looks like this
FileName.PostedFile.SaveAs(FileName.PostedFile.FileName)
You need to Map Server path and save file there.
Like this
FileName.PostedFile.SaveAs(Server.MapPath(Path.GetFileName(FileName.PostedFile.FileName)))
This line of code will save image on root folder
please don't forget to vote on the post that helped you.
|
|
|
|
|
That's what I was trying to tell him
1. Create one folder (suppose: image) in your portal,
2. save that file using Server.MapPath("\\image\\" + Path.GetFileName
(FileName.PostedFile.FileName))
3. Save that path ("\image\..filename.jpeg") into database
4. Now when u want to access that file, just retrive that path from
database (eg. str), and write image.URL = Server.MapPath(str).
5. That's all!!!!!!!!!!
right???
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Hello All,
Suppose I am selling things on line and I am using pay pal to handle credit card transactions, how do I know if a transaction is successful? I'm planning to keep track of all items by creating an inventory program which subtracts the number of items sold from the total number of items in the inventory, only after the transaction is successful. That is my where my problem lies, I don't know how to determine if a transaction is successful. Any help, any suggestions on how to go about solving this will be greatly appreciated, thanks in advance for your time.
modified on Tuesday, July 29, 2008 10:20 PM
|
|
|
|
|
The paypal gateway should tell you it has successfully processed a transaction
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
It returns IPN,you have to read the IPN as it contains the value of whether the transaction is successful or not
|
|
|
|
|
Yeah, I've used real gateways, but not Paypal. I just knew that there had to be some way hidden in the documentation.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Does any one have experience in intergrating chameleon with Asp.net Application... If yes Plz help me
Santhapur
|
|
|
|
|
Hi,
Follwing error : -"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) "
Version what we are using is Asp.net2.0 + sqlserver2000
Thanks in advance
With regards
Senthilkumar.T
|
|
|
|
|
There could be several reasons why this is happening, a good point to start would be to type that error into google and you will find loads of error messages.
|
|
|
|
|
means that your SQL Server is down, your connection string is wrong, or your security settings need to be changed in SQL Server.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi all,
I m using dual slider control of ajax with asp.net c# 2.0.
when the slider is used the values in the respective textboxes changes and using this values I want to query database for an search result to be displayed on the page.
My problem is that when ever I m using the slider the page postback is called and the values of the textboxes are again set to initial default value.
i tried using update panel but couldnt make it properly.
I m trying to make search similar to search in bluenile.com diamond search.
Can any one help me please.
its badly needed.
Thanks in advance.
Vijay V.
Yash Softech
|
|
|
|
|
Do anyone have the link for downloading ajaxtoolkit with rangeextender for VS 2005??
Vijay V.
Yash Softech
|
|
|
|
|
can you give me control so i can check it what is the problem
|
|
|
|
|
hi
i am use datagrid in asp.net using c# and i have a check box in grid view and now i would like to check all and uncheck all function in javascript and call that from linkbutton which exists outside of grid view. plz tell me how i can call javascript function in linkbutton and how i can check all and uncheck all function call for clicking that button? thanks in advance.
|
|
|
|
|
|
Good one
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Error: chkid is not defined
Source File: http://localhost/javascripts1/gridviewex2.aspx
Line: 21
mycheck box name is chkid
and i use this code
function ChangeCheckBoxState(id, checkState)
{
var cb = document.getElementById(id);
if (cb != null)
cb.checked = checkState;
}
function ChangeAllCheckBoxStates(checkState)
{
// Toggles through all of the checkboxes defined in the CheckBoxIDs array
// and updates their value to the checkState input parameter
if (chkid != null)
{
for (var i = 0; i < chkid.length; i++)
ChangeCheckBoxState(chkid[i], checkState);
}
}
grid view code is where code checkbox exists
<asp:gridview runat="server" id="gv1" autogeneratecolumns="false" pagesize="10" allowpaging="true" gridlines="Both" width="100%" onrowdatabound="gv1_RowDataBound" onrowcommand="gv1_RowCommand" xmlns:asp="#unknown">
<headerstyle backcolor="#84A8C9">
<alternatingrowstyle backcolor="#F4FAFF">
<rowstyle backcolor="#DBECFB" verticalalign="Top">
<columns> <asp:templatefield>
<headertemplate>
Action
<itemtemplate>
<asp:checkbox id="chkid" runat="Server" width="16">
<%--<asp:linkbutton id="edit" runat="server" commandname="edit1" width="16" text="Edit">--%>
<asp:imagebutton id="drop" runat="Server" commandname="del" width="16" imageurl="~/images/delete.png" imagealign="Top">
<asp:imagebutton id="edit" runat="server" commandname="edit1" width="16" imageurl="~/images/edit.png" imagealign="Top">
<%--<asp:image id="img11" runat="server" imageurl="~/images/Info.png">--%>
<itemstyle height="12%" width="8%">
<asp:templatefield>
<headertemplate>
First Name
<itemtemplate>
<asp:literal id="lt_fname" runat="server">
<itemstyle height="12%" width="18%">
<asp:templatefield>
<headertemplate>
Last Name
<itemtemplate>
<asp:literal runat="server" id="lt_lname">
<itemstyle height="12%" width="18%">
<asp:templatefield>
<headertemplate>
Qualification
<itemtemplate>
<asp:literal runat="server" id="lt_qual">
<itemstyle height="12%" width="18%">
<asp:templatefield>
<headertemplate>
Active
<itemtemplate>
<asp:linkbutton runat="server" id="btn_status" text="Active">
<itemstyle height="12%" width="10%" horizontalalign="Center">
<asp:templatefield>
<headertemplate>
Status
<itemtemplate>
<asp:imagebutton runat="server" id="btn_info" commandname="info" borderwidth="0" imageurl="~/images/Info1.png" imagealign="Middle">
<asp:image id="img_info" runat="server" borderwidth="0" visible="true" imageurl="../images/Info.png" imagealign="Middle">
<itemstyle height="12%" width="10%" horizontalalign="Center">
button coding outside of gridview
|
|
|
|
|
Hi,
I am very new to Ajax enabled web application. I was trying to degin an page with some controls in the update panel. I placed a update panel and inside that i placed a table. Now when i am trying to put label and text box in each of the cells inside the table. Here I am not able to align/Indent the controls as i want. Either it is giving more space than i require or it is moving here and there. I am not sure any settings to be done. Can any one please suggest me..
Thanks in advance
|
|
|
|
|
your code plz................
|
|
|
|
|
Hi,
I have not yet all started coding.. its only first i wanted to degsign the screen and see in browser and once screen is ok .. i can go for functionality.
regards,
|
|
|
|
|
Is it possible to use form view with ajax tab control, as my aspx page contains 4 tabs , but i want paging in my aspx page to show data, so is it possible to integrate formview with ajax tab control ?????????
|
|
|
|
|
how to display images using datalist control
when databse is ms-access
nilesh kumar saraf
|
|
|
|
|
R u serious with MS Access?
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
|
Multiple Instances of same usercontrol on a single page works or not
...iam working on this where iam using same control twice in the page it is genaration a javascript error for the second page.
|
|
|
|