Quantcast
Channel: CodeProject Latest postings for ASP.NET
Viewing all 3938 articles
Browse latest View live

Need help populating fields from database to form in page load

$
0
0
I am trying to populate the fields on a form from the database and the values aren't populating on the form. I have the value for the where clause hard coded in the code and it doesn't show the values that are in the database for that record on the form:

protectedvoid Page_Load(object sender, EventArgs e)
        {this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None;



            {
                labelRID.Text = Request.QueryString["id"];string rid = labelRID.Text;string activityid = labelactivityid.Text;if (!IsPostBack)
                {
                    Bindactivitycodedropdown();if (rid != "")
                    {

                        OracleConnection conn = new OracleConnection();
                        OracleCommand cmd = new OracleCommand();
                        conn.ConnectionString = strConnection;
                        conn.Open();

                        cmd.Connection = conn;
                        cmd.CommandText = "Select RID, BUYING_ACTIVITY_ID, CUSTOMER_SOURCE_CODE, CUSTOMER_NAME, CUSTOMER_CITY, CUSTOMER_STATE, CUSTOMER_POSTAL_CODE, BUYING_ACTIVITY_CODE from BUYING_ACTIVITY WHERE RID = '55555'";
                        cmd.Parameters.Add(new OracleParameter("RID", Request.QueryString["ID"]));
                        OracleDataAdapter da = new OracleDataAdapter(cmd);
                        cmd.CommandType = CommandType.Text;
                        OracleDataReader dr = cmd.ExecuteReader();if (dr.Read())
                        {
                            labelRID.Text = dr["rid"].ToString();
                            custname.Text = dr["customer_name"].ToString();
                            custcity.Text = dr["customer_city"].ToString();
                            custstate.Text = dr["customer_state"].ToString();
                            custpostalcode.Text = dr["customer_postal_code"].ToString();
                            activitycode.SelectedItem.Text = dr["buying_activity_code"].ToString();
                            custsrccode.Text = dr["customer_source_code"].ToString();
                            cvactivitycode.Enabled = false;//custname.Text = custstate.SelectedValue.ToString();//if (activitycode.SelectedValue == "0")//{//    custname.Text = "";//    custcity.Text = "";//    custpostalcode.Text = "";//}                            dr.Close();
                            conn.Close();
                        }else
                        {

                            labelRID.Text = "";
                            custname.Text = "";
                            custcity.Text = "";
                            custstate.Text = "";
                            custpostalcode.Text = "";
                            activitycode.SelectedItem.Text = "";
                            custsrccode.Text = "C812 - NASA";

                        }
                    }
                }
            }
        }

Error: Server did not recognize the value of HTTP Header SOAPAction

$
0
0
Hello,

I know that ASMX technology is considered legacy stuff. There's no need to lecture me on that point.

I am jumping in on an existing project that uses web services. (Editorial statement: Yuck!) When I test the webservice, I call up a similar URL to this:
https://OurServerVisibleToThePublic.com/FolderWithASMXFile/TheASMXFile.asmx

When I do this I get a page that contains all of the webservices we have defined. When testing, I click on one of them, a new page opens with parameters, I give it credentials and the XML that I am expecting is returned.

Now, I am attempting to call one or more web services from an ASP.NET application. The code looks like:
DIM WS as new CompanyWebServices.WebServicesClassName
GetData.DataSource = WS.MyWebServiceName(param1, param2, param3)

Unfortunately, the second line bombs, producing this fun error to solve:
Error: Server did not recognize the value of HTTP Header SOAPAction

At the top of the WSDL file, I have an attribute with a TargetNameSpace. The current setting is similar to this:
targetNamespace="https://OurServerVisibleToThePublic.com/FolderWithASMXFile"

When the app encounters the second line (i.e., WS.MyWebServiceName) I generate this error:
Message=System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: https://OurServerVisibleToThePublic.com/FolderWithASMXFile/MyWebServiceName.
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

* * * *

Does anyone know what I should specify in my TargetNameSpace? Does anyone actually like to troubleshoot web services? Thanks.

