|
Hi
I have created a website in ASP.NET 2.0 and i have added the reference tro a dll , dll icopied to the bin folder, what i want is that dll's referencedc should be present in other folder not in bin and they are configuration should be in web.config, hows this posssible, kindly reply ASAP, thanks in advance.
regards,
|
|
|
|
|
King Shez wrote: what i want is that dll's referencedc should be present in other folder not in bin and they are configuration should be in web.config
I didn't get your question. When one add the dll as refernce in project then the dll's class is accesible from all the codebehind files in that project.Please check the namepace of the class that dll is giving.
Cheers!!
Brij
|
|
|
|
|
Sorry man, this is not the problem, whenever i add the reference in website in ASP.NET it copies the dll to bin folder, but in webproject it adds th reference in references and we can configured these reference in web.config and we can change the reference path as well from the project settngs, how to do this in website, thanks for your response,
regards,
|
|
|
|
|
We have a FormView control to show customer information with paging enabled in an .aspx page named Customer.aspx. We can navigate page by page to show customer information per page. FormView datasource has been a SqlDataSource control which is calling a stored Procedure. And FormView dataKey has been set to be customerID.
Now in this page FormView nevigation is working well showing customer page by page order by their names.
We have another page named Sales.aspx, from which we can get back to our previous page named Customer.aspx by clicking a button. At this time we are taking a particular customerID in Session and calculation the rowid/position of this customer [with an order by query which is the same with the stored procedure of FormView Datasource]. Now we are doing
FormView1.PageIndex = CustomerPosition;
So that we can directly go to the FormView page where this customer is and as FormView datakey is the customerID we can view this particular customer data in that FormView page.
Instead of this we are having a wrong customer data in that page of FormView. What is more interesting here that not every time this is happening……sometimes it is working fine showing correct customer information in FormView pages and ‘Next’,’Previous’ working fine with correct results. Here by correct customer I mean that particular customer which belongs to that FormView page. We have checked our log file. There we have found out that after FormView pageindex has been changed, sometimes (randomly) FormView.selectedvalue is wrongly referring to a different CustomerID which was not the correct one.
The whole behavior is completely random and does not have a recognizable pattern. Sometimes (randomly) FormView.selectedvalue is choosing a wrong value and it’s a read only field. While running it at our local boxes, the frequency of error is less whereas frequency of error is more when we are running it at our server. We are using windows server 2003, Sql server 2005 and IIS6 and ASP.NET 3.0
Any suggestions will be greatly appreciated. Thanks.
|
|
|
|
|
Double check your sort. Does the order by clause guarantee the same sort every time? If they column list does not include at least one unique value, the answer is no. I ALWAYS include a unique column such as the PK in the sort as the last column if nothing else, when creating stored procs that return records.
Add the PK in your sort.
|
|
|
|
|
Hi all,
i am using a ajax calendar control when i select a date from it i want to do some operations on selection of a date.
How can i do??
Thanks in advance....
|
|
|
|
|
You can handle the "TextChanged" event of the "Textbox". so whenever user changes the date. you can handle the event using TextBox.Text Property.
Select the Textbox which bound with the Calendar Extendar, then go to Property window, Select Events and find the "TextChanged", double click and code for .Text Property. Done.
|
|
|
|
|
Hi everyone,
I wish to know ..is it possible to create a mail application without opening a new port?I mean I wish to embed this functionality in a sharepoint site which is already using one port and the security restrictions dont allow us to open a new port.Can we use the same port simultaneously to use this mail application?
|
|
|
|
|
The only port necessary for SharePoint is 80, standard HTTP, what port are you talking about? Sending an email doesn't require a port to be opened, unless your SharePoint box is also the SMTP server, in which case it would be a bad idea.
only two letters away from being an asset
|
|
|
|
|
I am currently using windows 2003 server which comes with inbuilt sharepoint services and also contains SMTP and POP3 servers.I wish to know if your reply is also applicable for a chat application i.e, do I need to open a port for embedding a chat app in a website or can I implement it without opening any port?Please help!!!
|
|
|
|
|
hello frnds..
i am using asp.net and c# code behind.i want to use a hindi text file,when a user click the button the data comes up in hindi but when i attach a hindi text file in project it automatically converts in some other language???
how can i solve this problem???
its urgent...
tell me in detail plz..
Rahul Sharma
|
|
|
|
|
merahul wrote: its urgent...
The client is asking for delivery or is your homework late?
only two letters away from being an asset
|
|
|
|
|
merahul wrote: data comes up in hindi but when i attach a hindi text file in project it automatically converts in some other language???
Hindi text font must be installed on client computer. Otherwise it will display some non-readable text.
Try saving the image of HindiText and display that on webpage. It will never create problem.
|
|
|
|
|
what does it mean???any other way to solve this problem???
|
|
|
|
|
To display the text correctly, hindi font must be installed on client PC, what is not possible.
Take a screen shot of your text and display image in page.
Its simple, i think
|
|
|
|
|
|
Hi in one of my string i have assigned date, the format is dd/mm/yyyy
Now i want to change the string as mm/dd/yyyy
plz give me a guide how to change it
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Member 3879881 wrote: Hi in one of my string i have assigned date, the format is dd/mm/yyyy
Now i want to change the string as mm/dd/yyyy
There are many ways to do it .
this is an example.
string strdate = String.Format("{0:yyyyMMdd}", DateTime.Now);
Try google, there are lots of example over there .
|
|
|
|
|
Hi abhijit
Thanks for ur reply,
See i have a date format already in a string, in this format(dd/mm/yyyy);
so my string have a value like this 21/02/2008
Now i have to change the string as mm/dd/yyyy (i.e: 02/21/2008)
if u have any idea plz share with me
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
string date = textBox1.Text;
DateTimeFormatInfo dateTimeFormatterProvider = DateTimeFormatInfo.CurrentInfo.Clone() as DateTimeFormatInfo;
dateTimeFormatterProvider.ShortDatePattern = "dd/MM/yyyy";
DateTime dateTime = DateTime.Parse(date, dateTimeFormatterProvider);
string formatted = dateTime.ToString("MM/dd/yyyy");
response.write(formatted);
I hope this resolves ur problem
|
|
|
|
|
Member 3879881 wrote: See i have a date format already in a string, in this format(dd/mm/yyyy);
so my string have a value like this 21/02/2008
I will suggest you to retrieve the required String format here itself . rather than taking it some other format.
Member 3879881 wrote: Now i have to change the string as mm/dd/yyyy (i.e: 02/21/2008)
if u have any idea plz share with me
use Split
|
|
|
|
|
yourdatevariable.ToString("mm/dd/yyyy");
umerumerumer
|
|
|
|
|
mr_muskurahat wrote: yourdatevariable.ToString("mm/dd/yyyy");
If you are using DateTime:
mm is minutes
MM is Month
yourdatevariable.ToString("MM/dd/yyyy");
|
|
|
|
|
I have created a link button as signout.
On click of liink button i have done following coding
FormsAuthentication.SignOut();
Response.Redirect("Login1.aspx");
This works only if i try to access any page by typing in url.
but if i click on back button it permits me to visit the page..
Might be my cookies are interfering with this as i have used persistant cookie on the login page..
Please suggest a soln to this
scotchy
|
|
|
|
|
Hi scotchy
The page is probably being cached.
To turn off caching for the page, use this code:
Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
Regards
Rajeesh MP
|
|
|
|