|
Thank you very much!!!
They laugh at me; they think I’m different. I laugh at them, ‘coz they are all same!! CrazySanker
|
|
|
|
|
You can also download Araxis trial version and use that tool to merge your changes. It enables line by line comparison of two files and allows you to insert or delete lines from one file to another.
Regards
N.Surendra Prasad
|
|
|
|
|
Hi
I make a user control like tree.ascx which contains a tree view control. Now I place the user control “tree.ascx” on Default.aspx”.
Now, I want to display an alert message when user clicks on the tree view.
I am facing problems:-
• How to find user Control Id (“tree.ascx”) on default page using JavaScript
• How to find tree view control id in default.aspx using java script;
• And how to show alert message when user click on any node of tree view using JavaScript?
Any help is appreciate
Regards
Rajesh
rajesh
|
|
|
|
|
Get it[^]
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi,
i created a rdlc file,in its design mode i dont have any controls in its toolbar.
How to make those Report Item tab included in my toolbox
report item tab is the default control tab
but dont know where i am missing
am i supposed to include any dll???
ne body can help me to sort out dis issue???
zari
|
|
|
|
|
Hi,
I have one master page and one default.aspx page inherted from master page.
Now My Default page has 10 TextBox controls with ID's 'Textbox1','Textbox2',.......'Textbox10' and one Button.
In th button click event I want to catch these textboxes dynamically like
for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl("TextBox"+i);
}
I saw the viewsource all controlId's are replaced like "ctl00_CphAdmin_TextBox1".
even I tried like
for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl("ctl00_CphAdmin_TextBox"+i);
}
But not worked .........can any body help me the way to acheive this.
Thnaks
Hari
|
|
|
|
|
Hi,
if your textboxes are in any other control like panel then you have to search panel first and then you have to search textboxes in panel.
Else here,
Kuricheti wrote: for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl("TextBox"+i);
}
for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl("TextBox"+i.ToString());
}
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi Kuricheti
try this code , i think this will help you.
protected void Button1_Click(object sender, EventArgs e)
{
GetControlval(this.Controls);
}
public void GetControlval(ControlCollection Controlcol)
{
string strTextBox;
foreach (System.Web.UI.Control ctl in Controlcol)
{
if (ctl != null)
{
if (ctl.ToString().ToLower().EndsWith("textbox"))
strTextBox = ((System.Web.UI.WebControls.TextBox)ctl).Text;
}
if (ctl.HasControls())
{
GetControlval(ctl.Controls );
}
}
}
rajesh
|
|
|
|
|
Kuricheti wrote: for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl("TextBox"+i);
}
Try using --
for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl(this.ClientID + "TextBox"+i);
}
OR
for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl(this.ClientID + "_TextBox"+i);
}
Hope this works for you.
|
|
|
|
|
Plz try using "ctl00$CphAdmin$TextBox" instead of "ctl00_CphAdmin_TextBox"
|
|
|
|
|
Hi
I want to add my custom description to my custom class or methods using asp.net.
(e.g) .Tostring() is a method which has a custom description given by Msoft as
"Converts the value of this instance to its equivalent string representation usingthe specified the format "
Likewise i want to add my own customised message to my methods. can you give idea plz.
I hope so u can clearly understand the ques. If not get back to me.
|
|
|
|
|
Hi,
before writting your function you have to type ///
you will see like below.
private void MyExample(Control ctrl)<br />
{<br />
}
hope it will help you.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
yaa,it's working ...
But I'm using webservice..
i've two classes in that service with some methods,properties..
I'm added discription to those methods and properties
But the description is not getting in webapplication for those ...
How can I get it??
|
|
|
|
|
The description which is shown in IntelliSense come from XML file. So, you should probably check whether this doc XML file exists or not.
|
|
|
|
|
Hi, i'm using asp.net 2.0 & c#. i have a functionality which i would be implementing in all my classes (e.g. language change [en-US], [zh-CN], etc.). i found a solution in the web that says i should inherit a base class. here's how my code would probably look like:
public partial class SiteHra_SiteHraHome : MyBaseClass{
}
public class MyBaseClass{
}
Here's my question.. Should MyBaseClass inherit System.Web.UI?
Thanks in advance!
tnx.. ^_^
|
|
|
|
|
System.Web.UI.Control i guess.
|
|
|
|
|
If it's a webform, your base class should inherit from System.Web,UI.Page .
|
|
|
|
|
Hi All
I developed my website in asp.net 2.0. i used master page. there are top menu and left menu in website.
left menu are related to particular top menu. when i click on any left menu page open there.
On the page there is some textboxes and other server controls. I insert some values in textboxes and click ADD TO Grid button. Then all values added temporarily to
the gridview below. like this user can add many rows in grid. after that he can save all rows in database on a single click of SAVE button. I used Datatable to bind gridview.
But if user added the rows in grid view and rather than pressing SAVE button he click on other top menu or left menu.
in this case there should be a message box when he click to another top or left menu. message like this - Do you want to save the records ?
if user click yes then control must be on the same page or data must be saved otherwise open the other menu.
Google (Gmail) also provide such type of facility, when you write some text to send but you do not send the message then there is also message box like
Do you want to Save this message as draft or Discard the message ?
I also want to do such type of activity.
Your answer is appreciated.
|
|
|
|
|
i found this type of facility in code project itself also.
|
|
|
|
|
Hi,
I want to implement a feature like Gmail. When in Gmail, we compose email and without sending a mail, we click other link menu like Inbox, Chats, Drafts , one pop up is displayed with description “Your message has not been send. Discard your Message? Two button like OK and Cancel. Similar feature like Gmail pop up I want to implement in my application.
My queries are:-
I have 10 records in grid view bind with Datatable.This rerecords are temporary store in session. There are two button like “save” and “cancel”. When user clicks the save button record goes to database. But suppose, records are available in grid view and user click other menu or link button. Then in this scenario I want to display a pop up message for user,” do you want to save or discard the record in grid view.
I need your help, how can I do or implement this in my application.
Regards
Rajesh
rajesh
|
|
|
|
|
Hey Rajesh,
Don't just look only Google. We also have like that in our CP.
Have you never seen the text as below??
Are you sure you want to naviate away from this page?
You will lose any unsaved text. Is this OK?
Press OK to continue, or Cancel to stay on the current page.
You can attach the javascript function in "onbeforeunload" event.
|
|
|
|
|
|
Hi All,
I have got some web pages which can be seen properly (with the style sheets applied to the page's contents) from the domain i am working on. But when others from a different domain or when accessed from anywhere else, the page seems to be missing its style sheet.
Can anyone please suggest some possible solutions so that i can try it out to tackle this?
Thanks & Regards,
Payal
|
|
|
|
|
Payal_e_m wrote: when others from a different domain or when accessed from anywhere else, the page seems to be missing its style sheet
the page from different domain is missing the CSS, right? Are you also working on that different domain? If you are not working on that then why you care? For example, you try to access the google homepage. The google homepage looks disorder. but what do you want to do about that? sooner or later, Google will fix their homepage..
|
|
|
|
|
I have spun my wheels already. I have also looked pretty much everywhere for my specific use case but I have not been able to find anything that helps me. Please help.
I have an ASP.NET page embedding an unmanaged C++ OCX within the page using the following code.
[code]
<%@ Page AspCompat="true" Language="C#" AutoEventWireup="true" CodeBehind="Anywhere.aspx.cs" Inherits="Anywhere_Example_CSharp.AnywhereExample" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script runat="server" language="C#">
public void btn1_Click(object sender, EventArgs e)
{
mycontrol.AddUnconnected(10, 10, 0, 0);
}
</head>
<body>
<form id="form1" runat="server">
<asp:Button ID="Button1" runat="server" Text="Add Person" OnClick="btn1_Click" />
<OBJECT id="mycontrol" style="WIDTH: 773px; HEIGHT: 488px" classid=clsid:F3AA9E66-A723-11D2-A17D-0060975A5AFA>
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="20452">
<PARAM NAME="_ExtentY" VALUE="12912">
<PARAM NAME="_StockProps" VALUE="0">
</OBJECT>
<asp:Label id="lblMessage" runat="server" />
<asp:PlaceHolder id="phMyPlaceHolder" runat="server" />
</form>
</body>
[/code]
The control get displayed properly. The trouble comes when I try to get access to the API functions in the OCX with ID "mycontrol". What I wanna do is call the method mycontrol.AddUnconnected(0, 0, 0, 0) on the OCX. Unfortunately this is not working.
In fact if I have function
[code]
public void btn1_Click(object sender, EventArgs e)
{
mycontrol.AddUnconnected(10, 10, 0, 0);
}
[/code]
not commented out as shown, the page is not displayed whereas if I comment out the line
[code]
mycontrol.AddUnconnected(10, 10, 0, 0);
[/code]
The page is displayed and the control works fine, except I cannot call the API functions.
How do I make the control that has been embedded inside a page using the <object> tag as shown above accessible to my server side controls / and server side scripts?
Your help is appreciated.
Thanks,
Melody
|
|
|
|