Converting from XAML to HTML5

$
0
0
Hi all,

I have an Application that's using WPF, in which I have a ListBox as below, can I have similar kind of ListBox in HTML5 or can we have at least any other similar Control so that I can give same look and feel to the Customers that are using the Application. Any help is going to be very helpful, a code snippet a link or even a suggestion would be greatly helpful.

In the below xaml if you can replace < with < and > with > symbols it works. Is there any online tool to convert from xaml to HTML5 instead of downloading the application, because my company has download restrictions in the environment.

Here is the ListBox look like xaml:
 
&lt;ListBox
        Name="Members"
        HorizontalAlignment="Left"
        VerticalAlignment="Top"
        Margin="166,80,0,0"
        HorizontalContentAlignment="Left"
        VerticalContentAlignment="Top"
        ItemsSource="{Binding ElementName=SubscriberResults, Path=SelectedItem.Members}"&gt;&lt;ListBox.ItemsPanel&gt;&lt;ItemsPanelTemplate&gt;&lt;StackPanel
                    Orientation="Horizontal"&gt;&lt;/StackPanel&gt;&lt;/ItemsPanelTemplate&gt;&lt;/ListBox.ItemsPanel&gt;&lt;ListBox.ItemTemplate&gt;&lt;DataTemplate&gt;&lt;StackPanel
                    VerticalAlignment="Top"&gt;&lt;TextBlock
                        VerticalAlignment="Top"
                        HorizontalAlignment="Left"
                        Text="{Binding Path=Name}"
                        Style="{StaticResource DataLabel}"/&gt;&lt;TextBox
                        VerticalAlignment="Top"
                        HorizontalAlignment="Left"
                        Text="{Binding Path=SSN}"
                        FontSize="12"
                        BorderBrush="Transparent"
                        /&gt;&lt;TextBlock
                        VerticalAlignment="Top"<br/>
                        HorizontalAlignment="Left"
                        Text="{Binding Path=DOB, StringFormat=d}"
                        Style="{StaticResource DataLabel}"/&gt;&lt;ListBox
                        ItemsSource="{Binding Path=MemberDetails}"&gt;&lt;ListBox.ItemTemplate&gt;&lt;DataTemplate&gt;&lt;TextBox
                                    Text="{Binding Path=TranslatedDetail}"&gt;&lt;TextBox.Style&gt;&lt;Style
                                            TargetType="TextBox"
                                            BasedOn="{StaticResource DataBox}"&gt;&lt;Style.Triggers&gt;&lt;DataTrigger
                                                    Binding="{Binding Path=HasParsedData}"
                                                    Value="True"&gt;&lt;Setter
                                                        Property="FontWeight"
                                                        Value="Bold" /&gt;&lt;/DataTrigger&gt;&lt;/Style.Triggers&gt;&lt;/Style&gt;&lt;/TextBox.Style&gt;&lt;/TextBox&gt;&lt;/DataTemplate&gt;&lt;/ListBox.ItemTemplate&gt;&lt;/ListBox&gt;&lt;Button Click="Enroll_Click"&gt;
                        Enroll&lt;/Button&gt;&lt;/StackPanel&gt;&lt;/DataTemplate&gt;&lt;/ListBox.ItemTemplate&gt;&lt;/ListBox&gt;
 
Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."

ASP Button not displaying on Windows 2012 Server

$
0
0
I've an application that displays information in a gridview:

