|
Hi,
In your signature.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
w u mean i cant understand
|
|
|
|
|
We don't understand why you needed to ask this twice, or what it is that you're asking.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi to all
There is on dropdown i write code to populate it is get populate now i want to write certain code in seelctedindexchange event .
but it is not going to that event What may be the reason
Please help me in this direction
thanks.
|
|
|
|
|
Set The autopostback property of dropdown true
thanks
Raghvendra Kumar Roy
|
|
|
|
|
hi,
i hope above solutions helps. but if u already have set autopostback true and still its not going into the selectedindexchanged event. then my friend wht u've to do is copy all the code from the selectedindexchanged event and delete the code for selected index changed event the the selectedindexchanged method as well. now double click dropdown list and pase ur code. it would definitely work if u've already set autopostback true.
hope it works for u. thnku
|
|
|
|
|
Hi all you guys.
I have been trying to use tab as spriter in text file.
I declared the variable like this...
char[] spriter = new Char[] { ' ', ',', ';', '"', '\\', '|'};
In the order i can sprit text with ' '(space) ,(comma) : (semicolon) and others as in the array.
but I don't how to declare the TAB.
Anybody who knows this please help me.
Thank you very much.
-- modified at 5:29 Monday 4th June, 2007
junior boy
|
|
|
|
|
|
Or 8 space is equal to 1 Tab.
8 space or \t
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
Thank you very much all you guys.
Actually I have tried to use \t but when I declared I used '\\t' because I am using C# .net
but I got error and I was wrong.
Now i know more about \
I am really preciated your help.
Thank you million
junior boy
|
|
|
|
|
Check with 8 space ( '8 space' )
this equal with 1 tab.
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
Hi people,
I have a COM object installed on a remote machine. I have been provided with a .NET assembly to communicate with this COM. The COM is used to validate some data and return the result. I create a small console application that uses the .NET assembly to contact the COM.
At first, we had some problems with "Access denied" because of security issues, so now we have set the security of the COM to run under the launching user. The console application works fine and the COM returns the results expected.
Now, I'm trying to do the same but from a web service. The idea is to have a windows application contact the web service to run the COM validation. It didn't work, so I thought that maybe I need to impersonate the user calling the .NET assembly that calls the COM. So I used the code on this page: http://west-wind.com/weblog/posts/1572.aspx[^]
When I debug, I can see that when I enter the web service method, the impersonation works fine and I can check that Environment.UserName is my username. This username has worked fine when i called the COM from the console application. I could see that the owner of the dllhost process was my username. So, the impersonation works fine but the COM fails to execute when I call the relevant method in the accompanying assembly.
I don't seem to understand what could be going wrong here. I don't know much about this COM+ stuff and impersonation, so maybe i'm missing something.
Does someone have a clue about this thing and what to do to fix it?
Thanks,
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Hi,
I have a dropdownlist control on my webpage. For this control i have a script function as well as selection index changed event.
Iam calling the script fucntion using attributes.add method.
but the problem is only the script function is being executed not the selection index change fucntion
What is the problem?
Gautham
|
|
|
|
|
On which event are yuo calling the javascript ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Sandeep,
the javascript function is being called with respect to onchange event...
Gautham
|
|
|
|
|
it should work if the autopostback is true
i tried this one and working fine
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack=true OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem>qwewqe</asp:ListItem>
<asp:ListItem>qwewq</asp:ListItem>
<asp:ListItem>qweq</asp:ListItem>
</asp:DropDownList></td>
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList1.Items.Add("Sandeep");
}
function Lookout()
{
alert("Label1 Sandeep Added" );
}
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
How are you calling the script fucntion?
Tried calling the script function using ddl1.attributes.add("onchange", "javascript:return lookout();")
this way only the script function is being executed not the selection index changed event
Gautham
|
|
|
|
|
yes
i am also calling in samw way
DropDownList1.Attributes.Add("OnChange", "javascript:Lookout();");
i asked you beacause there are two ways you can call javascipt function on button onclick event (AutopostBack=false )and onChange Event (AuotPostBack=true)
Are you sure that the javascript function is working fine and returning true ??
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
The javascript function is ok i guess!
An alert box will be shown if the condition is met and return false;
else return true thereby the code in the event should be executed - this part is not happenning.
Gautham
|
|
|
|
|
Can you post the html part along with javascript function and Dropdonelist_selectedIndexChanged event code
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
function function1()
{
alert("Hi");
return true;
}
In pageLoad
ddl1.Attributes.Add("onChange", "javascript:return function1();");
The alert box is being displayed but after that the code in the selection changed event is not being executed.
If there are no return statments then both the events are being executed.
So, is it a problem with catching the return true/false??
Gautham
|
|
|
|
|
hi...
ihave 10 textboxes and some other controls on my aspx page...now i want the count of the textboxes only on the aspx page...how to do it...
any one help me regarding this...
Pradeep Reddy
|
|
|
|
|
Hi,
You can try the following code.
int textcount = 0;
foreach ( Control ctrl in Page.Controls )
{
if ( ctrl is TextBox )
{
textcount ++;
}
}
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
thanks for the reply...
but it is not working...
Pradeep Reddy
|
|
|
|
|
Hi
What do u mean by "Its not working"?
Do u get any error?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|