|
Hey guys , I got it!!!!!!!!!!!!
Well I thought I cannot place javascript inside a content page as it will not be having a tag. But now, I have used a html button for print and used javascript right below the tag.
This is not triggering the print on refresh!
Thank you one and all for helping me out!
cheers
|
|
|
|
|
hey just add a button in ur report then at ur form
write code in reportviewer me.hide on click event it will autmatically and when u want me.show simply
first of all u have to invisible the reportviewer
hope u understand
byeeeeeeeeeee
lucky
|
|
|
|
|
Hi all,
I would like to extend the delete and edit buttons in my gridview so that in addition to deleting and editing the underlaying data, it will also log the changed data, the date and time of change etc.
Can someone kindly point me the right direction?
Thanks!
|
|
|
|
|
Just make the buttons call your own SQL, which does these things in your database.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hey all,
I'm having this weird problem with an aspx page.
In this page I have 2 dropDownList controls:
_TableDropDown - has items that I entered at design time. the items are: Cities, Titles etc..
_RowsDropDown - filled after _TableDropDown is autoPostBack to server from DB(when selecting Cities of _TableDropDown the _RowsDropDown is filled with YNC, Paris etc.. and when selecting Titles of _TableDropDown the _RowsDropDown is filled with Manager, Developer etc...)
everything is ok until I press the back button.
this is what I did from IE:
1. got the page the first time - the _TableDropDown with Cities and _RowsDropDown with the data from DB.
2. changed the _TableDropDown value to Titles - postback occured and the page got back to me with the right data.
3. press back button - now the _TableDropDown is set with Titles value BUT _RowsDropDown values filled with cities data..
I know that when pressing back button of IE there is NO postback to the server so I guessed it's something with the viewState...
Is someone familier with the problem?
What should I do to get over this?
Thank you very much,
RoyRose
|
|
|
|
|
If there is no postback, then viewstate cannot have anything to do with it
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
There is no postback & it's find with me cause I don't need anything from the server.
All I want is that when I press IE's back button it'll go to the state it was and not to an imposible state!
|
|
|
|
|
The way to do this, is to store the value in the URL, and to do a redirect to that URL, on postback. Otherwise, the step where you changed the value of one, but the other was not changed, is a page in IE's history. That's what you're stepping back to.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi all,
I followed up a response to another discussion with regards to e-commerce shopping cart solutions. My question is regards to using shopping carts in particular the downloading of software or files once payment is recieved notably though an e-mail. This is common with Software companies who allow the purchase of e-products where no shipping occurs.
The solution I require is as follows.
1/ My client requires a web application which allows customers to select from 10 excel sheets to add to basket
2/ Basket functionality should allow for adding/deleting products i.e. these excel sheets
3/ Checkout option which redirects to Secure area of site through the use of SSL Cert will capture payment details which is authorised through payment merchant/gateway
4/ Once payment is authorised redirect to another page for "success order, you will be sent an e-mail with download instructions, blah blah blah"
5/ Online customer receives e-mail with links to the files to download. They are given two chances to download the file then it becomes locked!
6/ E-mail should also generate invoice to customer in image/pdf format which cc to administrator of site also.
7/ Site should also have a history of orders which can be exported for financial system
Question 1 - Does anyone know of an ASP.NET e-commerce solution that can produce these results
Question 2 - Any code snippets or complete solutions that anyone has come across on any websites
Any advice would be greatly appreciated.
All the best,
SAS 25
|
|
|
|
|
hey guy don,t waste ur time this statement
company have many employees n working at different platform
if u want to do
first create a website then link the email to server site
u know when u register ur web email is free it goes automatically to the server side.
database never respond automatically it help form server administrative done this type of work ok
hope u understand
and tell which type of web u want to create i help u if u r interest i m a software engg work as a post of project developer in .net all components
ok byeeeeeee
hope u understand
lucky
|
|
|
|
|
I develop on XP Pro. I am setting up SSO (single site login). I want to debug my website and authenticate through the main server running on Win2k3. The main server has a domain full domain (www.sample.com). I can authentiate and redirect to my XP Pro site. However, when I check Request.IsAuthenticated it is false. I believe this is because my host header is localhost on my XP Pro box. I have tried setting my host file to be the same domain as the main server. The host file change has no effect. I have also tried setting the host header in IIS. The host header change causes an error "unable to start debugging on web server. the web server could not find the requested resource". I was wondering if someone has figured this out. If so, please let me know.
Thanks.
|
|
|
|
|
hi
i store some pdf file in a folder in my ASP.NET solution.
and now want to insert a link to a page that user click it , show pdf file
how can implement it ?
tanks .
|
|
|
|
|
Just link to the PDF, IE will display it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
tanks Christian Graus
it is very simple than i think.
but now have a question : i have installed acrobat reader in my computer and now that view a pdf in a browser show correctly.
how about in a machine that has not acrobat reader ? is it show correctly ?
|
|
|
|
|
Of course not. It will probably prompt the user to download the reader.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
hey don,t make a file in pdf because when user click on this file adobe acrobat must be install on their computer so make a file in ms-office it can be help to all users ok
byeeeeee
if any doubt mail me
lucky
|
|
|
|
|
I wrote a code to check for Browser version and to set the Stylesheet accordingly. Now if I leave the Stylesheets at the root the code works perfect and selects the right style, but if I create a folder like "CSS" and put the styles in there and redirect the link to this folder than it want recognize the styles anymore. Can anyone tell me why?
Here is my code:
Public Function getStyle() As String
Dim browser As Object = Request.Browser.Browser.ToLower.ToString()
Dim bc As HttpBrowserCapabilities = Request.Browser
Dim str As String = ""
Dim Style As String = ""
'check browser and set appropriate stylesheet
If browser = "ie" Then
'check for version of IE (6 or other)
If bc.MajorVersion = "6" Then
Response.Write("<link href='StyleSheetIE6.css' rel='stylesheet' type='text/css' />")
'Response.Write("<link href='CSS/StyleSheetIE6.css' rel='stylesheet' type='text/css' />") 'this line want work
Else
Response.Write("<link href='StyleSheet.css' rel='stylesheet' type='text/css' />")
'Response.Write("<link href='CSS/StyleSheet.css' rel='stylesheet' type='text/css' />") 'this line want work
End If
Else
Response.Write("<link href='StyleSheetFOX.css' rel='stylesheet' type='text/css' />")
'Response.Write("<link href='CSS/StyleSheetFOX.css' rel='stylesheet' type='text/css' />") 'this line want work
End If
Return Style
End Function
code in Html header:
<head runat="server">
<title>Untitled Page</title>
<% getStyle() %>
</head>
I appreciate any suggestion.
Thanks
|
|
|
|
|
Did you view the source on your rendered page to see where the link was pointing? If you are using a master page, try "~/CSS/StyleSheetFOX.css"
I didn't get any requirements for the signature
|
|
|
|
|
|
replace your command text with the name of the proc only ( EmpDept, from the look of it ) and add your ingoing parameter to the parameters collection.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks for quick response. I will give it a try...but what is wrong with specifying input variable like this. I used to do the same in asp.
|
|
|
|
|
This is not asp, this is a real framework. Your asp code just executed SQL, these classes are taking the proc name and attempting to run a proc named exactly what you typed in, with the parameters you provided. This allows the framework to do things like sanitise the input to protect from injection attacks.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Great!..Thanks for the explaining it in deatil. Now I understand.
Well, I tried the way you have suggested. I still get error .
I have defined parameters like
cmd.CommandText = "Employees.EmpDept"
cmd.CommandType = Data.CommandType.StoredProcedure
cmd.Parameters.Add("userid", OracleType.VarChar)
cmd.Parameters("userID").Direction = Data.ParameterDirection.Input
cmd.Parameters("userID").Value = sUserID
cmd.Parameters.Add("retVal", OracleType.Number)
cmd.Parameters("retVal").Direction = Data.ParameterDirection.ReturnValue
Now I get following error
ORA-06550: line 1, column 17:
PLS-00306: wrong number or types of arguments in call to 'EMPDEPT'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
I checked the definition of procedure, its like
CREATE OR REPLACE PACKAGE BODY EMPLOYEE IS
FUNCTION EMPDEPT(sID IN VARCHAR2) RETURN NUMBER IS
vDept NUMBER;
BEGIN
...select statement here ...
END EMPDEPT;
END;
/
Now, what I am missing here?
|
|
|
|
|
peacefulmember wrote: cmd.CommandText = "Employees.EmpDept"
Again, don't scope it, put EmpDept.
It's not a proc, it's a function ? Not sure if the syntax is the same then....
It does look like you're claiming your variable called userID, when it's in fact called sID.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|