|
/ - root directory of site
./ = current directory
../ = up one directory level from current directory
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
|
"." is the current folder, which means that "./popup.aspx" and "popup.aspx" are equivalent.
".." is the parent folder.
An url starting with "/" is relative to the root of the site, while other urls are relative to the current page.
In server controls you can also use "~", which is the root folder of the application. "~/SomeFolder/popup.aspx" will always produce an url to the same file, regardless if the application is at the web site root or in a folder.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
thanks alot all for your suggestions and replies.
Is there a link or an article in internet that explains these things further with examples? I've tried google, but it is not returning any result if i give "../" in the search textbox.
Regards,
Blumen
|
|
|
|
|
blumenhause wrote: Is there a link or an article in internet that explains these things further with examples
Still I am not getting what is there in these ? It's just simple concepts, still are you confused ?
|
|
|
|
|
I agree its simple concept. As I indicated in my previous post, I want to access a user control from multiple forms.
It works if I put the user control in the project folder, but then I have to copy the user control to every project folder. Is there a way to put this control in a single location and access it from all forms?
|
|
|
|
|
Can you show me the folder structure for your application ? Is your application uses a virtual directory or running directly from wwwroot ?
|
|
|
|
|
its using a Virtual Directory.. I have the aspx files in D:\Projects\TestP and dlls in D:\Projects\TestP\bin.
|
|
|
|
|
craete a folder from the root called 'mycontrols' and put yoour control in there. Then you can access from any other folder by
"/mycontrols"
or
"~/mycontrols"
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Thanks for that, I'll try it.
|
|
|
|
|
how can i take only month from datetime field of the database
|
|
|
|
|
Try this:
SELECT Month(JoinDate) As MonthOfJoining FROM Employee
|
|
|
|
|
protected void Button1_Click(object sender, EventArgs e)
{
foreach(ListItem li in ListBox1.Items )
{
if (li.Selected==true)
{
Roles.DeleteRole(li.ToString());
}
}
ListBox1.DataSource = Roles.GetAllRoles();
ListBox1.DataBind();
}
What is the pbm in this code .while clicking the delete button the roles willnot be deleted from the aspnetprovider database
|
|
|
|
|
li.ToString()...returns string "System.Web.UI.Controls"...use li.value
Koushik
|
|
|
|
|
i tried the code u specified agin it will not wrk .what to do?
|
|
|
|
|
|
System.Web.UI.WebControls.ListItem' does not contain a definition for 'selectedvalue' This error occured
|
|
|
|
|
Hi all,
I need to assess two types of controls so i can personaly buy one of them. I have done some research on Telerik controls and Intersoft controls. Personaly i sensed from examples without trying them that Telerik is better, may be not better but more user friendly. If some one has been into using one of them, plz give me your comments. I know it is related to everyone's needs and expectations but from your experience with one of them what did u conclude.
thanks in advance.
|
|
|
|
|
I've only used Telerik. They seem OK to me, they do what they claim to.
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 )
|
|
|
|
|
we have been using Telerik controls, I personally have used only RadGrid. It seems fine, but now company is planning to consider other controls.. they want to have better looking controls!
Regards,
Blumen
|
|
|
|
|
Hello ,
I am working in asp.net 1.1 ,I am created data grid statically in aspx , but rendering template columns dynamically depends on DataBase values selected from drop down.I am able create txt box ,drop down etc in the template columns , but unfortunately not able to pick values from the control inside the datagrid and not able to retain values during postback.
Pls help to solve this probs.....
Thanks in Advance.....
Regards
Vipin Raj
|
|
|
|
|
I think its because you have created the controls dynamically. Check whether you have given unique names for each control like txtOne,txtTwo etc. Pick the values from the controls at runtime and load them into arraylists. Then it will be possible
|
|
|
|
|
Hello Sir,
I am created tempalte columns in the datagrid dynamically with some text box and drop down , i am given unique id also to them, but in data grid there can be more than one row with same control and data grid render its own id like - dg__ctl02_txtAmt.
The thing is that if i am using dgGrid.Items.Count - its shows zero , even though it got more than two rows.
Sorry if i am not clear to you.
Vipin Raj
|
|
|
|
|
Try using panel instead of datagrid
|
|
|
|
|
While submitting the page retrieve these values through Javascript and store all the values by making comma separated in the hidden variable and then access those values on server side from hidden variable.
I would like to know one more thing that in Page_Load event whether you have written or not 'If (!IsPostBack)' . If you have not written this condition then there might be the chance that during Page_Load event firing these controls are removed if you are generating the control dynamically. If you put this condition and try to retrieve these controls value with in this condition then you might be able to retrieve it.
Satish Agrawal
|
|
|
|