|
|
How can I set a background image? Cause whenever I set it in the FORM and launch it, there is always this space around that form which is the document. So how can I set the form to the Document so there won't be any spaces at the sides..
thanx in advance...
|
|
|
|
|
set it to the body tag
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
eivah wrote: How can I set a background image?
body {
background-image: url("image_name.jpg");
background-repeat: no-repeat;
}
Or you can use DIV for the same .
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
aha.. but exactly where am I suppose to put that code?? Pardon for I really dont have any idea
|
|
|
|
|
In application state management technique, What will happen if multiple users trying to update the same object same time ? How to handle this situation ?
|
|
|
|
|
The last one in wins. Obviously, if you need to maintain settings per user, then Application state is not the tool to use.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
If you are going to update Application Object you have to use Local() and Unlock() , as data are shared for all users. Here is the way ,
Application.Lock();
Application["Counter"] = (int)Application["Counter"] + 1;
Application.UnLock();
Hope this will help you !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Halo, I'm interested in the study of the HTTP and SMTP protocols commands and I would like to be able of analyze the content of the commands sequence between a client and the server gathering the requests and response messages of each one, please which tool suggest to me for studying these sequences.
Best Regards
|
|
|
|
|
I am developing a website where users will search on some address fields and get a gridview list of all possible matches for images in a database. The images aren't actually stored in the database, they are tiff files on the webserver, the address information and a link to their location is what is stored in the database. I need a handy control that can view tiff files and do some basic operations with them. Go to the next page, last page, print all pages, etc. It doesn't matter if it is a pop up window or something I can embed into the page somewhere.
I have the searching feature working and it pulls up a gridview of matches, but now I just have a seperate page that gets the file path passed by the querystring and it uses GDI to load the tiff from file and stream it to the response.outputstream of that second page. That means I can't put ANYTHING on the page like buttons to control next, prev etc.
Is there a good way to go about doing something like this? Is a user control what I am looking for? If so does anyone know where I would find something free that I could use?
I have some sample images but I don't have a good spot to upload them for viewing right now.
|
|
|
|
|
I am try to upload files from my computer to a server machine using WCF in Silverlight. Often i can achieve this but sometimes there occurs a problem and stops uploading. Silverlight error is: "The remote server returned an error: NotFound." and at the status bar of the web page there is a black exclamation mark in yellow triangle says error at page. This is details of it: unhandled error in silverlight 2 application at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallBack beginMethod, Object state) at Syste.Net.Browser.BrowserHttpWebRequest.EndGetResponse (IAsyncResult asynResult) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse (IAsyncResult result) at ....
And after i found where error occurs
(wsUploader is my WCF and svluploader is silverlight project.)
public svlUploader.wsUploader.UploadResponse EndUpload(System.IAsyncResult result) {
object[] _args = new object[0];
svlUploader.wsUploader.UploadResponse _result = ((svlUploader.wsUploader.UploadResponse)(base.EndInvoke("Upload", _args, result)));//<b>error occurs in this line</b>
return _result;
}
So help me..
modified on Monday, December 14, 2009 3:36 PM
|
|
|
|
|
Try the Silverlight forum?
All those who believe in psycho kinesis, raise my hand.
|
|
|
|
|
Can somebody please explain how we can access the application attributes in client code?
|
|
|
|
|
msell0150 wrote: Can somebody please explain how we can access the application attributes in client code?
You question need for more clarity. What do you mean by Application Attributes ? What kind of attributes you want to access from client code ?
Please give proper explanation so that we can help you in better way.
Thank you !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
In the BitKoo Keystone application you are able to define Roles, Functional Abilities, Secured Entities and also Attributes per Application. My question is how do you access the attributes associated with a given application via the keystone API?
There is a custom Keystone ASP.Net Membership provider defined, is it possible to access the application attributes via the Membership Profile Properties or by any other method?
|
|
|
|
|
Why not ask the vendor, they are most likely to know.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
I am currently trying to make a stock scanner similar to the one in:
http://screen.morningstar.com/screener_etf/etf_screener_version1.aspx
However, I couldn't figure out how to create the middle part where all currently selected criteria are listed (with sliders). Ideally, the mechanism should allow a new criteria row to be added, along with the slider controls and textboxes, each time a user click on the "Add criteria" or "Add category" button. Is this created with a placeholder function, a listview, a panel, or a table?
Could you please give me some ideas how the middle region could be designed? Thanks!
|
|
|
|
|
I can see the middle part is designed wonderfully using CSS and Div's.
Just you need to place the divs absolute positioned and height based on the data to display the chart like figure.
Other than that, if you place appropriate CSS it is not a big deal to add textboxes and interact with this.
But one thing is for sure, you need a strong grip on Javascript and CSS to design such a thing.
|
|
|
|
|
As Abhishek suggested you can create it using DIV and CSS. Or Even you can create one server side custom control for it. Add textboxes and other dynamic control on the click on "Add Criteria" or "Add Category" button.
As you need to do handling with dynamic control, please be careful regarding creation of control as well as the maintain of viewstate.
Good luck !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Wow...that really seems way out of my ability at the moment, as I have minimal experience on javascript.
Can I probably produce the same result with Placeholder control and dynamically add controls to it in code behind?
In any case thanks for the help!
|
|
|
|
|
I am running a web service, which provides some updated quotes every 2 minutes. It takes quotes from a quote server.
I expected this service to establish a single connection to the quote server.
But few times I have notices that this web service establishes more than one connection to the Server.
I think that the updateManager.Start() method is called more than one time. But how that could happen? Whether the
Application State object is destroyed because of timeout or any internal error? I have a Destructor in UpdateManager Class. Will that be called automatically or I have to call it explicitly? If so how?
I welcome your advise and comments.
public class Service : System.Web.Services.WebService
{
UpdateManager updateManager;
string key = "update";
public Service()
{
if (Application[key] != null)
{
updateManager = (UpdateManager)Application[key];
}
else
{
updateManager = new UpdateManager();
Application[key] = updateManager;
updateManager.Start();
}
}
[WebMethod(Description = "Get the Current Quote")]
public string GetUpdate()
{
return updateManager.GetUpdate();
}
}
|
|
|
|
|
If you are putting the same object in application, I think there shouldnt be any problem.
The code looks fine to create one object only which could handle as many session as you want.
The only possibility of getting more than one connection is if, a client Requests for GetUpdate and its request is placed just before the Application object is set.
I mean, Client 1 requests GetUpdate, which finds that UpdateManager is missing in Application, Meanwhile client 2 makes a request. Client 2 also finds updateManager missing as it is not set to the application object yet.
Thus it starts creating another updateManager.
The possibility is there for everytime the updateManager object is recreated.
|
|
|
|
|
Abhishek Sur wrote: The code looks fine to create one object only which could handle as many session as you want.
No it doesn't. It looks horrible in fact.
Best wishes,
Navaneeth
|
|
|
|
|
Thank you for your comments.
I am sure that no clients are connected when the application starts up. And I dont want to implement Application.Lock() because I dont want the clients to wait and also the clients will not modify the updateManagerObject in the Application State.
I tested the UpdateManager class with Windows Forms and found that the Receiver Thread in UpdateManager class(Which downloads data from the Server) is orphaned sometimes. I simulated the same in the Web Service Also.
[WebMethod(Description = "Get the Current Quote")]
public string GetUpdate()
{
updateManager = new UpdateManager();
Application[key] = cache;
updateManager.Start();
return updateManager.GetUpdate();
}
This happens whenever the updateManager is re-initialized without destroying the old object. If the previous object is destroyed properly (by calling Dispose method) then everything works fine and no orphan Threads.
As you can see from the Web Service Constructor, the updateManager object is initialized when that object is null. Other wise it takes from the Application Object.
My question is How an object which is initialized and Stored in Application object becomes null? Since it becomes null the UpdateManager Constructor is called once again. How can I cal the Dispose() method?
I have no way to find the orphan threads, to destroy them.
Please suggest me some solutions.
|
|
|
|
|
As far as I know, Application object is reinitialized only if :
ASP.NET source is modified, which makes the ASP.NET to recompile,
# Adding, modifying, or deleting assemblies from the application's Bin folder
# Adding, modifying, or deleting localization resources from the <code>App_GlobalResources</code> or <code>App_LocalResources</code> folders
# Adding, modifying, or deleting the application's Global.asax file.
# Adding, modifying, or deleting source code files in the <code>App_Code</code> directory.
# Adding, modifying, or deleting Profile configuration.
# Adding, modifying, or deleting Web service references in the <code>App_WebReferences</code> directory.
# Adding, modifying, or deleting the application's Web.config file.
Check this :
http://msdn.microsoft.com/en-us/library/ms178473.aspx[^]
|
|
|
|