Split IP Address Into 4 Parts?
Jul 19, 2010I have IP address like 192.87.88.01 i want to split in 4 parts by dot separator
View 5 RepliesI have IP address like 192.87.88.01 i want to split in 4 parts by dot separator
View 5 RepliesHow to Divide image in two parts like I have an image which width x Height = 16 x 32.
And I want to split image in two images 16x 16 and 16x 16.
How can i do it?
I am trying to split a collection into multiple collections while maintaining a sort I have on the collection. I have tried using the following extension method, but it breaks them incorrectly. Basically, if I was to look at the items in the collection, the order should be the same when compared to the broken up collections joined. Here is the code I am using that doesn't work:
public static IEnumerable<IEnumerable<T>> Split<T>(this IEnumerable<T> list, int parts)
{
int i = 0;
var splits = from name in list
group name by i++ % parts into part
select part.AsEnumerable();
return splits;
}
int parts = number of sub enumerables
I have a gridview that is displaying a time format like so 00:00:00 I need to split that into 3 seperate values so i can set my dropdowns to those values.
what can i search on to accomplish this.. im taking 3 drop downs and combining them into 1 value before the page is submitted.. but at a later time if you want to resubmit the form, you can pick from a list of values you have already used. so i need to take that value and split it to set the dropdowns.
I have managed to expose the MEX endpoint of my WCF service and I can access it with the address like [URL] (example) and get the WDSL. So no problem there.
However, my WCF test page shows the address wrongly by using the server's name instead of the DNS name. And if I click on the link on the test page it won't work (can't get WSDL).
The WCF test page looks like this:
MyService Service
You have created a service.
To test this service, you will need to create a client and use it to call the service.
[URL]
The WCF service is hosted in IIS6. I would like to have a test page with the correct WSDL address so users can see the WSDL quickly in the browser just by clicking on the WSDL address.
In short: How can I change the MyServerName to inter.mycompany.com on the WCF test page? Can this be specified somewhere in the Web.config?
I am trying to pull entries from a database based on the current users IP Address. Here is what I have so far:
[Code]....
I am receiving the following error: Cannot find either column "Request" or the user-defined function or aggregate "Request.UserHostAddress.ToString", or the name is ambiguous.
Is it possible to do this? Should I try to access this information another way?
Is it possible to find out the clients IP and possibly MAC address from non IE browsers (i.e. without using ActiveX)? If so, how?
View 1 RepliesHow do I obtain the IP address or MAC address or some Unique ID of a device within a mobile app, either client or server side?
We are developing a web application targeting iPhone, BlackBerry and Android, generally device independent, and we are looking for ways to uniquely identify a device for added authentication purpose. Is there a way to uniquely identify a mobile device, regardless of the make and model?
My aspx page contains a region which is populated trough ajax. The pupulated content is that of the page MyWebpart.aspx. But MyWebpart.aspx contains not only a grid(which is what I need to get trough ajax), it also contains , , , tags because this are required for any aspx file.code to replace inner html with that received from webpart
displayElement.innerHTML += executor.get_responseData();
I have a url like this :
http://www.somesite.com/mypage.aspx?myvalue1=hello&myvalue2=goodbye.
I want to get mypage.aspx?myvalue1=hello&myvalue2=goodbye from it . Can you tell me how can I get it ?
I am working with webpart. I have developed webpart but has some issues in managing its personalization/personal settings.
For example when user A gets logged in and personalize any webpart. Then uer B gets logged so it should have default webpart setting or own personal setting webpart.
I am referring following site:
[URL]
kindly tell how to use these methods or others which are present in sqlprovider
1) SavePersonalizationBlob
2) LoadPersonalizationBlobs
Is there any tutorials or example to help me or any1 can have idea or example etc to
What is the difference between the attributes WebBrowsable and Personalizable in a Sharepoint 2010 web part?
e.g.[Personalizable(), WebBrowsable]
public string IconURL { get; set; }
vs
[WebBrowsable]
public string IconURL { get; set; }
MSDN gives the impression that personalizable is per user, whereas webbrowseable is for all users - however it doesn't explicitly mention this and I would like to get this sorted in my head.E.g. can I set a user specific property on personalizable and web-part wide on webbrowsable?
i want to update different areas of my MVC page after one action (say a click) occurs.
how, i use ajax, and wrapping the entire area where all these parts need to be updated is counter intuitive as the ajax data being sent back would be close to the entire page.
so, i have a few partial views, - but the problem is, each action only returns one view! how can i return multiple views from this one action?
i know a popular solution is to just hammer the server with multiple async javascript ajax requests for each "part" of the view, but this really is unnecessary and inefficient, reconstructing and destroying the page (say) 5 times for just one action, when it should just occur once, and once it does, the server should manage all the partial views then and there.
This is my first time working with web parts. Was wondering if anyone can show me how to create a new webpart project in VS2008. I don't see any options for creating a "web part template" when I go to create a new project.
View 2 RepliesI am having trouble with ASP.NET and trying to use web parts. I am receiving and error. I am using VS 2008, with ASP.NET 2.0. I create a new project and add the webpart manager and then the webpartzone. I build and run the project and receive the error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
SQLExpress database file auto-creation error:
The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:
If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist. If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the applications App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server accounts credentials are used when creating the new database. Sql Server Express must be installed on the machine. The process identity for the web server account must have a local user profile. See the readme document for details on how to create a local user profile for both machine and domain accounts.........................
I am writing web site using ASP.net, and I want to seperate my pages into some logical HTML parts (menus, panels, etc.).
When it comes to parts that have a server logic, the obvious solution is to use UserControl, but most of the parts on my site, have client side logic only, i.e javascript and HTML. Recently I found out that it's possible to include parts by using the code:
<% Response.WriteFile ("MyPart.html") %>
So my question is: what is the better way to do it? should I write a UserControl for each one of my parts, or should I user Resonse.WriteFile (...) for my non-server-side logic parts?
I'm not really a developer but I have experience in PHP, Java and want to have a go at developing some really simple SharePoint web parts (for WSS 3.0, MOSS 2007 and in future 2010).I assume it requires knowledge of ASP.NET. Should I start learning C# or get stuck straight into web parts.
View 3 RepliesI have form and i'm using web parts for asp.net.I want the first web part the stretch the entire width and on the second row I have 2 small web parts to on the second row
<big web part>
<second><third>
But, I can't get the 2nd and third web parts to be on the same line. [Code]....
I am setting up an asp.net web parts portal for some stuff. I have a [hopefully] really easy question. How can I make the page have 3 major columns?
Right now I have two columns using <div id="leftpanel" style="float: left"> and <div id="rightpanel" style="float: right">. But I cannot figure out how to get a panel in the center. The right panel is basically in the center and there is not a css float: middle/center. So how is a three panel web parts page accomplished?
I want to create some parts of my page dynamically.
in fact I want when the user uploads some photos, dynamic parts of the page for viewing thumbs and entering captions will be created (like facebook)
I am using web parts in my web page( ASP.NET 2.0 and C#).
The contents of these web parts vary in size. For example, one web part has calendar control, another web part has the File Upload control.
I have added the web parts under "td" tag. So the web parts are of different sizes now, I want to make the webparts to be of same height and width, regardless of the content available.
How to set the height and width to be same for all web parts regardless of the content available in the webparts.
Also, when I web page is running, I am able to "WebPartZone1" which is the Id in the page. How to hide that name from appearing.
I am studying for the 70-562 examination and I came to the web part section.
I was trying to do the exercises presented in the Microsoft's book for this examination, but there is a part where I have to gather all the Display
[Code]....
I am developing a registration process which consists of 4 steps. Each step has its own action method. As such a user could type the url for each step as follows: bogusURL/Step1 //returns the View Step1 bogusURL/Step2 //returns the View Step2 etc... I would like to prevent users from gaining access to a step unless they have completed the previous steps. i.e. If they typed in bogusURL/Step2 without having completed Step 1 they should be redirected to the first step.
What is the best way to implement this?
I would like to know if it's possible not to use ASPNETDB.MDF file for the web parts.I don't want to store any data in ASPNETDB.MDF, I would like to remove that file, I tried delete it, but every time I compile my project, ASPNETDB.MDF creates it self automatically.
View 2 RepliesI'm starting a web project where I would like to have the minimize/collapse functionality of the Web Parts. In a future version I would like to let the user move the modules around and add and remove modules to/from the page, but not right now. The users don't have to be authenticated to use the portal and if they are, I can't use the built in authorize functions. My questions are: should I use Web Parts, or should I just use Web User Controls? Is there other libraries, similar to Web Parts, that are better suited for my use?
View 2 Replies