|
thanks for the reply talal.
all permissions are given, to the printer aspnet is added with full permissions.
is there anything else that i missed?
gauthee
|
|
|
|
|
hmm, well I don't know. I haven't done that before. How are you printing? Are you calling an application from your web service or is it the web service that is printing (from inside the code)?
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Printing - there is a printer driver installed in the machine i.e. novapdf printer
all i do is create a word object and use the print method to print the doc, prior to this i would set the printer as novapdf printer thats it!
gauthee
|
|
|
|
|
I want to encrypt an URL so that user cannot see the query string values and all that.
I think it can be done by writing some codes in Global.asax file but I cannot do so.
Help me out.
Thanks in advanced.
Divyesh
|
|
|
|
|
|
sorry buddy that url does not exists.
thank you
divyesh
|
|
|
|
|
|
The following code,
PageDetails.Request.QueryString.ToString()
Returns the following.
NewsID=66NewsID=66
Any ideas anyone?
|
|
|
|
|
I take it the newsId only appears in there once ? Why are you calling ToString ?
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 )
|
|
|
|
|
The query string is http://localhost:49614/WebSite4/Default.aspx?NewsID=66
Will ToString() have any affect? ie a doubling effect?
|
|
|
|
|
Calling the ToString() method will return a string representation of QueryString which is a NameValueCollection . I would guess that you have passed the same parameter twice to the page URL with the same value?
Talal
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
hum? I don't think it's strange. "NewsID=66NewsID=66" is something that you pass it to this page..
Steps to reproduce this ~
#1. Create web project
#2. Write the following code in Page_Load.
string a = Request.QueryString.ToString();<br />
Response.Write(a);
#3. Run the application. (Observe: You will see nothing since there is nothing in parameter.)
#4. Type Like that "http://localhost:49614/WebSite4/Default.aspx?NewsID=66NewsID=66" in browser. (Note: Website4 should be the name of your website.)
You will see the following in your page.
NewsID=66NewsID%3d66
If you use this codeRequest.QueryString.ToString(); , you will get all parameters. If you wanna get individual one, use like that "Request.QueryString[0] "
Let me know if I miss something..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
The query string is as follows
The query string is http://localhost:49614/WebSite4/Default.aspx?NewsID=66
As copied from the URL
|
|
|
|
|
Sam Heller wrote: The query string is http://localhost:49614/WebSite4/Default.aspx?NewsID=66
No.. I have tried with your querystring. (Environment: Windows Vista, Visual Studio 2005 C#) I got only
NewsID=66 . I suggest you to create new project and try again... If you still getting this issue, show us the sample code.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
How to access the value in a textbox given in a particular page to another page?
|
|
|
|
|
If you are posting it, then access via Request.Form["textboxname"] .
|
|
|
|
|
You can put the data in the session, put it on the URL, or use a cross page postback ( I never use those, they are a hack )
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 want to redirect from aspx page to html page for this html page i'll pass query string parameter like this
www.test.com/welcome.htm?login=sanju
how to get querystring parameter value in html page.
Thanks,
Dharani.
|
|
|
|
|
You'd have to do it in javascript, and hope that javascript is turned on, on the client machine.
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 )
|
|
|
|
|
dim StrCom as string = Request.QueryString.GetValues("CID")(0)
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
That's VB Script and therefore will only work in IE
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...
Can any one tell me...How i create connection string using key values in web.config file???? please give me a code..
The senerio is i want to build connection string on runtime(Dynamically change)...so i fill key value when i need to change....In Connection string tag Connection string value use this key value like variable and return me updated connection string...
Thanks
Haseeb.
|
|
|
|
|
Hello
in web.config file under appSettings tag write down
add key="webkey" value="server=SUJIT;uid=sa;pwd=sa;database=1World"
Thanks
Sujit
|
|
|
|
|
Hi...
i am not asking how to add key in configuration file...My question is how i get the key value in
<connectionstrings>
<add name="Connection String" connectionstring="i" use="" here???="" providername="System.Data.SqlClient">
Tag????
|
|
|
|
|
Hello
Just follow this code.
SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["webkey"]);
Sujit
|
|
|
|