|
First of all I would say don't do this. You should be using CSS rather than hard coding style in your code. You can change the image by applying different classes to the element on the client. You can also make use to CSS media type, @print, to control how the page is rendered when printing.
Failure is not an option; it's the default selection.
|
|
|
|
|
Hi,
We have to select the image depending upon query string, is it possible. Now I found that the image is not set even for the page itself. First it needs to be set for the page then it should print on the printer.
And then it should come in the render to pdf.
Any help please, thanks in advance, its little bit urgent please. Any link or any code snippet helps a lot. In the mean time I will be googling.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
If you aren't seeing the image, then chances are that your path is wrong. Don't rely on relative pathing such as ../ to get to a resource. Always go from a known root to the resource - that way, you can assure yourself that you get to the resource from whereever you are in the site.
|
|
|
|
|
Yes, thanks fixed
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
No problem. It's always the simple little things that catch us out.
|
|
|
|
|
Hi,
Now I am unable to print the background image in the body tag or div tag that i have put. I tried in both body and div tags by putting the background image. It is showing but unfortunately its not printing.
Any help me please, its urgent and I am struck in all the ways.
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
indian143 wrote: We have to select the image depending upon query string, is it possible
You should research themes. Now, if the images changes or the path to it needs updated you need to fix the code, recompile, deploy and recycle the worker process, rather than update a CSS file.
indian143 wrote: its little bit urgent please
So how is your poor design and understanding reason for me, or anyone, to rush a response to you?
Failure is not an option; it's the default selection.
|
|
|
|
|
In HttpWebRequest a user can pass Method as Post OR Get OR Put OR DELETE etc.
But for our specific project I need to pass HttpMethod as "POST /api/login HTTP/1.0".
But this is not allowed in .NET CF.
Then can any one tell me workaround for this please for customizing Http Method.
Thanks in advance.
Reasons are not Important but Results are Important.
http://www.sql4professional.blogspot.com
Swati Tripathi
-- modified 23-Apr-12 7:39am.
|
|
|
|
|
Are you talking to a web service that requires a login first, before you transmit xml?
|
|
|
|
|
Anyone pls help,
i designed and tested my ASP.Net page locally with the Visual Studio built in test server and it worked fine, but when i hosted it, it gave me this error:
Runtime Error
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
And also:
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
Even with me modifying the code as the error message said it's still the same,
pls help.
|
|
|
|
|
1. Please don't repost the same question[^].
2. Explain what error you receive; we cannot guess what it may be.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
Not all the references (ddls) are hosted on the server. Make sure that you have deployed all the dlls and .net version is matching with development version.
|
|
|
|
|
Set CustomError Mode To ON instead of OFF, by this you can getexcat problem.
- Happy Coding -
Vishal Vashishta
|
|
|
|
|
Hello friends,
I need to fill all employee of all department in dropdown.Employee list should be diplayed in grouping as per deparment and heading of the department should be displayed.
so Is there any free available dropdown control having grouping functionality.
pls reply.Thanks in advance..
|
|
|
|
|
|
I need to know what is repository classes? how can i use them in ASP.NET Web forms and MVC?
|
|
|
|
|
|
Anyone pls help with this problem, i built an asp page and uplaoaded it but i'm getting the following error:
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
And also:
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
Pls help.
Thnx
|
|
|
|
|
fire_hawk wrote: i built an asp page and uplaoaded it but i'm getting the following error:
And the error would be...?
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Bro,
i'm getting a runtime error and i modified the code just as the error message said, but still did not solve the problem
|
|
|
|
|
Wouldn't it a good idea to tell us what the error is, instead of pasting what you think the solution is?
What you posted is Microsoft's way of saying, if you want to see the error, then adjust your web config file to look like this. Then we will show you the error.
So do that, get the error and post it again.
|
|
|
|
|
Okay br0,
thnx for the response, the confusing thing there is i've modified the code but it's still showing the same error, i'm confused here br0.
pls if there's anything u can advise me to do because i'm new to ASP.Net, pls help.
thnx.
|
|
|
|
|
There is a file in your project called web, which is a xml file. You have to edit the file element customErrors to mode = "RemoteOnly" like below, on your production web server.
<customErrors mode="RemoteOnly" />
After you edit the file, run the page again, and you will get a detailed error message explaining what error was detected, and then you can begin the process of fixing it.
It's done this way on purpose, so customers can't see your errors.
Or you can look in the event viewer of the server the website is on, and it will tell you what the error is.
|
|
|
|
|
Pls, my connectionstring, tell me how if it's correct like this:
<add name="AliConnectionString1" connectionString="Data Source=123appsoft.com\\biodux;Initial Catalog=Ali;Integrated Security=True"
providerName="System.Data.SqlClient" />
i'm suspecting my connection string pls help.
Thnx.
|
|
|
|
|
fire_hawk wrote: "Data Source=123appsoft.com\\biodux;Initial Catalog=Ali;Integrated Security=True" providerName="System.Data.SqlClient"
Your connection string is off
Data Source is ServerName\Instance, so if your running sql server express, it would be, I guessing Data Source = biodux\sqlexpress
"Data Source=biodux/sqlexpress; Initial Catalog=Ali; Integrated Security=True;"
Give that a try, but research the name of the sql server and the instance
|
|
|
|