<asp:GridViewID="GridView1"runat="server"AllowPaging="True"AllowSorting="True"AutoGenerateColumns="False"Font-Size="X-Small"OnRowDataBound="GridView1_RowDataBound"PageSize="100"DataSourceID="SiteDataSource1"Width="100%"><PagerSettingsMode="NumericFirstLast"PageButtonCount="20"Position="TopAndBottom"/><RowStyleCssClass="itemstyle"/><HeaderStyleCssClass="headerstyle"/><AlternatingRowStyleCssClass="altstyle"/><Columns><asp:BoundFieldDataField="Description"HeaderText="Description"ReadOnly="True"SortExpression="Description"><ItemStyleWrap="False"/></asp:BoundField><asp:BoundFieldDataField="Identifier"HeaderText="Identifier"ReadOnly="True"SortExpression="Identifier"><ItemStyleWrap="False"/></asp:BoundField><asp:BoundFieldDataField="State"HeaderText="State"ReadOnly="True"SortExpression="State"><ItemStyleWrap="False"/></asp:BoundField><asp:BoundFieldDataField="HostHeaderValue"HeaderText="Host Header Value"ReadOnly="True"SortExpression="HostHeaderValue"/><asp:BoundFieldDataField="IPAddress"HeaderText="IP Address"ReadOnly="True"SortExpression="IPAddress"/><asp:BoundFieldDataField="Port"HeaderText="Port"ReadOnly="True"SortExpression="Port"/><asp:BoundFieldDataField="SSLPort"HeaderText="SSL Port"ReadOnly="True"SortExpression="SSLPort"/><asp:TemplateFieldShowHeader="False"><ItemTemplate><asp:ButtonID="Button1"runat="server"CausesValidation="false"CommandName="Control"OnClick="Button_Clicked"Text="Control"Width="50"/></ItemTemplate><ItemStyleWidth="50px"/></asp:TemplateField></Columns>


the status of the button is set

