|
Hi,
we have a team of 5 to 7 programmers working on a single asp.net project. And we are using visual source safe for team management here. We have one asp.net website and one associated class library whose dll is added as a reference in the website.
The problem is when i want to debug i can debug pages from website very easily but when i come a point where i m accessing some routine through object of a class library it does not allow me to debug into that class of class library although i have added its dll as a reference in the website.
Second thing is when i make any change in any of the classes of class library it does not allow me to update or re-build the dll again through source safe.
Does anyone have any suggestions on it? am i missing something here or going wrong somewhere ?
Pls answer as this is the first time we are implementing source safe and that too for a very critical project.
|
|
|
|
|
Hi
Dont add dll to source safe only add classes on source safe and let others to take latest version at their end and than build at their end.
We also went through same problem
|
|
|
|
|
Thanx for the solution ... will definately try it out .... and reply for the same
|
|
|
|
|
Hi,
i try to use the Calendar control in a SharePoint-Webpart. Everything looks fine, except that i cannot use any button within the control or select any date.
I create an instance of the calendar within the CreateChildControls-EventHandler, I set my styles in the PreRender-Eevent, and render the Calendar.
Calendar calendarControl;
protected override void CreateChildControls()
{
calendarControl = new Calendar();
this.Controls.Add(calendarControl);
SetStyles();
}
public override void RenderControl(HtmlTextWriter writer)
{
calendarControl.RenderControl(writer);
}
private void SetStyles()
{
calendarControl.Style.Add("vertical-align", "middle");
calendarControl.BackColor = Color.WhiteSmoke;
calendarControl.NextMonthText = "Next";
calendarControl.PrevMonthText = "Prev";
calendarControl.Style.Add("float", "left");
calendarControl.Style.Add("margin-right", "30px");
calendarControl.TodayDayStyle.BackColor = Color.LightBlue;
calendarControl.SelectorStyle.BackColor = Color.Wheat;
calendarControl.DayRender += new DayRenderEventHandler(calendarControl _DayRender);
}
protected void calendarControl_DayRender(object sender, DayRenderEventArgs e)
{
if(e.Day.IsOtherMonth)
e.Day.IsSelectable = false;
else
e.Day.IsSelectable = true;
}
Any Ideas why this does not work?
|
|
|
|
|
how to add sms gateway and its webservices to an asp.net application...plz show me in detail...
iam using smsgateway url:^]thanx...
|
|
|
|
|
Check out the website of that SMS Gateway provider. there should be some exaples / tutorials on the website. if not then you can ask Support department to provide some documentation for the interface. if this is also not working then please change the Gateway Provider 
|
|
|
|
|
|
public void OpenNewWindow(string url)
{
string winFeatures = "toolbar=no,status=no,menubar=no,location=center,scrollbars=no,resizable=no,height=300,width=400";
ClientScript.RegisterStartupScript(this.GetType(),"newWindow", string.Format("window.open('{0}', 'yourWin', '{1}');", url, winFeatures));
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Session["Admin_Id"] != null)
{
//Lbladminname.Text = "Hi" + Session["username"].ToString();
// Response.Write(Session["username"].ToString());
//Lbladminname.Text = "Dear" + Session["username"].ToString();
//showlastlogindata();
showlastlogindata();
Label lbl = (Label)Master.FindControl("Lbladminname");
Label lblt = (Label)Master.FindControl("Lbltime");
if(lbl !=null)
{
lbl.Text =" Welcome " + Session["username"].ToString().Trim();
}
if (lblt != null)
{
lblt.Text = DateTime.UtcNow.ToLongDateString().ToString();
}
//HttpCookie mycookie = Request.Cookies["link"];
if (Session["link"] != null)
{
//Response.Write(Session["link"].ToString());
Response.Redirect("PropertyViews.aspx");
}
else
{
OpenNewWindow("Remainder.aspx");
}
//Lbllastlogin.Text = Session["username"].ToString();
}
else
{
Response.Redirect("Adminlogin.aspx");
}
//addlogs();
}
}
iam calling the javascript function in Page_load ,its working properly ,but the pop window is not displayed.so please some one help me i have specified my total code above
thanks in advance
|
|
|
|
|
saibabuvenkata wrote: iam calling the javascript function in Page_load ,its working properly ,but the pop window is not displayed.so please some one help me i have specified my total code above
Are you using AJAX Scriptmanager in your page?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
i am not using Ajax controls in this particular page
|
|
|
|
|
Make sure that browser's "block pop-up windows" option is off.
|
|
|
|
|
Hi,
it looks like you are missing some quotation marks.
Try this:
string.Format(@"<script type=""text/javascript"">window.open('{0}', 'yourWin', '{1}');</script>"
If that does not help, check your if-clauses. I tried the code myself and everything worked fine.
|
|
|
|
|
Hi!
I have a gridview with TemplateField column i need to get gridview row values on rowcommand event ,to update a gridview row how?
im writing GridViewRow rf =GridView1.Rows(e.CommandArgument);
n1 = rf.Cells[0].Text ;
but it doesn't work!!
Thanks
|
|
|
|
|
Hi,
I am working on a project, in this I need to pass parameters to a stored procedure or query which is using 'in' Keyword
The query will be like this:
select VideoTitle from Item where ItemId in(select ItemId from GroupLink where GroupId in(139,76,86))
This is working fine. But when I pass the GroupId as parameters to a stored procedure to make the query dynamic as:
CREATE PROCEDURE [dbo].[Procedure]
@GroupId INT
AS
BEGIN
SET NOCOUNT ON;
select VideoTitle from Item where ItemId in(select ItemId from GroupLink where GroupId in(@GroupId))
END
if I pass the parameters like:
exec Procedure (2,3,4)
or
select VideoTitle from Item where ItemId in(select ItemId from GroupLink where GroupId in('"+IDs+"'))
string IDs=2,3,4;
I am getting a error
If anyone have any solution to solve this, please kindly help me.
|
|
|
|
|
You can do as the following...
CREATE PROCEDURE [dbo].[Procedure]
@GroupId as varchar(500) = ''
AS
BEGIN
SET NOCOUNT ON;
DECLARE @query as nvarchar(500)
set @query = 'select VideoTitle from Item where ItemId in(select ItemId from GroupLink
where GroupId in (' + @GroupId +'))'
exec SP_EXECUTESQL @query
END
Now execute the procedure as exec Procedure (2,3,4)
I used to do like the above whenever I have to retrieve the values based on a list...Don't know if it has any performance issues...
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
modified on Friday, March 13, 2009 8:28 AM
|
|
|
|
|
Hi, I am using SQL in my project. I want to fetch only time alone. I know to fetch Date. How to fetch time? Can any one tell?
|
|
|
|
|
Use DatePart function for e.g. SELECT DATEPART(hour, '2007-06-01 10:00:01') gives you the value 10. as it queried for hour.
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
S. Is it possible to fetch the full time?
|
|
|
|
|
Hmmm...You must have used Google by this time any way follow the link Get Time[^]
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
See my reply to your CROSS POST, which, by the way, is a bad thing.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi Friends,
i have used aspnet authentication to logging into my site.When i click logout and i click back button,i can see the last page.How can i logout properly.I used FormsAuthentication.Signout() to logout.What is the problem of dont properly logout fro site.
|
|
|
|
|
Hi,
After clicking the logout button,the all the cookies will be cleared... and when you click on back button it shows only UI and links...
if you want you can test it by clicking any link (button/link),you will not get any user information and automatically it will redirects to your redirected page..
if not like that,you have to clear all the cookies and abonden all the session variables
S Kumar
|
|
|
|
|
How can i clear all cookies when we click on logout.
|
|
|
|
|
Hi,
'clears formsauthentication cookies
Response.Cookies.Remove(FormsAuthentication.FormsCookieName)
'clears all sessions variables of application
Session.RemoveAll()
Session.Abandon()
S Kumar
|
|
|
|
|
Hi Friend,
I Given the code but it willnot cleared the cookie and i can took all datas,it willnot ask again to login.
|
|
|
|