|
Amandeep Singh Bhullar wrote: 2. Search for vssver2.scc
You need to delete 3 files
1.vssver.scc
2.mssccprj.scc
3.YourProject.vssscc
and Please Check This, It will Resolve Your Problem[^]
cheers,
Abhijit
|
|
|
|
|
Abhijit Jana wrote: YourProject.vssscc
As it is a web site project there is no project file. But they are gone for the other real projects.
Abhijit Jana wrote: It will Resolve Your Problem[^]
I've also done what's in there too. So, here's hoping it all works.
I've tried opening and closing the solution a couple of times now and the bindings are gone still.
|
|
|
|
|
Amandeep Singh Bhullar wrote: Select All the files of project. Check the Properties, remove the read only.
Okay - Done that.
Amandeep Singh Bhullar wrote: Search for vssver2.scc, hidden system file. Delete this file.
Okay - Done that too.
I've also removed the reference to SCC in the solution folder. And removed the SUO file. Visual Studio picked up the changes and... I still see the bindings.
I closed VS2005 and I notice that its updated the solution file and added the bindings back. (The vssver2.scc file is still gone though.) I presume VS must have had the bindings in memory. So, I remove them again. And open the project by double clicking the solution in Explorer. The bindings are back again.
If I go to File->Source Control->Change Source Control... I see that the Website project has bindings and the others don't. I press the the project and press the "Unbind" button and Okay the dialog. After a few moments the bindings disappear.
I close VS and then open the solution again by double clicking the solution file in Explorer. The bindings are still gone.
I've been to this point before, but after a reboot the bindings came back.
Do you see anything that I'm missing?
|
|
|
|
|
Everything seems to be working now. I've opened and closed the solution a few times, rebooted, and so on. The bindings seem to have gone for good (I hope).
|
|
|
|
|
All The Best Sir !!!
cheers,
Abhijit
|
|
|
|
|
Hi,
My Listbox control works fine, at design and run-time. One minor bug (if I can call it that way) is that the ListItems aren't displayed inside the control as the original Listbox does at design time. The collection works fine and they are shown at run-time fine too.
I'm posting some code I think it's important, if you find usefull, I'll post the whole Listbox code.
Just one more thing: I don't want the "Selected" property be available at design time. I tried [EditorBrowsable(EditorBrowsableState.Never)] but it didn't do anything.
ListBox:
public class ListBox : System.Web.UI.WebControls.WebControl
{
private ListItemDataCollection listData = null;
public ListItemDataCollection ListItems
{
get
{
if (listData == null)
{
listData = new ListItemDataCollection();
}
return listData;
}
}
protected override void Render(HtmlTextWriter output)
{
if (Rows > 1)
{
output.AddAttribute(HtmlTextWriterAttribute.Size, Rows.ToString());
if (MultipleSelections)
output.AddAttribute(HtmlTextWriterAttribute.Multiple, true.ToString());
}
base.Render(output);
}
protected override void CreateChildControls()
{
Controls.Clear();
for (int i =0; i < ListItems.Count; i++)
{
Controls.Add(ListItems[i]);
}
}
public override ControlCollection Controls
{
get
{
EnsureChildControls();
return base.Controls;
}
}
}
ListItem:
[ToolboxItem(false),
ToolboxData("<{0}:ListItem runat=server>"),
TypeConverter(typeof(ExpandableObjectConverter))]
public class ListItem : System.Web.UI.Control
{
public ListItem(string text, string value)
: base()
{
Text = text;
Value = value;
}
public ListItem() { }
public ListItem(string text, string value, bool selected)
: this(text, value)
{
Selected = selected;
}
#endregion
public string Text
{
get
{
object text = ViewState["Text"];
if (text == null)
return string.Empty;
return (string)text;
}
set
{
ViewState["Text"] = value;
}
}
public string Value
{
get
{
object value = ViewState["Value"];
if (value == null)
return string.Empty;
return (string)value;
}
set
{
ViewState["Value"] = value;
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Selected
{
get
{
object selected = ViewState["Selected"];
if (selected == null)
return false;
return (bool)selected;
}
set
{
ViewState["Selected"] = value;
}
}
protected override void Render(HtmlTextWriter writer)
{
base.Render(writer);
writer.AddAttribute(HtmlTextWriterAttribute.Value, Value);
if (Selected)
writer.AddAttribute(HtmlTextWriterAttribute.Selected, true.ToString());
writer.RenderBeginTag(HtmlTextWriterTag.Option);
writer.Write(Text);
writer.RenderEndTag();
}
}
public sealed class ListItemDataCollection : List<listitem>{}
</listitem>
Thanks,
Dirso
|
|
|
|
|
I am working on an asp.net application. I have a class file, in which I want to get physical path (location) of the file (on which I am working on) at runt time.....
Path can be something like "D:/Projects/myweb/"
Remember, I cannot use server.mappath() because it is not an aspx file, rather a simple class (.cs) file.
|
|
|
|
|
I don't think you can do this - the .cs file will be compiled into a DLL which is wouldn't contain the actual file reference. Since a DLL is portable, having a reference to where the file was developed wouldn't make any real sense.
It definitely isn't definatley
|
|
|
|
|
Add name space "System.web" in your class file..
Get application path by following line of code:
string applicationpath = HttpContext.Current.Server.MapPath("");
|
|
|
|
|
yasir1024 wrote: Server.MapPath("");
But you said you could not use Server.MapPath() already.
|
|
|
|
|
Try using Environment class
|
|
|
|
|
i m downloading aspx page content in form of excel but to add worksheets in excel i have to use microsoft.office11.0 obect library com component i can use in local but how can i use this refrence in live
|
|
|
|
|
|
My Question is how can we access DataTable events inside a Dataset in ASP.NET because I can't access the Partial Class for writing logic for RowChanging or RowChanged events. Thanks in advance !
AliAmjad
First make it Run THEN make it Run Fast!
|
|
|
|
|
You can access the DataTable as a property of the DataSet and then refer to the events from there so you should be able to subscribe to the event dataset.Tables[0].RowChanged
It definitely isn't definatley
|
|
|
|
|
Thank you buddy for your response and putting me in the right direction
AliAmjad(MCP)
First make it Run THEN make it Run Fast!
|
|
|
|
|
hello,
Can i create a web application setup or project using installshiled12.
(i have to install also a database and ...).
best regards
dghdfghdfghdfghdgh
|
|
|
|
|
ellllllllie wrote: Can i create a web application setup
Yes you can Create a Web SetUp Project .
Have a look[^]
cheers,
Abhijit
|
|
|
|
|
Hi Experts,
I have a web site in ASP.Net with Sql Server 2000 as DB. My problem is that the web application is not allowing concurrent logins to it. Once a user logs into the site starts some process, the database get locked and other user can not get access to the site. For the first user it works fine but other concurrent connections it gives me following error message:
"{"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interface..."<br />
I don't know whats the reason for this. I think I am missing some settings in my server.
I have used following connection string
"Data Source=MyServer; Initial Catalog=MyDb; User ID=un; Password=123456; MultipleActiveResultSets=True; pooling=true"<br />
Can anyone help me out. Its very urgent.
__________________
Regards,
Paramhans Dubey.
|
|
|
|
|
Check you code . Are you using Conn.Dispose() any where of your application ?
cheers,
Abhijit
|
|
|
|
|
Hi Abhijit,
Thanx For your reply. answer is No. I have not used Conn.dispose() anywhere in my code.
|
|
|
|
|
I think This[^] link will may help you out .
cheers,
Abhijit
|
|
|
|
|
Have you looked to see if anything is locked in your database after the first user has logged in?
|
|
|
|
|
Are you able to connect to the DB server via Query analyzer or through remote desktop.
Think you dont have rights to connect to the server.
|
|
|
|
|
Yes i am able to connect to database using query analyzer.
|
|
|
|