|
Dear All,
I wish to implement the Expand / Collapse Operation on the Text. While it is in Collapse mode, only 3 lines of Text need to be displayed & on otherhand while it is in Expand mode, i wish to display the entire lines Text (eg 10 lines).
My Qn:
1 . Which Control is suitable to Display the Text in both Expanded / Collapsed mode?
2 . How to achieve this through JavaScript?
3. Also i need to display + image for Collapsed mode & - image for Expanded mode. While Clicking on Image, this operation has to be done. How?
I am expecting all your valuable suggestions.
Regards,
Jay
|
|
|
|
|
Hi there,
I don't know of any built-in control that supports what you want, but you can easily implement on your own with simple script. If you observe CodeProject carefully, you will see that you can learn the script, for example when you expand/collapse the message content, or when you see a long snippet of code like this one[^]. Now that what you might need to do to collect it is to view source the web page.
|
|
|
|
|
css file can set the property of gridview or not? or must use the skin file? thanks.
Best regards,
Chee ken
|
|
|
|
|
As per 'minhpc_bk's explaination previously, it works very fine.
method 1:
You can use the CSS file directly to set the Proerties of GridView. It is a direct method.
Int this, if u want a same formatting again for another GridViews,then u need to specify that CSS file's #id or .class ,etc. on each & every GridView.
method 2:
In this u need to create a Skin file. In that, you need to specify the CSS file's file's #id or .class ,etc. in your GridView control . Now where ever u may use the GridView, u can get the formatting without specifying anything.
Thats all it is!!
Regards,
Jay
|
|
|
|
|
any one can tell me how to send sms to cell phone from asp.net web application using c#.its very urgent plzzzzzzzzzzzzzzzzz help me
Pradeep Reddy
|
|
|
|
|
Let me help you, if you are relationated with XML Web Services, you can use this easy solution.
first.
goes to http://www.webservicex.net/WS/WSDetails.aspx?CATID=4&WSID=60
you will find the Send SMS World Web Service, this web service Send unlimited free SMS to a countries who support it.
Second.
add Web service Reference to your ASP.NET project
the address is http://www.webservicex.net/sendsmsworld.asmx
The name for the reference is in this example is ServerSms
third.
Use the code
try
{
string from = "Emitter E-mail";
string to = "Receiver Phone Number";
string countryCode = new String();
string message = "Hello World";
//Create a object from the ServerSms Class
ServerSms.SendSMSWorld engine = new ServerSms.SendSMSWorld();
engine.sendSMS(from, countryCode, to, message);
Estate.Text = "Your Message was send to " + to;
}
catch(Exception)
{
Estate.Text = "Send message Error"
}
Thanks & regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
ry
{
string from = "Emitter E-mail";
string to = "Receiver Phone Number";
string countryCode = new String();--->what does it mean
string message = "Hello World";
//Create a object from the ServerSms Class
ServerSms.SendSMSWorld engine = new ServerSms.SendSMSWorld();
engine.sendSMS(from, countryCode, to, message);
Estate.Text = "Your Message was send to " + to;
}
Pradeep Reddy
|
|
|
|
|
You simply have to pass the country code.
for eg:-
String countryCode="91" for india
Thanks & regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
Hi,
I want to Retain the scroll position of dataGrid during the
postback............
Thanks in advance
|
|
|
|
|
one way could be to set smartnavigation property of the page to true.
Best Regards,
Apurva Kaushal
|
|
|
|
|
i m going to develop a web application in asp.net.i want to use a custom control.when i drag that control on form and set their attributes like no of text boxes and buttons then it display tht number of controls on a form at design then we can align that controls and work.this all is done by custom control.if any body can help me then reply on this ID.shafiq_082@yahoo.com.
Thanks in Advance
Know Yourself Then Grow Yourself.
|
|
|
|
|
|
Hello Everybody
first of all thanks to all those who have replied to my earlier queries. This site is of great use to me.
I have created a web page login.aspx with the following controls in it: 5 labels, 3 textboxes, 1 radiobutton list,1 checkbox list and 1 button.
now i need to write a code which would display either in another webpage or as a pop-up window, the details of the controls along with their ID's in login.aspx page.
the desired output should be something like:
Labels: 5 (Label1, Label2, Label3, Label4, Label5).
Textboxes: 3 (TextBox1, TextBox2, TextBox3).
RadioButtonList: 1 (RadioButtonList1).
CheckBoxList: 1 (CheckBoxList1).
Buttons: 1 (Button1).
Hopeto get a response to my query. Thanks in advance to all those who wish to reply to my query and yes..thanks to this site. Iam relly grateful.
Sonu
|
|
|
|
|
Hashtable table=new Hashtable();
foreach (Control c in Page.Controls)
{
string cType = c.GetType().ToString();
if (table[cType] == null)
table[cType] = new ArrayList();
(table[cType] as ArrayList).Add(c);
}
IEnumerator i = table.GetEnumerator();
while (i.MoveNext())
{
ArrayList al = ((DictionaryEntry)i.Current).Value as ArrayList;
Object o1 = al[0];
Response.Write(o1.GetType().ToString());
Response.Write(" : ");
foreach (Control c in al)
Response.Write(c.ID + " ");
Response.Write(" ");
}
|
|
|
|
|
Hi All,
As When I am displaying my html page which contains images also inside content placeholder with panel control.....it is only showing text and not the Images.....................please suggest me...how can i do this.....
I want to display html page(with images) inside a panel,and that panel is in contentplaceholder(master page)...............
here is my code..........
.......................
If Request.QueryString("page") Is Nothing Then
Server.Transfer("Default.aspx")
End If
Dim title As String = Request.QueryString("title").ToString()
Dim pageName As String = Request.QueryString("page")
Dim fullPath As String = pageName
Dim thegen As HtmlGenericControl = New HtmlGenericControl()
If (Not File.Exists(Server.MapPath(fullPath))) Then
Server.Transfer("Default.aspx")
End If
Dim rdr As StreamReader = Nothing
Try
rdr = New StreamReader(Server.MapPath(fullPath))
Catch
rdr.Close()
Server.Transfer("Default.aspx")
End Try
Dim content As Object = rdr.ReadToEnd()
rdr.Close()
thegen.InnerHtml = content(I think problem is here but not getting it)
Me.Panel1.Controls.Add(thegen)
Me.Title = title
.......................
possibly provide some reference code for that.....
plzzzz....I am in great need of your reply....
Waiting for reply..........
JaiPrakash
|
|
|
|
|
You can not display a complete page inside the code of another page. You have to remove the page frame, so that you only display the contents of the body tag.
---
b { font-weight: normal; }
|
|
|
|
|
hello,
i have 2 dropdownlist inside a datagrid,based on the selected item of the first dropdownlist i want to bind the second dropdownlist.
pls help
kavitha
|
|
|
|
|
So where is the problem? Bind the first dropdown list and handle the event of the first index changed dropdownlist and fill the second dropdown list.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hello,
thanks 4 the reply,problem is ,selectedindexchanged event is not firing for the first dropdownlist since its inside datagrid
kavitha
|
|
|
|
|
Hi,
You can define an event for the first dropdown for onselect event. It is a postback event, in that event you can update the second dropdown.
Ram
|
|
|
|
|
hi,
thanks 4 u reply,the onselect event is not firing since the first dropdwnlist is inside the datagrid
kavitha
|
|
|
|
|
If you have unicode characters in the page markup, save the page as unicode, and specify the unicode encoding (UTF-8) for the page.
Use a unicode field type to store unicode text. For the MS SQL Server database, for an example, the unicode field types are named nvarchar and ntext.
---
b { font-weight: normal; }
|
|
|
|
|
Let say i saw a website consist a table. I need to know what is the font of table, is it arial or what, the border style...how i get it ? any suggestion ?
thanks.
Best regards,
Chee ken
|
|
|
|
|
view source the site
and copy the HTML.
|
|
|
|
|
I want to put a picture as a background to the header of the grid view in asp.net 2.0, how i code it ?
Best regards,
Chee ken
|
|
|
|