protectedvoid GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {try
        {if (e.Row.RowType == DataControlRowType.DataRow)
            {
                DataRowView entry = e.Row.DataItem as DataRowView;if (entry != null)
                {switch (entry["State"] asstring)
                    {case"Stopped":
                            e.Row.Cells[2].BackColor = System.Drawing.Color.OrangeRed;
                            e.Row.Cells[2].ForeColor = System.Drawing.Color.White;
                            ((Button)e.Row.Cells[7].Controls[1]).Text = "Start";
                            ((Button)e.Row.Cells[7].Controls[1]).ForeColor = System.Drawing.Color.Green;
                            ((Button)e.Row.Cells[7].Controls[1]).CommandArgument = entry["Site"] asstring + "|" + entry["Description"] asstring;break;case"Running":
                            e.Row.Cells[2].BackColor = System.Drawing.Color.Honeydew;
                            ((Button)e.Row.Cells[7].Controls[1]).Text = "Stop";
                            ((Button)e.Row.Cells[7].Controls[1]).ForeColor = System.Drawing.Color.Red;
                            ((Button)e.Row.Cells[7].Controls[1]).CommandArgument = entry["Site"] asstring + "|" + entry["Description"] asstring;break;default:
                            e.Row.Cells[2].BackColor = System.Drawing.Color.Yellow;
                            e.Row.Cells[7].Text = "";break;

                    }


on a Windows 2008 server the button displays with no issues, however when I view this page with the gridview the column with the button is empty on a Windows 2012 server. Has anyone seen this before? Any help/advice greatly appreciated.

How Can I Expand the Field Name Column in an MVC Details view?

$
0
0
In an MVC Details view, it displays the field names down the left side using dt tags and it displays the data down the right side using dd tags.

My issue is that a few of my field names are longer than the room that is provided, so the last word or two of the column header drops down to the next line. How can I expand the available width for the field names column?

I have tried using CSS to set the Width and Column-Width properties of the dt tags. Neither one has any effect.

Calling get method using typescript

$
0
0
Hi all,

I have an ASP.Net MVC application using Web API Controller, I want to call get method for Button Click using TypeScript, here is my Web Api Controller and its action method.
 
publicclass HomeController : ApiController
{
    [System.Web.Http.ActionName("GetByString")]public IEnumerable<File834Dto> Get(string subscriberNumber)
        {var someObj = SearchResults.SearchBySubscriberNumber(subscriberNumber);return (someObj != null) ? someObj.FileResults : null;//NorthwindEntities db = new NorthwindEntities();//var data = from item in db.Customers//           select item;//return data.ToList();        }
}

And here is my HTML, I want to bind the results to the divSearchResult listbox, any sort of help would be very helpful, I am little bit new to the front end world, thanks in advance.

@{
ViewBag.Title = "Home Page";
}

<script src="~/Scripts/Search/search.js"></script>

<!DOCTYPE html>

<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Home Page</title>
</head>

<body style="position: absolute; height: 98%;min-height:98%;width:85%;min-width:85%;">
<div style="position: absolute; height: 90%;min-height:90%;width:95%;min-width:95%;">
<div style="position: absolute; height: 90%;min-height:90%;width:95%;min-width:95%;">
 
&lt;div id="divSearchResult" style="height: 90%;min-height:90%;width:95%;min-width:95%;"&gt;&lt;select name="cars" multiple="multiple" style="position: absolute; top:5%;"&gt;&lt;option value="volvo"&gt;Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo&lt;/option&gt;&lt;option value="saab"&gt;Saab&lt;/option&gt;&lt;option value="fiat"&gt;Fiat&lt;/option&gt;&lt;option value="audi"&gt;Audi&lt;/option&gt;&lt;/select&gt;&lt;label style="position: absolute; left:400px; top :5%;"&gt;Test&lt;/label&gt;&lt;select name="cars" multiple="multiple" style="position: absolute; left:400px; top :10%;"&gt;&lt;option value="volvo"&gt;Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo&lt;/option&gt;&lt;option value="saab"&gt;Saab&lt;/option&gt;&lt;option value="fiat"&gt;Fiat&lt;/option&gt;&lt;option value="audi"&gt;Audi&lt;/option&gt;&lt;/select&gt;&lt;/div&gt;&lt;div id="divSearch"&gt;&lt;p&gt;&lt;input type="text" name="txtSubscriberIdOrName"&gt;&lt;/p&gt;&lt;p&gt;&lt;button style="width: 150px; border-radius: 5px; background: url('../../Content/Images/search-icon-psd-png.jpg'); background-size: 25%, 25%, 25%;background-repeat: no-repeat;"
                        id="search_report"&gt;
                    Search&lt;/button&gt;&lt;/p&gt;&lt;/div&gt;&lt;div id="message"&gt;&lt;/div&gt;&lt;div&gt;
            Compiler: &lt;input id="compiler" value="TypeScript" onkeyup="document.getElementById('message').innerText = sayHello()" /&gt;&lt;br /&gt;
            Framework: &lt;input id="framework" value="ASP.NET" onkeyup="document.getElementById('message').innerText = sayHello()" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

</body>
</html>
 
Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."

targeting .js files into different directories using typescript and tsconfig file

$
0
0
Hi all,

I am writing type script files and have a tsconfig file, I am able to run those files and place the js files in one output directory, but I want to be able to place outDir in one tsconfig file because I want to place related .js files into one outDir so that bundling can be easy for me in loading them on demand. Any sort of help will be very helpful, I am new to the MVC and front end technologies. Thanks in advance and happy new year 2017 Smile | :)

Here is my tsconfig looks like, in the below tsconfig code I want to put the search.js file in different outDir, File834.js in different folder and both Validation.js, Calculator.js in one another outDir, can anybody please help me.
 
{"compilerOptions": {"module": "system","noImplicitAny": true,"noEmitOnError": true,"sourceMap": true,"target": "es5","outDir": "./Scripts/Search"
  },"files": ["./src/search.ts","./src/File834.ts","./src/Validation.ts","./src/Calculator.ts"
  ],"compileOnSave": true
}
 
Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."

Create and Use an ASP.NET Core Website Template

$
0
0
I have created an ASP.NET Core website which will be a template for future web sites. I have removed Bootstrap and included W3.CSS instead, which I find easier to use and just as rich in function as Bootstrap. I have also included npm, gulp and bower and seeded them with the tools I use. I have this saved in a directory.

My problem now is that if I create a new website, I cannot find any way to include this template as the starter set. Conversely, if I open my template, I cannot find any way to save it under a new name in another directory. Every option seems to involve overwriting the template. Does anyone have any suggestions?

I know someone will say that this is easy, so in my defence, I am pleading old age and stupidity in advance.

Passing Model info in MVC

$
0
0
Take a peek! This is my controller:

public ActionResult SaveInfo(GetOrderDetail_Result items) //This method will call a stored proc to pass parameters
{
var hold = items.Master_OrderNum;
//cb.SaveAgentViewInfo(master_OrderNum);

return View(Index());
}

When I pass the model to the Action method none of the properties are initialized from the view page.
The master_OrderNumnumber comes through as a null.

I'm calling this in my View:
document.location = '@Url.Action("SaveInfo", "ControllerName", new { Model })';

I actually use a foreach(var item in Model) to print certain things to divs on the cshtml page and all that works perfectly. But after passing that same model everything is blank inside in the controller. I don't know what side it should be initialized on. I'm new to MVC!

Help!!

Calling get method using typescript - need really some help

$
0
0
Hi all,

I have an ASP.Net MVC application using Web API Controller, I want to call get method for Button Click using TypeScript, here is my Web Api Controller and its action method.
 
publicclass HomeController : ApiController
{
    [System.Web.Http.ActionName("GetByString")]public IEnumerable<File834Dto> Get(string subscriberNumber)
        {var someObj = SearchResults.SearchBySubscriberNumber(subscriberNumber);return (someObj != null) ? someObj.FileResults : null;//NorthwindEntities db = new NorthwindEntities();//var data = from item in db.Customers//           select item;//return data.ToList();        }
}

And here is my HTML, I want to bind the results to the divSearchResult listbox, any sort of help would be very helpful, I am little bit new to the front end world, thanks in advance.

@{
ViewBag.Title = "Home Page";
}

<script src="~/Scripts/Search/search.js"></script>

<!DOCTYPE html>

<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Home Page</title>
</head>

<body style="position: absolute; height: 98%;min-height:98%;width:85%;min-width:85%;">
<div style="position: absolute; height: 90%;min-height:90%;width:95%;min-width:95%;">
<div style="position: absolute; height: 90%;min-height:90%;width:95%;min-width:95%;">
 
&lt;div id="divSearchResult" style="height: 90%;min-height:90%;width:95%;min-width:95%;"&gt;&lt;select name="cars" multiple="multiple" style="position: absolute; top:5%;"&gt;&lt;option value="volvo"&gt;Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo&lt;/option&gt;&lt;option value="saab"&gt;Saab&lt;/option&gt;&lt;option value="fiat"&gt;Fiat&lt;/option&gt;&lt;option value="audi"&gt;Audi&lt;/option&gt;&lt;/select&gt;&lt;label style="position: absolute; left:400px; top :5%;"&gt;Test&lt;/label&gt;&lt;select name="cars" multiple="multiple" style="position: absolute; left:400px; top :10%;"&gt;&lt;option value="volvo"&gt;Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo Volvo&lt;/option&gt;&lt;option value="saab"&gt;Saab&lt;/option&gt;&lt;option value="fiat"&gt;Fiat&lt;/option&gt;&lt;option value="audi"&gt;Audi&lt;/option&gt;&lt;/select&gt;&lt;/div&gt;&lt;div id="divSearch"&gt;&lt;p&gt;&lt;input type="text" name="txtSubscriberIdOrName"&gt;&lt;/p&gt;&lt;p&gt;&lt;button style="width: 150px; border-radius: 5px; background: url('../../Content/Images/search-icon-psd-png.jpg'); background-size: 25%, 25%, 25%;background-repeat: no-repeat;"
                        id="search_report"&gt;
                    Search&lt;/button&gt;&lt;/p&gt;&lt;/div&gt;&lt;div id="message"&gt;&lt;/div&gt;&lt;div&gt;
            Compiler: &lt;input id="compiler" value="TypeScript" onkeyup="document.getElementById('message').innerText = sayHello()" /&gt;&lt;br /&gt;
            Framework: &lt;input id="framework" value="ASP.NET" onkeyup="document.getElementById('message').innerText = sayHello()" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

</body>
</html>
 
Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."

Few questions regarding MCSD and MCPD exam for dotnet

$
0
0
i have few questions about MCSD and MCPD exam.

1) what is difference between MCSD and MCPD ?

2) i have 10 years exp in dotnet platform. so tell me should i go for MCSD or MCPD ?

3) i heard from people who passed MCPD and they said if i do not get right brain dumps for MCSD or MCPD examp then it will be hard to pass those exam.......is it true. so my request if some one who passed recently MCSD or MCPD then please share your information for how one should prepare oneself for MCSD or MCPD examp.

4) how many questions comes in MCSD or MCPD exam and what is the duration for MCSD or MCPD exam ?

5) how do i know that MCSD or MCPD examp will take for which dotnet version and what is the syllabus for the exam ?

