|
when you declared name="name" in web.con fig it act as run time parameter.
here you assign this to your textbox properties.
pls see your textbox properties: id,name,size,this are all free defiend properties.
when you try: all redy You assign textbox name:txtName.
again your reasign with txtbox property. so try to change the name in web.config.
i sure you get result
|
|
|
|
|
how about posting your code, and your exact error message so we can look at your problem instead of having to guess ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hi I have a problem regarding divs. I created a javascript function to change the position of a div. The problem is that this div is in another div and the function is not effective. I tried this function on other divs and worked but when the divs are in another div it does not work. Can someone tell me how make the function work for this div please?. I thank you infront. The function is the one below.
function gotoposition(xpos,ypos,div1)
{
e=document.getElementById(div1);
e.style.left = xpos +'px';
e.style.top = ypos + 'px';
}
|
|
|
|
|
Your question has nothing to do with ASP.NET.
Web development questions should be posted in the web development forum.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
True - but I'd tend to be forgiving, the web dev forum is a ghost town, and this is obviously a question that's come up using ASP.NET. A lot of people have trouble working out where ASP.NET ends and web dev begins.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 would imagine that the position of the inner div is constrained by the outer div.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
hai,
i m using ASP.NET with C# (.net 2005, 2.0 framework)
here i have a datagrid which contains 10 columns.
the 4,5,8 column contains date in the format (7/23/2007 12:00:00 AM). i want to change those date in (23-Jul-2007). the major key point in this is....
1. Fields are dynamic, so i cant fix in DATABOUNDCOLUMN
2. The placement should be the same (i.e, 4,5,8 columns)
3. The data are filled to datagrid from SQL Server.
How to achieve it? help me...... - KARAN
|
|
|
|
|
Hi can acheive that in two ways.
John Sundar wrote: i want to change those date in (23-Jul-2007).
1) while writing query to retriew data from SQL server you need to use convert function.
eg: select convert(varchar,DateColumn,105) from tablename
2) In databound of datagrid coloum u can foramt.
Regards,
Sandeep Kumar.V
|
|
|
|
|
Thanks sandeep kumar.V
but the thing i need is "DD-MMM-YYYY" (this exact format).
and also i need the alias name also... my exact query.....
select convert(varchar,column1 as "Test column",106) from tbl_name
how to achieve it?????
|
|
|
|
|
John Sundar wrote: select convert(varchar,column1 as "Test column",106) from tbl_name
the query is not correct.....
select convert(varchar,column1,106) as "Test column" from tbl_name
Regards,
Sandeep Kumar.V
|
|
|
|
|
Thanks a lot sandeep... i achieved 90% of my requirement.
but i cant get the separator (any separator is OKAY)
the output is "25 Jan 2007". my requirement is "25-Jan-2007".
is there anyway to achieve it?, so that my requirement will get fulfilled 100%
modified on Saturday, April 12, 2008 3:12 AM
|
|
|
|
|
Hi.....
I think there is no formatter to format like that......
in dotnet you can acheive that.....like.....
eg:
<asp:BoundField DataFormatString="{0:dd-MMM-yyyy}" DataField="ShippedDate"<br />
HeaderText="Shipped Date" />
Regards,
Sandeep Kumar.V
|
|
|
|
|
Thanks a lot sandeep... nice to meet you.........
|
|
|
|
|
I found the answer in query itself sandeep... just refer it
SELECT REPLACE(CONVERT(VARCHAR, column_name, 106), ' ', '-') as "column 1" from tbl_name
Take care...
|
|
|
|
|
hai,
i m using ASP.NET with C# (.net 2005, 2.0 framework)
here i create a directory named "A" and some files are in this folder (say... A1,A2).
and outside of "A" folder there are some files (out1,out2).
how can i specify the path to fetch the file from A1 to out1???
how to achieve it?
help me - KARAN
|
|
|
|
|
hi....
you can achieve that by using namespaces.
Give same namespace for all the pages that u want to access.
Regards,
Sandeep Kumar.V
|
|
|
|
|
kindly could u give me an example, so that i can understand clearly.
And also can u specify by means of the example which i have posted?.
thank you...
|
|
|
|
|
Hi...
for the file A1 which is in the folder suppose give namespace as
namespace TestNamespace
{
public class A1
{
............
}
}
for the file which is out side the folder give same name space like...
namespace TestNamespace
{
Public class out1
{
}
}
now if you want ot access any for the files you can directly call that cllas name in your class file....
like....
namespace TestNamespace
{
Publc class out2
{
out1 o=new out1();
A1 a=new A1();
}
}
Hope with this you can get some thing......
Regards,
Sandeep Kumar.V
|
|
|
|
|
wow...... S sandeep.. i got it.. this is i needed.
and another clarification sandeep?
suppose my full path is : c:\inetpub\wwwroot\project\tet_pr.ascx
another file path is : c:\inetpub\wwwroot\project\output\file1.ascx
how to switch from one file to another by using the below statement?
int a;
if (a == 1)
this.MenuPlaceHolder.Controls.Add((UserControl)LoadControl("te_pr.ascx"));
else
this.MenuPlaceHolder.Controls.Add((UserControl)LoadControl("file1.ascx"));
help me .
thanks for understanding......... - KARAN
|
|
|
|
|
John Sundar wrote: this.MenuPlaceHolder.Controls.Add((UserControl)LoadControl("file1.ascx"));
i guess above code should be like below one......
this.MenuPlaceHolder.Controls.Add((UserControl)LoadControl("\output\file1.ascx"));
Regards,
Sandeep Kumar.V
|
|
|
|
|
Thanks sandeep.. to fetch the te_pr.ascx from file1.ascx???????????
how to achieve it?
|
|
|
|
|
give same namespace for both user controls then same as classes you can access them.....
Regards,
Sandeep Kumar.V
|
|
|
|
|
can u tel me with the example sandeep?? plz..
suppose my full path is : c:\inetpub\wwwroot\project\tet_pr.ascx
another file path is : c:\inetpub\wwwroot\project\output\file1.ascx
how to switch from "file1" to "tet_pr" while i m working in "file1.ascx"
int a;
if (a == 1)
this.MenuPlaceHolder.Controls.Add((UserControl)LoadControl("te_pr.ascx"));
else
this.MenuPlaceHolder.Controls.Add((UserControl)LoadControl("file1.ascx"));
help me .
thanks for understanding......... - KARAN
|
|
|
|
|
This seems incredibly nasty, but I'd say if you need to do this, your best bet is to set what path leads to a particular control, in your resources, and swap resource files as needed. As someone else said, odds are you need to name the classes the same if you want to be able to use them when you swap them out like this. OR a better idea again is to simply define an interface that the controls you're using will have in common and access them via that interface.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 have a gridview with a select link in first column. and i want when i select a row i get the select row values that are in cells. how can i do this . can anybody tell me please
|
|
|
|