|
I have a web page, .net 4.5, that has a tab control. The second tab contains a chart control. When I run the page in VS 2013 Community Edition, it displays as it should. However, in the designer only the upper left portion of the chart is visible. Is there a way to fix this so that I can see the entire chart? I have a desktop application which has the same chart in a tabbed page, and it is all visible in the designer. I can't find anything to make the whole chart visible. Nothing scrolls, either. I have been unable to find anything on the web to shed light on this behavior.
Bobby
|
|
|
|
|
If you are setting the chart data dynamically, then, it seems to be the expected behavior.
Your design view cannot generate chart preview unless it gets the data. Even if it gets the data, generating design view is costly from performance point of view, so, it should not be done.
I would suggest not to rely on design view and test your charts while running it directly.
Life is a computer program and everyone is the programmer of his own life.
|
|
|
|
|
Anurag,
Thank you. The chart is not dynamically populated and contains whatever is the default. I have the same application on windows form and the entire chart shows. So, I am still puzzled as to why the chart does not show in its entirety on the web page designer. Maybe I don't have something that is quite right. But, for now I can live with it. I have a similar application using VS 2010 and .net 3.5. But I use images instead of the chart. But I cannot find how to add a point on the image with java script (or otherwise). I'm searching, though. Using the chart I would like to add some labels within the chart areas, but I haven't found a way to accomplish this. Any advice on either?
|
|
|
|
|
Hi all,
I have developed 3 tier MVC application using MVC controller, each time when the MVC controller calls repository, the repository would then invoke wcf service and deserialize into the model object. Diagram: WCF (return json string) -> Repository (deserialize and return objects) -> MVC Controller -> View
If i want to develop the 3 tier MVC application using asp.net web API, i do not know how is it possible? (1) I understand ASP WEB API controller returns HTTP response such as JSON, XML (content negotiable), then can I replace WCF with ASP WEB API and if this is valid, I can get confused how this can be a three tier application because ASP WEB API controller is already part of MVC project.
(2) Or should it be something like this Diagram: ASP Web API Controller (Self host, considered one tier) (return json string) -> Repository (deserialize and return objects) -> MVC Controller -> View
My confusion is whenever we talk about APIs, it should be able to self hosted as one tier (no doubt ASP WEB API has fulfilled this) and it is able to get called and return data to different applications. However, if ASP WEB API is at controller level and do I still need WCF as json data supplier?
I always prefer to deserialise json into model object before passing to MVC controller so that it make sure basic business logic is done. But with the use of ASP WEB API controller, I do not how to achieve the same because WEB API always return HTTP response in text unless I make use of MVC controller to fire the call to ASP WEB API and the deserialization can take place at MVC controller level.
Is it better to use asp.net web API controller with MVC rather than normal MVC controller? I have gone through a number of articles talking about ASP.NET MVC WEB API but I still have not seen core value how does it benefit to my 3 tier application mentioned above. I really need your guidance on this.
Thanks.
|
|
|
|
|
how to assign value of the session which is getting from text box with the text of the label on redirected page....i am getting the value of the session but not getting the text of the label along with the session value (which is nothing but text box value that i kept in session) when i redirect to different page....do help me with this issue.
|
|
|
|
|
You should show your code...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Thanks for the response but i got it fixed.
|
|
|
|
|
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
I am new at this. I am part of the Michigan Disaster Relief and setting up a database of all our team members. I would like to be able to send a text message to a volunteer through my web page.
I have done it before and got a data base with cell phone providers. Draw back is I have to ask the volunteer who their provider is.
Is there anyway I can send a text message without knowing the cell phone provider.
Thanks for your help.
Lonnie
|
|
|
|
|
|
Kelly
Thank you for your help. I have contacted Twilio and am in the process of trying it out
|
|
|
|
|
Kelly
I do not use c#. could you give me a simple example of how to use twilio in vb.net.
also the library is twilio c# and is that a problem
thanks
Lonnie
|
|
|
|
|
There are converters on the web that will convert from C# to VB, just google them.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
yes sir
I use one from telerik. one I am trying find out is the library was written in C# and will that cause a problem.
have not been able to test a simple send.
Lonnie
|
|
|
|
|
here is my code
Imports Twilio
Partial Class Default2
Inherits System.Web.UI.Page
Private Shared Sub Main(args As String())
Dim AccountSid As String = "AC5ef872f6da5a21de157d80997a64bd33"
Dim AuthToken As String = "[AuthToken]"
Dim twilio = New TwilioRestClient(AccountSid, AuthToken)
Dim message = twilio.SendMessage("+14158141829", "+16518675309", "Hey Jenny! Good luck on the bar exam!", New String() {"http://farm2.static.flickr.com/1075/1404618563_3ed9a44a3a.jpg"}, Nothing)
Console.WriteLine(message.Sid)
End Sub
End Class
I am getting an error on the dim message line
|
|
|
|
|
Sounds like you've got Option Strict On , but Option Infer Off . Change the project properties to set Option Infer On .
Compile Page, Project Designer (Visual Basic) | MSDN[^]
Option Infer | MSDN[^]
Also, change the declaration of the twilio variable to:
Dim twilio As New TwilioRestClient(AccountSid, AuthToken)
If you're still getting an error, then post the full details of the error here.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I have created customise webserver control for gridview with paging and sorting. But i also want to give the search option on all fields. User will click on search button and a pop up (using Ajax) will be shown with all fields name and corresponding text box. Based on the input, gridview will show desired records.
Could you help me how to display a table which contains field name and corresponding textbox. I created that table on page initialization method but how to display that table over gridview
Thanks in advance
|
|
|
|
|
You said you wanted to use a popup so I'd suggest an easy one is using jquery ui's dialog. https://jqueryui.com/dialog/[^]
Essentially you have a div on your page that has your gridview in it and then with very little jquery you can show that grid. There are other dialog/popup plugins but this is very simple and easy.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Thanks for your response.
I have created webserver control for gridview which has paging, sorting and data export functionality. I also want search option on all fields of gridview. User will click a button on the gridview pager and a popup should appear with all fields-name with corresponding textbox. User will enter some value in the textbox and by clicking search button, gridviwe will rebind the data based on that criteria.
Regards
Jawed Alam
|
|
|
|
|
Why did you repeat what you posted the first time? And there is no question.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Sir ,I have develope RCM business application .so i have many problems to create tree form in asp.net and how to be design binary tree and how to generete alternate Reference ID to be client.
Thank u.
please give right solution and right decision.
|
|
|
|
|
This is not how to use a forum; you're basically doing an open letter for someone to code for you.
From what you're describing, it sounds more like you are stuck on 2 or 3 different things. What have you come up with so far and what is is specifically that is giving you difficulty.
|
|
|
|
|
With above details no one will be able to get your problem details what you are facing.
Will suggest you to put your separate problems with code in question's section, it will help you to get solution faster.
modified 20-Sep-20 21:01pm.
|
|
|
|
|
I have a webpage in VB.net with a link so that when users click a url link, it directs them to an external website and it works but I want to add a extra layer so that it shows a message or intermediary page before the external page is loaded to the user. For instance, show a progress bar with delay and message stating "You are leaving this website" before showing or being redirected to the external page. I am using the code below to show the external link. Can you please help with this:
<a href = "<%# Eval("LinkUrl") %>" target="_blank"> Go to link</a>
Thanks in advance
|
|
|
|
|
I did do something similar quite some time ago which, while probably regarded as crude today, did at least work.
Essentially I had an intermediary page that took the target URL as either a query string (which could be the case here) so:
<a href = "<%=[urltoyourintermediarypage] + "?targetpage=" %><%# Eval("LinkUrl") %>"
target="_blank"> Go to link</a>
or as a variable (using an asp:hyperlink control).
The page then had a delayed meta-refresh to the target but while it was displayed showed a message warning that they were leaving the site and if they didn't want to continue to hit the cancel which'd just do a javascript history back.
|
|
|
|