|
|
i will reply to you there way you did. but i hope the site Admin will take care of you.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hello Friends,
Can anybody let me know how to set Text-Align="Right" in theme.
|
|
|
|
|
Just add a .css file in your theme folder and
add whichever style you wish to add.
It would be better if you would clearly speak which controls/tags'
alignment you want to make right.
|
|
|
|
|
Hi
Here is your answer.
1. Create a css file in your Theme folder
2. Declare a class in css file say ".customAlign", like
.customAlign { text-align:right; }
3. In aspx page use CssClass="customAlign" in your control
Cheers
Prosanta Kundu
|
|
|
|
|
<asp:hiddenfield id="h1" runat="server" value="hidden">
in javascript it is
document.getElementById(<%=h1.ClientID%>).value;
it is giving me error.
Can anyone please let me know how to access this .
|
|
|
|
|
try this
http://forums.asp.net/p/1017379/1370211.aspx[^]
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Dont put the scriplet in document.getElementById.Use global variable to get the clientid of hidden variable as
var hiddenClientID = "<%=h1.ClientID%>";.
Put the above script in masterpage itself.
Now access the hidden field using hiddenClientID in usercontrol as
document.getElementById(hiddenClientID).value
Let me know if still face problem
Cheers!!
Brij
|
|
|
|
|
try below code
document.getElementById(<%=Page.Master.FindControl("h1").ClientID%>).value;
|
|
|
|
|
document.getElementById("<%=Page.Master.FindControl("h1").ClientID%>").value="dirty";
not working on usercontrol
|
|
|
|
|
did you try what I suggested?
Cheers!!
Brij
|
|
|
|
|
hi,
i need to show multiple selected items in Dropdown List
i wrote like this
foreach (string _arr in _strIt)
{
string sitem = _arr.Trim().TrimEnd();
ddl_Resources.Items.FindByText(sitem).Selected=true;
//ddl_Resources.SelectedValue= //ddl_Resources.Items.FindByText(sitem).Value;
}
it is not working ,i'm getting error ,and ddl_Resources.autopostback=true.
|
|
|
|
|
ASP.NET Dropdown List does not allow to select multiple items in one go.Only last selected item would be shown as selected.
Instead you should use ListBox which allows multiple selection.
OR you can try this one too.
Cheers!!
Brij
|
|
|
|
|
you can use also checkboxlist for your requirement.
|
|
|
|
|
hi all i have shown all of my existing users in a griedview from aspnet_users table.
now i want to delete user on delete command but on when i tried to do this i got error.
plz guide me....
|
|
|
|
|
Please post the error details and the code segment where the error is generated.
Cheers!!
Brij
|
|
|
|
|
I got following error as soon as tried to delete a user...
The DELETE statement conflicted with the REFERENCE constraint
"FK__aspnet_Me__UserI__1B0907CE".
The conflict occurred in database "Sitname",
table "dbo.aspnet_Membership", column 'UserId'.
The statement has been terminated.
|
|
|
|
|
You can not delete a user just from deleting the row from aspnet_users table,Because there is a tight assoiation with other tables.First you need to understand the apnet membership schema,then you will be able to know how to a user from database directly.
Or you can use the inbuild function of aspnet membership api to delete a user from application.
But if you want to delete from database directly, it will better if you ask in database forum.
Cheers!!
Brij
|
|
|
|
|
|
Hi friends..
I have some task in c# that is, there are two database generated file x1, and x2 (without ext), I need to compare both, and if x2 have some extra content its need to copy on x1.
Thanks...
Abbas
|
|
|
|
|
hi,
i am new in javascript.
i want to change the caption of ok and cancel button of confirm message to yes no
is it possible?
if not please tell me another function through which i can do that....
|
|
|
|
|
Its not possible to change the style of javascript confirm box.Either you can make your own custom usercontrol for that or can use vbscript for this but this will work only in IE. Go through the link
Cheers!!
Brij
|
|
|
|
|
You can use Asp.Net Ajax Modal popup or any other model popup control
for your purpose.
Unfortunately, with javascript confirm you cannot achieve
"Yes" and "No" instead of "Ok" and "Cancel".
|
|
|
|
|
ok thanks for the information...
|
|
|
|
|
hi friends
i need to create the cookie in domain name..
For example:
my cookie file named as "administrator@localhost.txt"
but i need to create "administrator@mydomainname.txt"
i tried like this
Dim objcookies As HttpCookie = New HttpCookie("SalesLogin")
objcookies.Domain="www.mydomain.com"
but it is not created...
can any one help me?
Known Is Drop.Unknown Is Ocean
|
|
|
|