|
Hi guys i am binding some records from my repeater control...,
<b>In one column i am binding the brief news...,
its coming to long...,
to resolve it i want to give remaing text in another page...,
and same time if user like to see entire news also he have to watch...,</b>
for ex i need like this page:
http://www.indianexpress.com/news/airline-followed-rules-indias-vip-list-irrelevant-us/493538/
See in that <b>they will sub divide the string and the remaining contents they will show in next page...,
and same time if u click single page format u can read the news in a single page...,</b>
how to achieve it in .net?
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Which part of this is confusing you ? They are using some sort of paging control, like the paging built in to several ASP.NET controls, and they have the option to render the whole story. You would build an engine that does this, and break your articles in to pages.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
yes .. Use <asp:datapager> control inside ItemTemplate of the Repeater. Make appropriate adjustment to make pages you divide your text programmatically.
|
|
|
|
|
Hi abhishek ,
Tks fro ur reply...,
i tried my best with datapager...,
but i didnt get any solution...,
plz give me some sample urls which can split a string and view in next page
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
|
Zafar Ali Khan 1900 wrote: I have developed the addin for outlook 2003 using vs 2008
it is working fine in outlook 2003. But not working in outlook 2007.
I guess, The Addin you developed an Windows Application, Not related with ASP.NET. This is ASP.NET Forum. Please asked your question on C# Forum
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
This is from Chandrakanth.
Actually i am looking for some free WebServices for sending SMS from ASP.Net
Actually i have used on of the web service i.e
"http:www.webservicex.net/SendSMS.asmx?WSDL" This is not working and also
it is giving error message like
"unable to Connect Remote Server "www.webservicex.net"
Can any one tell me some free Webservice which is use full to send SMS
Thanks and Regards
Chandrakanth
|
|
|
|
|
try this[^]
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
|
This link has trial SMS gateway all over the world to test your application. http://www.clickatell.com/[^]
Regards,
Ulhas
MCTS WM Application Development
|
|
|
|
|
check these links
http://www.codeproject.com/KB/cpp/SendSmsThroughWS.aspx
http://www.webservicex.net/SendSMS.asmx
http://mashable.com/2008/04/19/send-text-messages/
http://www.csoft.co.uk/sms/api/http_to_sms.htm
those might help.
|
|
|
|
|
hiiii
I have created a menu dynamically and populated it dynamically.
now i want to create a eventhandler so that on clicking the menu item the page gets redirected to particular page.plz help me.i hav written following code:
private void populatemenu1()
{
//string menu = "menu" + i;
DataSet ds = GetDataSetForMenu1();
Menu menu = new Menu();
foreach (DataRow parentItem in ds.Tables["Menu"].Rows)
{
MenuItem submenu = new MenuItem((string)parentItem["Menu"]);
menu.Items.Add(submenu);
foreach (DataRow childItem in parentItem.GetChildRows("SubMenu"))
{
MenuItem childrenItem = new MenuItem((string)childItem["SubMenu"]);
submenu.ChildItems.Add(childrenItem);
}
}
menu.StaticMenuItemStyle.ForeColor = System.Drawing.Color.Black;
//menu.StaticMenuItemStyle.ForeColor = System.Drawing.Color.Black;
menu.StaticMenuItemStyle.Font.Bold = true;
menu.DynamicMenuItemStyle.ForeColor = System.Drawing.Color.Black;
menu.DynamicMenuItemStyle.Font.Bold = true;
menu.DynamicVerticalOffset = 25;
menu.DynamicHorizontalOffset = -75;
//menu.Click += new System.EventHandler(this.menu_Click);
//menu_Click( object sender, System.EventArgs e);
//menu.MenuItemClick += new System.EventHandler(this.menu_Click);
Panel2.Controls.Add(menu);
Panel2.DataBind();
}
private DataSet GetDataSetForMenu1()
{
SqlConnection myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Jajaipur"].ConnectionString);
SqlDataAdapter adCat = new SqlDataAdapter("SELECT * FROM Menu Where MenuId=1", myConnection);
SqlDataAdapter adProd = new SqlDataAdapter("SELECT * FROM SubMenu Where MenuId=1", myConnection);
DataSet ds = new DataSet();
adCat.Fill(ds, "Menu");
adProd.Fill(ds, "SubMenu");
ds.Relations.Add("SubMenu",ds.Tables["Menu"].Columns["MenuId"],
ds.Tables["SubMenu"].Columns["MenuId"]);
return ds;
}
thanks....
|
|
|
|
|
set
childrenItem.NavigateUrl="PageUrl";
|
|
|
|
|
hiii
its ok but how wud u know that which item is clicked....without using eventhandler.
this line will redirect all childitems to common page...
|
|
|
|
|
if u want to dynamically assign diffrent URL to each item.
then save Navigate Url To table from where u picking the
chiled items.
or
Use
MenuItem item = new MenuItem("Default");
if (item.Text == "Default")
item.NavigateUrl = "Default.aspx";
else if (item.Text == "Home")
item.NavigateUrl = "Home.aspx";
else if()
{
}
|
|
|
|
|
this line is givin error when m writtin it in csharp.
the error is:
cannot convert implicitly string to bool.
|
|
|
|
|
i have added the last (else if) code for more conditions if you have.
i am giving you an example.
if u r using the same then remove the last (else if)
|
|
|
|
|
You have to set NavigateURL for the MenuItem.
MenuItem.NavigateUrl="Default.aspx"
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
sir....
ihav done this but it just redirect all childitems to single page.
i want that on clicking each item it redirects to different page....
thnks...
|
|
|
|
|
pariofshona wrote: it just redirect all childitems to single page
Because I guess you gave only single page url. While retreving Menu name from DB, load the corresponding Page Name, and set the navigate url.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
how to load the corresponding page name...
i hav 2 table menu,submenu.
columns in menu are menu and menuid.
columns in submenu are menuid,submenuid,submenu.
i hav linked both table on basis of menuid col...
thnks....
|
|
|
|
|
You must be having seperate url for evry child item.Get those urls and at the time of create a new menuitem set the NavigateUrl property which you picked you from DB.
Cheers!!
Brij
|
|
|
|
|
Frnds,
I have got 5 panels with diff, data on it.
For 5 type of user the panels are created but for admin login all 5 panels must be visible at a time. So the position of panel have to be diff.
BUT when user five login and see his content than that panel appeares at the bottom (i make all the above 4 panel visible=false).
What i want the positon of panel to be set from my c# code that is .cs file.
Is there any x,y co-ordinates of panel???
|
|
|
|
|
Rather than Panel, Use Div . And hide and Unhide them accordingly. This will resolve your problem
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
asp:panel renders to a div. Use style property to assign position arguments like :
<asp:Panel ID="pnl" runat="server" Style="left: 100; top: 500; background-color:Red; border: solid 1; padding: 10; position:absolute;">
This is a panel</asp:Panel>
to do your job.
|
|
|
|