|
|
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
|
|
|
|
|
foreach(Control c1 in this.Controls)
{
if(c1.GetType()==typeof(TextBox))
{
increment your count....
}
}
Gautham
|
|
|
|
|
thanks for the reply...
but it is not working...
Pradeep Reddy
|
|
|
|
|
private void Button1_Click(object sender, System.EventArgs e)
{
int grandTotal = 0;
for (int i = 1; i <= Count; i++)
{
grandTotal += int.Parse(Request.Form[
String.Format("txtBox{0}", i)]);
}
for (int i = 1; i <= Count-1; i++)
{
TextBox txt = (TextBox) Panel1.FindControl(
String.Format("txtBox{0}", i));
grandTotal += int.Parse(txt.Text.ToString());
}
Response.Write(grandTotal);
}
Hope this code will help you.
Regards,
Satips.
|
|
|
|
|
thanks for the replybut what is the Count here? and what about pannel...?
Pradeep Reddy
|
|
|
|
|
Count refers to the number of textboxes.
Panel is where i put the textboxes,i.e., the textbox are all inside the Panel.
Regards,
Satips.
|
|
|
|
|
how will we initilize the Count...
Pradeep Reddy
|
|
|
|
|
i have a textbox in webusercontrol, i used webusercontrol in my aspx page....
now the problem is, how to get the value of the textbox in to my aspx page code behind...
any one plz help me regarding this...
Pradeep Reddy
|
|
|
|