|
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
|
|
|
|
|
You may use, TemplateField in the GridView. In that, within the HeaderTemplate you may use a table, and use its 'background' property to Pick the Image URL for the background.
Regards,
Jay
|
|
|
|
|
But i want set it in the themes .skin file, how i define ?
Best regards,
Chee ken
|
|
|
|
|
In the skin file, you can define the gridview with one of the two options below:
<asp:GridView runat="server">
<HeaderStyle CssClass="GVBgImage" />
</asp:GridView>
or
<asp:GridView HeaderStyle-CssClass="GVBgImage" runat="server">
</asp:GridView> You can easily define the GVBgImage stylesheet class that has the background-image attribute.
|
|
|
|
|
Thank you for your answer. That means i need to create another stylesheet (.css)? Cannot direct define inside <asp:gridview runat="server ... > ?
<div class=" forumsig"="">Best regards,
Chee ken
|
|
|
|
|
cheeken2u wrote: That means i need to create another stylesheet (.css)? Cannot direct define inside
You can define it in a seperate style sheet file and put the file in the theme with the skin file. Basically, you cannot define the background image in the gridview control markup as it belongs to the style property and the control cannot understand it.
|
|
|
|
|
thanks. Then the css file must be same file name with skin file ? for example, my skin file name abc.skin , then the css file must be abc.css ?
Best regards,
Chee ken
|
|
|
|