from where to download MCSD related brain dumps which help me to pass the exam.

please some one answer me point wise in detail for better clarity.
tbhattacharjee

asp.net_add two entries to the same selected row cell of table from different pages.

$
0
0
hello how to put multiple entries from different pages to the same gridview table.

How to dynamically add roles to authorize attribute for controller and action in ASP.Net MVC

$
0
0
I need to enable my admin user to change access permissions for users on the fly, such that they can create new Roles and add permissions to those Roles and assign that role to any user at run time.

I don't want to 'set' the roles during development, as in [Authorize(Roles="Role1, Role2")] etc because after development if i add roles to any user then again i have to recompile the code and copy the changed dll to project bin folder.

we often hard code the role name with authorized attribute but what if i need to do this kind of association at run time in asp.net mvc project. is it possible please discuss all your thought.

i have seen your have good control on role base access system development. so please guide me how can i add roles to action or controller at run time.if possible please discuss this topic with sample code.

thanks
tbhattacharjee

VJSCOR Assembly frequent error only in UAT environment Not in PROD

$
0
0
Hi Guys,

I am getting the below errors frequently whenever any deployment or after 40 minutes I am getting the below error only in UAT environment. But not in Production Environment . All codes are same in UAT and Prod.

Please suggest any solution

Could not load file or assembly 'vjscor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'vjscor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Source Error:


