|
Have you stepped through using firebug/firefox to see if the js is doing what you expect it to ? Is bgColor the right property here ? Or is it blah.style.bgColor ? js just invents properties the first time you access them.
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 )
|
|
|
|
|
when i m doing ok on confirm box it is showing red on
alert(color);
but my c# function is not calling...please help me....i have also tried through...
.style.backgroundColor="red";
it is changing the button's color but my motive is not to change the button's color....i want to call my c# function on basis of my condition...
if (btnPrint.BackColor.ToString() == "red")
{
myC#Function();
}
but its not working...
please help me
|
|
|
|
|
If you do a postback, does it stay red ? If not, then the property is not stored in viewstate. If so, then I'd create a control and set the BackColor property in the aspx. Then I'd run the page, view the source, and see exactly what property ASP.NET is setting in the control.
At the end of the day, I'd still lean towards using a hidden field.
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 )
|
|
|
|
|
my problem is still a problem....please someone help
|
|
|
|
|
I did. What happened when you did what I suggested ?
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 tried that through hidden field....and on step by step debugging i checked that also...it is first compiling these lines...
if (btnPrint.Value.ToString() == "1")
{
myC#function();
}
and after that javascript function so my c# function is never called
please give me a solution
|
|
|
|
|
The solution is to debug your javascript - did you get Firebug and Firefox as I suggested ?
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 am sure what Gauss suggested is the way you must address the issue. Open your web page in Mozila FireFox ( this is just a browser like Internet Explorer but helps a lot for debugging Javascript error. ) and idntify which line of your JS code creates the problem !!!
Thanks,
Arindam D Tewary
|
|
|
|
|
hi
i am getting date value from database formate like '5/28/2008 10:12:00'
but i am exepecting result like 'May 28 10:12'
how can i convert like this
please help me
with regards,
bretto
|
|
|
|
|
Why did you expect that format ? Did you ask for it ? That's a custom format, you'd need to come up with a custom format string to pass to the ToString method.
10 seconds with google gave me this[^]. I googled datetime tostring. I suggest reading the article I link to in my sig.
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 christiam graus
thanks for ur kind help
this link is very use full for me
with regards,
bretto
|
|
|
|
|
brettokumar wrote: '5/28/2008 10:12:00'
12 past 10 on my 30th birthday! nice.
|
|
|
|
|
In MS Aceess we use yesornO datatype but in SQL Server 2005 which datatype should use instead of yesorno datatype.
|
|
|
|
|
This question has nothing to do with ASP.NET. Please ask in the right forum.
The answer is bit.
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 want to generate the hyperlink dynamically and i want to bind this to datagrid in asp.net
how can i do this
|
|
|
|
|
Create the link in the template for the grid.
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 )
|
|
|
|
|
please tell me idea.......it is an urgent requirement
|
|
|
|
|
beklo.com/rameshgoudd wrote: it is an urgent requirement
But not so urgent that you'd consider buying a book or searching the web ?
A datagrid fills itself with data based on a template you provide. You specify which columns you want to display and how you display them. So, you create the template so that when it's rendered, it creates hyperlinks. That's all. If you can't follow this, try posting what you tried, and what you want to achieve. I can't be more specific based on what you've said so far.
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 )
|
|
|
|
|
Please use www.google.co.uk to search for vague questions like this and then post when you have an error with the code
We are not a Code Charity
|
|
|
|
|
Good ans !!
Thanks,
Arindam D Tewary
|
|
|
|
|
Hi,
I placed a LinkButton( for Logout control) in Master Page and property Visible = false.
I want to make Logout button visible after user logins & i have to redirect to another page .
I used the below logic in Login_Button_Click event:
{
LinkButton lbtn=(LinkButton) this.Page.Master.FindControl("lbtn_id");
lbtn.Visible=true;
Response.Redirect("Page3.aspx");
}
But its not working.. When i traced the program i could able set Lbtn.Visible=True.
But its actually not applying in Page3.aspx.
Please help me .. How can i solve it.
Thanks in advance.
|
|
|
|
|
The way I would do this, is to make a base page class which has a MasterPage property which returns the derived master page class, not the base. Then I'd expose properties. I would never use FindControl, what a hack.
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 )
|
|
|
|
|
Hello everyone, I have got stuck in a big mess. The situation demands creation of a DTS package based on a query in SQL server and then execute it to produce the output in a text file. My problem is that I am completely new to this DTS stuff, so can anyone please help..??
Here is the exact thing I want to do :-
1. Create a DTS package based on a query.
2. Execute the package using .NET.
3. On the completion of the DTS package execution, send a mail stating the success or failure of the DTS package execution. The mail should be .NET generated.
Below are the things which I have tried to do on my own and my queries regarding the same :-
1. I have generated a package for a particular query, using SQL enterprise manager but dont know how to pass parameters to the package when executing it.
2. Is there any way to make the above package creation dynamic? I mean can we create a DTS package using .NET?
|
|
|
|
|
If yuo are running in code already why do you need to make a DTS package? These are normally called from a scheduler or filewatcher to load/extract data. If you are in control of the situation (as it appears from your post) then why not just execute the query directly?
However, it is possible to dynamically modofy DTS packages by using VBA code to modify job steps. I am not sure if you could create a new package directly from code, but I suspect you could as they are just database objects.
BTW, do you mean DTS packages or are you using VS2005, where you use SSIS as this is a whole different kettle of fish
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Thanks for the reply Bob,
Yes I am talking about the DTS packages and not about SSIS. So far creating and executing of the package is concerned, I am able to do that now. For the time being I can do away with creating packages manually like I have already explained and then execute it through a stored procedure.
The third step is still a problem for me, i.e. send email stating the success or the failure of the package execution. Although SQL server gives us the option to send the success/failure mail but the my mail contents are dynamic and depends on some parameters coming from my .NET application. So is there a way to signal the ASP .NET application about the DTS package execution completion? I hope I am clear with my words.
|
|
|
|