|
I will check it....let we see...wt will happen...
Thanks....
Rajendran.AL
|
|
|
|
|
"r aa j" and "Member 4562872" are the same person?
|
|
|
|
|
Both are same.just now changed..now onwards I wont change....soory for an inconvinience....
Rajendran.AL
|
|
|
|
|
Hi all...
How does one lock a control (so that no info can be changed in lets say a dropdown box)? I want to display the info but not allow data to be changed manually?
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Are you trying to do like locking the control on winform? If yes, this feature doesn't exist in webform. (AFAIK)
Support123 wrote: I want to display the info
What kind of information you want to display? Example?
I'm not so sure what you are trying to do. It is better if you tell us your scenario with the example.
|
|
|
|
|
i want to make it so that the user cant enter anything but not to Enabled = false the control because it grays it out (i dont want that)
I might be wrong (so please correct me if i am wrong i have been working with c# for a while but i have much to learn.) but isn't there a property in C# called Locked ?
So you could have something like: ControlName.Locked = True
am i mistaken when i say that this bit of code locked the control so that no user input was excepted?.... If this is true... Is this property availible in ASP.Net as well?? (might it be that this property is only availible to textboxes???)
Thank you in advance.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Support123 wrote: it grays it out
I think you can change it to some other colors from CSS
|
|
|
|
|
I understand that you want to do display only??
Dropdown box don't have a ready only property.
So you canuse Enable property to false;
|
|
|
|
|
Hi, I want to download XPBurn Component for asp.net 1.1. But i didn't find it anywhere. Could you guys let me know any link from where i can download it. Thanks in advance
Arslan Ilyas
.Net Developer
Red Signal
|
|
|
|
|
There is no such thing. XPBurn is a component for C#, and as I said to you the other day, it will burn CDs on the server, not on the client. Unless your server has a CD stacker, or someone there to swap CDs, I don't see how it will help. You cannot use ASP.NET to burn CDs on the client side ( again )
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I've asked the client and he told me do it on server. So, i will do it on server but i didn't find xpburncomponent. please help
|
|
|
|
|
You're going to burn CDs on the server ? How is that going to work ? Once one client has burned a CD, how is it of use to them, and who puts in the next CD ?
I typed 'xpburn' into google, what did you type ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
when i press the back button in the browser after i logged out it moves to the previous page...
I dont want to happen this
what is the solution for that
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
I have an app that connects to a db in the Data Directory for Website Project. I am able to connect to the database fine locally. However, after I uploaded my project to my hosting provider's server and try to process a form that does a sql insert, I receive the following error:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure my be caused by the fact that under the default settings SQL server does not allow remote connections. (provider: Sql Network Interfaces, error 26 - Error Locating Server/Instance Specified.
My connection string to the datasource is as such in my webconfig file:
connectionString="DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|DefinaBackEnd.mdf;IntegratedSecurity=True;ConnectTimeout=30;User Instance=True"
and the call to the connecting string is called as such:
SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["DefinaBackEndConnectionString"].ConnectionString);
conn.Open();
Can someone please assist with how to resolve this as this site just looks for a sql db file as opposed to an instance of sql server itself. Thanks to all in advance.
|
|
|
|
|
As the error message say's you need to enable remote connections on SQL 2005. Goto Surface area configuration and choose remote connection tab. Click on allow remote connection and restart the service. For SQL express, check www.connectionstrings.com[^] to get proper connection string.
|
|
|
|
|
Hi,
Is this even the case when trying to connect to an mdf file stored in data directory as opposed to be stored within an instance of sql server? I do not have administrative access to my hosting server (as I use a solution provider to host my site) and just want to make sure that I give him the proper configuration solution.
|
|
|
|
|
dboy221 wrote: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure my be caused by the fact that under the default settings SQL server does not allow remote connections. (provider: Sql Network Interfaces, error 26 - Error Locating Server/Instance Specified.
This error seems like your Sql Server 2005 is configured to not to access remotely. To setup it do the following:
1. Open SQL Server Management Studio, login with Administrator Userid (Preferably "sa").
2. Right Click the SQL Instance in the Object Explorer and choose the Properties.
3. Properties Dialog would open.Choose Connections in Page List.
4. Check Allow remote connections to this server check box.
5. Click OK.
Thats it.
|
|
|
|
|
|
Hi Michael,
I attempted to modify the the web config file with a the custom SQL membership provider, but still received the error. Are there any other solutions that may assist with this? I have asked my hosting solution provider to look into the issue as well. I know that they have an instance of sql server 2000 on their server, but no express 2005.
|
|
|
|
|
dboy221 wrote: I have asked my hosting solution provider to look into the issue as well
I think this is the best thing. Because the most of hosting providers does have the documentation about how to connect the database in their hosts.. The hosting that I used before never install the database on their webserver. They used to have the seperated database server .....
|
|
|
|
|
Thanks. My hosting provider explain to me that they actually have an instance of SQL Express 2005 running on a separate server. I'll upload my .mdf file to that server and use the necessary credentials for my connection string.
|
|
|
|
|
Hi All,
I want to export to Excel from gridview. I have implemented it.
But if there is paging in gridview, it export only the rows on the particular page.
I want to Export All Rows of all pages.
for example I have 50 records and page size is 10. then there will be 5 pages
10 records per page. if I will export from page 1 then only 10 records will be export.
I want to export All 50 records once.
I use this code to Export to excel :
protected void ExportGridView(Control grdView, string strFileName)
{
string strfName = Server.UrlPathEncode(strFileName);
string attachment = "attachment; filename=" + strfName + ".xls";
Response.ClearContent();
Response.Buffer = true;
Response.AddHeader("content-disposition", attachment);
Response.ContentType = "application/unknown";
System.Web.HttpContext.Current.Response.Write("<meta http-equiv=Content-Type content='text/html; charset=utf-8'>");
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
grdView.RenderControl(htw);
Response.Write(sw.ToString());
Response.End();
}
Plz Help me.
|
|
|
|
|
If you have the dataset that hold all 50 records, you can generate the excel file by using Microsoft Excel object library.
OR
$unil Dhiman wrote: grdView.RenderControl(htw);
Instead of doing like that, I think you should loop though the dataset that has all 50 records.
|
|
|
|
|