Line 38:
Line 39:
Line 40: <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
Line 41:
Line 42:

Source File: D:\Projects\AEDDO\login.aspx Line: 40

Assembly Load Trace: The following information can be helpful to determine why the assembly 'vjscor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

MVC Standard coding

$
0
0
I'm kind of new to MVC (been programming for about 6 months), I'm looking for some help trying to learn standard coding in mvc, I already have my model and classes separate in another project but what I'm looking for is things like exception handling, standard view messages for example I have a class called returnMessage and through this I send anything I want back to my view (in ViewBag) and display it there, so if you could guide me thought or give me some articles to read that would be fantastic.

Regards, Mr.K

ASP.NET Core 1.0 and Phone SDK

$
0
0
When developing a website under ASP.NET 2013, it was possible to open a "mobile phone" from one of the pulldowns to see what the new website would look like in a variety of phone types. I think that was available from a phone SDK that I had installed.

I have been searching for something similar for ASP.NET 2015 but without success. Does anyone know if something similar exists?

Create Webservice

$
0
0
Hi Expert

I went to create webservice using asp.net, project is to convert base64 image into string, plz help i am fresher, interviewer are provide task

Thanks

Add login button to MVC home page

$
0
0
New to MVC
I want to add a Login button to my home page that mimics the built in login on the menu bar.
Just want to give the user an option.
Thanks

what is code coverage feature come with VS IDE

$
0
0
sorry to post this issue may be in wrong category but please some one tell me what is code coverage feature come with IDE ?

what is the benefit of code coverage feature ?

whose responsibility to use code coverage feature ? developer responsibility or tester ?
tbhattacharjee

could not load file or assembly system.windows...The system cannot find the file specified

$
0
0
Hi All,

I develop an ASP.Net Web Application (Classic) .Net-framework 4.0 and every thing ok, but when publish the application on IIS and open the login page some and click the login button this error shown some times:
"could not load file or assembly system.windows., Version 2.0.5.0, Culture=netural, PublicKeyTocken=7cec85d7bea7798e or one of its dependencies. The system cannot find the file specified"

Please let me know hot to solve it and what is the reason?

Thank All
Viewing all 3938 articles
Browse latest View live