| nHibernate installation | Hi
I am new to hibernate..i want the installation procedure and the required files to download in .NET using visual Studio 2008.
Thanks in Advance... |
| Server Application Unavailable | I have windows 2003 installed machine. In that under IIS websites i created one website. Inside that website i created 5 virtual directories, each one for different applications. But all should work under that website. Only two are running when I run remaining applications through URL ( or even from IIS - browse) I am getting Server Application Unavailable. When I checked event log the details are as below, Type : error Type ID : 1062 Description: It is not posible to run two different versions of ASP.NET in the same IIS process. Please use the IIS administration tool to reconfigure you server to run application in separate server. Actually in ASP.NET properties of all applications I had given .net framework 2.0.500727.0 version so no application is running on 1.0 version of .net framework. But some times all will run without making any changes. Please guide me to resolve this. Thanks in advance.
|
| Match content on website using asp.net and c# | I need to match the content on web.
For example consider I have one sample code,if i submit that code it
should search on web and display the website url where that code
exists. I need the code in asp.net and c#.
anyone if knows how to do this Plz do reply |
| Dynamice Text Boxes | Hello Friends, I have a page which has dropdown with numbers in it and upto 20.When i select any number from the dropdown i should show the no of textbox and checkbox dynamically in other page according to the number selected in previous page. I will explain with an example. If i select 10 in the dropdown then i need to show the 10 textboxes and 10 checkbox in other pages and then i need to fetch the value of the 10 textbox and 10 checkbox and save it to database. Please guide me on how to do this. Your help will be much appreciated. Thank you in Advance.
|
| Hidden value on selected index chaged | Hi, Im having an hidden field.whose value is set when selectedindex change of dropdown.but im not getting its value.Im getting it if i set it on page load. Plz help
|
| hiiiii to all.it's ma very first post in this forum. plzzzz help :-sending text box values into database. | protected void cmdSubmit_Click(object sender, EventArgs e)
{
String ConnectionString = "server=iconn;database=db_test;user id=sa;password=iconn;";
SqlConnection Conn = new SqlConnection(ConnectionString);
Conn.Open();
SqlCommand myCmd = new SqlCommand("INSERT INTO tbl_login(Userid,Password) VALUES(@txtUserName,@txtPassword)", Conn);
myCmd.ExecuteNonQuery();
myCmd.Dispose();
Conn.Close();
}
}
error:Must declare the scalar variable "@txtUserName".i have taken two text boxes as UserName and Password.
txtUserName and txtPassword are the id of text boxes. if i am using right way to send text box values in database.
protected void cmdSubmit_Click(object sender, EventArgs e)
{
String ConnectionString = "server=server1;database=db_test;user id=sa;password=xyz;";
SqlConnection Conn = new SqlConnection(ConnectionString);
Conn.Open();
SqlCommand myCmd = new SqlCommand("INSERT INTO tbl_login(Userid,Password) VALUES(@txtUserName,@txtPassword)", Conn);
myCmd.ExecuteNonQuery();
myCmd.Dispose();
Conn.Close();
}
}
i hav taken table as tbl_login and columns as Userid and Password. |
| What is best way to connect to cube in SQL Server 2008 using ASP.NET | To use: System.Data.Oledb or ADOMD.NET
.NET provides connection pooling by default.
Can it acheived in ADOMD.NET?
Please do reply.
Thanks.
|
| default button problem | its weird issue..
i am trying to set defaultbutton to a page.which has master page. but it doesnt work
the control i want to assign as imagebutton .
i have tried lots of things.doesnt work
tried.
form.defualtbutton=imgbtn.UniqueId;
dont know why it does not work..
one thing that i noticed other forms automatically render onsubmit attribute in form atag
this form doesnt..is this the reason??
the form does not have any client side validations as well..
kinda stuck.
thnx in advance... 
|
| POS for .NET v1.12 | http://blogs.msdn.com/pointofservice/attachment/8590083.ashx
Hi, I am trying to develop a program to control two barcode scanners. I found the article above and tried the samples in the article. After following all the steps in exercise I, II and III. the application can detect the barcode scanners. However, it produces errors when I select the demo scanner and click the activate button. I have checked with the coding, setting of registry keys, service object and hardware id. I couldn't find anything wrong.
Thanks for any helps.
Here are the errors:
System.ComponentModel.Win32Exception was unhandled Message="A device attached to the system is not functioning" Source="DemoScanner" ErrorCode=-2147467259 NativeErrorCode=31 StackTrace: at Microsoft.PointOfService.ExampleServiceObjects.HidReader.HidThread.StartReading() in E:\ScannerDemoTest\ScannerSampleLab1\DemoScanner\HidReader.cs:line 346 at Microsoft.PointOfService.ExampleServiceObjects.HidReader.OpenDevice() in E:\ScannerDemoTest\ScannerSampleLab1\DemoScanner\HidReader.cs:line 531 at DemoScanner.MyScanner.set_DeviceEnabled(Boolean value) in E:\ScannerDemoTest\ScannerSampleLab1\DemoScanner\MyScanner.cs:line 60 at ScannerSampleLab1.ScannerLab1.ActivateScanner(DeviceInfo selectedScanner) in E:\ScannerDemoTest\ScannerSampleLab1\ScannerSampleLab1\Form1.cs:line 200 at ScannerSampleLab1.ScannerLab1.btnActivateDevice_Click(Object sender, EventArgs e) in E:\ScannerDemoTest\ScannerSampleLab1\ScannerSampleLab1\Form1.cs:line 103 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at ScannerSampleLab1.Program.Main() in E:\ScannerDemoTest\ScannerSampleLab1\ScannerSampleLab1\Program.cs:line 18 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException:
|
| HTML Helper Extension and Data Binding | Hello,
I'm new to MVC and am trying to create some more user friendly controls for use on the Create views. I'm able to render a control using a combination of extensions and partial views, however I am unable to bind to those controls as I am with the out of the box controls like html.textboxfor such as:
Html.TextBoxFor( model => model.Capability_Menu_Group_Id)
Although the controls renders on the create form, the value is not set on create. I would like to set up this same construct used with TextBoxFor for my custom controls. Any pointers are much appreciated. Thanks in advance. |
| Return URL and Link Text suggestions | I got 3 "user role specific" Areas and 1 Public Area. Also, I have a "Shared" directory for controllers that's shared among the Areas. On the Shared views, I have a "Return to [whereucomefrom]" link, that will depend on ..well, where you come from. If it was only the previous url I needed, I could just figure the referer and make that the url. But I also need the link text. Say for instance "New Message" in Shared can be called from the "Customer" Area. If so, the return link would be "Return to my Orders", opposed to say "Return to Messages" for another area. So I want to pass on a return url and return url text from the link in an area view, so the shared view can display that link. Keep in mind I am not allowed to use Session and want to keep my URL's clean (sth like /Messages?returnurl=customer/orders&linktext=Return to Orders" will not do). I'm working on a URL Helper extension method as we speak, but I know in advance that is going to create an ugly url....
|
| Silverlight Version for VWD 2005 Express Edition? | Hi, I want to know which Silverlight Version will work with Microsoft Visual Web developer 2005 Express Edition? Also, Where can I get that version AND Toolkit? How to integrate that version with ASP.NET?
Thanks!
|
| LoginView switch to LoggedIn Template after Registering | I got a loginview located on the master page
Then i have a registering function
What I want to do is upon registration successful, I wish to directly switch to loginview template to assigned role which is member
How do i do that using codebehind?
Btw i'm using vb.net |
| Including non-referenced assemblies with MSDeploy package | I have recently installed the TFS 2010 RC at my office and am looking to use it for our CI on a new MVC 2 project I have going right now.
Unfortunately, while everything started out great, I ran into a problem because I am using an architectural design known as “onion architecture†– it has other names I’m sure. But the idea is that the .Web project has no references to anything except for the .Core project.
During development, I simply configured the Properties dialog of the .DependencyResolution project such that the Output Path is “..\Web\bin\†– this way visual studio copies all the other necessary assemblies for my application into Web during compilation. Since the DependencyResolution has a physical reference to all other projects and assemblies, all of the dlls automatically get copied to the output folder – so I use the Visual Studio Output Path to copy those assemblies in the Web/bin folder
The caveat to this however, occurs when I right click on my Web project and Build Deployment Package. Unfortunately the output of the Deployment Package only includes the DLLs that were physically referenced by .Web. This means the real business logic (meat) of my application is not included with the deployment package.
I am wondering if the following link may point me in the right direction. Perhaps I should create a MyApp.wpp.targets file in the root, but I am unsure what to put in the file to tell MSDeploy to include the files I require. http://blogs.msdn.com/webdevtools/archive/2010/02/19/how-to-package-com-component.aspx |
| Changing Data Source | Hello,
I recently installed this starter kit. The start kit by default fetches data from XML files. I have created a SQL table in my local SQL server and tried to change the <ConnectionString> but the application still accesses data from XML files not SQL. If I delete the following block of code, the application generates error: <SmallBusinessDataProviders peopleProviderName="xmlProvider" testimonialsProviderName="xmlProvider" catalogProviderName="xmlProvider" newsProviderName="xmlProvider">
<!-- Register providers for People - Similarly for other pages-->
<PeopleProviders>
<add name="sqlProvider" type="SqlPeopleProvider" connectionStringName="SQLConnectionString"/>
<add name="xmlProvider" type="XmlPeopleProvider" schemaFile="People.xsd" dataFile="People.xml"/>
</PeopleProviders>
<TestimonialsProviders>
<add name="sqlProvider" type="SqlTestimonialProvider" connectionStringName="SQLConnectionString"/>
<add name="xmlProvider" type="XmlTestimonialProvider" schemaFile="Testimonials.xsd" dataFile="Testimonials.xml"/>
</TestimonialsProviders>
<CatalogProviders>
<add name="sqlProvider" type="SqlCatalogProvider" connectionStringName="SQLConnectionString"/>
<add name="xmlProvider" type="XmlCatalogProvider" schemaFile="Items.xsd" dataFile="Items.xml"/>
</CatalogProviders>
<NewsProviders>
<add name="sqlProvider" type="SqlNewsProvider" connectionStringName="SQLConnectionString"/>
<add name="xmlProvider" type="XmlNewsProvider" schemaFile="News.xsd" dataFile="News.xml"/>
</NewsProviders>
</SmallBusinessDataProviders>
Could you please provide me with some instructions on how to get the data from SQL instead of XML?
Thank you,
|
| Web service performing heavy coding & how safe would this be? | Hi. I need to create a web service that need to perform some heavy code (gone be a void). I need to do some kind of authentication to on user using it. Now I dont need help doing this I just need guiding and opinions on what's good and what's not in the way I think of doing this. Background story: My company we gone let our customers have the option of having a button on their interface, that is going to perform a task on our site. The thought is the button make the call to the web service and it perform the task that it is suppose to. The customer gone have a username and password they gone pass to the web service method in order to get authenticated. I'm thinking like this that I just gone create a web server in my app. Have a method in it lets say PerformTask(string userName, string Password). In this method it gone be some heavy coding, is that ok to have that (maybe studpid question but I being my first web service)? Second of all I wonder how safe to have this web service, I mean like it is a web service and don't that make it open for users to watch it like the code and so on, if you got the addy to it that is?
This is my first time doing a web service so I really don't know any better. I just need some advice if I am doing this the right way, I'm a on the right path with it? How whould you done it? I appreciate your time guys
|
| Ajaxcontroltoolkit toolbox Issue | Hi I am using visual studio 2008. I have downloaded 3.5 framework ajaxcontroltoolkit. In the toolbox I have created a new tab and referenced the dll, as a result all the ajaxcontrolkit controls are showing up in the toolbox and is working fine. But problem comes when I close visual studio.Once I close visual studio and next time when I open it there is no tab named ajaxcontroltoolkit. So I need to reference the dll again to see teh controls.What is the problem here? |
| ASP.net VS08 Provider problem | Hi
I'm having a problem with my website. I wrote the site using ASP.NET 3.5 + VB in VS08. I used asp.net members and role providers for user logins and security I did this through the config page in VS08 and it all ran fine when I debugged and built to test the site but when I went to upload the site I couldn't find the membership database. I checked a few other forums and it suggested the Visual Studio should have build it automatically and put it in the App Data file but its not there. I don’t understand! The site can register users and retrieve passwords on my local machine which means they are stored somewhere but I cant find where.
What am I doing wrong?
Any help is greatly appreciated!
Mat |
| Printing Only a Dynamically Created Image |
I have a tricky one here, and I'm relatively new to ASP. I have a page that has an image that is created dynamically by an HTTPHandler. On this page there are three buttons. One of which is so print. I'd like to be able to just print the image, without the buttons. I've tried using javascript and css printing, but I'm afraid nothing is working. It is accepting the print function, and I am able to print out page, but the picture isn't being printed. I'm wondering why this is. When I press the print button, the page actually flashes and the picture goes away for a second, but then after I go through the browser's print dialog, it comes right back. Is this is a postback issue? Please see code below.
Any help on this would be great, I've tried these two posts and expected some success, but alas - no luck. http://forums.asp.net/t/981539.aspx http://forums.asp.net/p/1234564/2256428.aspx
ASP Page:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="preview.aspx.vb" Inherits="vinform_preview" %>
<%@ Reference Page="winepicker.aspx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.style1
{
width: 350px;
}
</style>
<style type="text/css" media="print">
.NoDisplay
{
}
.NoPrint
{
display:none;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div id="posimg">
<!--startprint-->
<asp:Image ID="Image1" runat="server" />
<!--endprint-->
<%-- <img alt="Image" id="imgPreview" title="Preview" src="../shelftalker.ashx" />--%>
</div>
<table class="NoPrint">
<tr>
<td>
<asp:Button ID="cmdPreviewAdd" runat="server" Text="Add to Cart" />
</td>
<td>
<asp:Button ID="cmdPreviewPrint" runat="server" Text="Print" Width="100px" />
</td>
<td>
<asp:Button ID="cmdPreviewClose" runat="server" Text="Close" Width="100px" />
</td>
</tr>
</table>
</form>
</body>
</html>
code behind: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim iWineID As Integer = Request.QueryString(0)
Dim iReviewID As Integer = Request.QueryString(1)
Dim sType As String = Request.QueryString(2)
Select Case sType
Case "Shelf Talker"
Image1.ImageUrl = "../shelftalker.ashx?WineID=" & iWineID.ToString & "&ReviewID=" & iReviewID.ToString
Case "Case Card"
Case "Poster"
End Select
Me.cmdPreviewClose.Attributes.Add("onclick", "window.close();")
end Sub
Protected Sub cmdPreviewPrint_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdPreviewPrint.Click
Dim User As MembershipUser = Membership.GetUser(HttpContext.Current.User.Identity.Name)
Dim dTime As Date = Now()
Dim iWineID As Integer = Request.QueryString(0)
Dim sUsername As String = User.UserName.ToString
Using daLog As New vinfoTableAdapters.generate_logTableAdapter
daLog.Insert(sUsername, iWineID, dTime)
End Using
Dim sJS As String = "<script language=Javascript>window.print();</script>"
' Page.ClientScript.RegisterStartupScript(Me.GetType(), "print", "printPartOfPage('posimg');", True)
Response.Write("<script language='javascript'> { window.print();}</script>")
' Page.ClientScript.RegisterStartupScript(Me.GetType(), "Print", sJS, True)
End Sub
|
| Why is HttpContext.Current NULL when using an ASP.NET ReportViewer and an ObjectDataSource? |
Hi there,
I have an ASP.NET Web Forms app using Entity Framework in the data
layer. I've recently changed the app over to use one Object Context per
request as per this post. It works great for the entire application except for any page which uses a ReportViewer to display something.
I've noticed that it fails when trying to get an instance of the ObjectContext from the HttpContext.Current.Items collection because HttpContext.Current is null. Microsoft.ReportViewer.WebForms.dll and Microsoft.ReportViewer.Common.dll can also be seen in the call stack each time it fails. The reports each use one or more ObjectDataSources to retreive data.
Based on this I'm assuming that the ReportViewer is somehow to
blame, but i have no idea why. I would need some way to dispose the
ObjectContext after it had been used by the report at the very least.
Cheers.
|
| binding navigator help?? | hi all im using binding navigator to traverse between records but when i compile the buttons in navigator are greyed out im unable to use them,i dnt know what happened??and how to move to the next record in binding navigator??any help?? |
| User control back ground image | Hi all
I am generating an image using Graphics and i want to be able to view it as the back-ground image of a user control. since the image is generated progamatically i can not hard-code the image at design time yet i need to assign it to user control. How can i implement this ?
thank you in advance. |
| Panel Visibility (INSIDE USER CONTROL > FORMVIEW) .VB | Hello Members!
Struggling with an issue I can't seem to get working and have been looking at it for hours now!!
What I have is a FormView inside a usercontrol and have separated form fields by use of panels. I would like to, based on the value returned from a method within my usercontrol, set the visibility of the appropriate panel to =true. I can't however seem to get this to work. I continue to get a "NullException" error at the line where I try setting visibility of my panels. Does anyone know what I'm doing wrong here. I tried setting visibility in the Page_Load, PreRender. The interesting thing is that when I comment out one of the Panels [OTHER_SALARY_PANEL] and all the relevant code behind, it works and my formview binds the data.
Only posting code that is relevant here, but if you need to see additional code to get a better sense, please do ask.
Any guidance will be greatly appreciated. I hope my post makes sense ===========
.ASCX.VB
===========
Protected Sub FillSalaryChangeDetails(ByVal reqActionID As Integer)
Dim oPnl As Panel = DirectCast(fv_SalaryChange.FindControl("OTHER_PANEL"), Panel)
Dim cPnl As Panel = DirectCast(fv_SalaryChange.FindControl("CIB_PANEL"), Panel)
If reqActionID <> Nothing Then
processingMsgContainer.Visible = False
SalaryChangeContainer.Visible = True
oPnl.Visible = False
cPnl.Visible = False
CreateDT(reqActionID)
End If
End Sub
Protected Sub CreateDT(ByVal reqActionID As Integer)
Dim ht As Hashtable = GetSalaryChangeHT(reqActionID)
Dim dt As New DataTable()
If ht("DIV_CHANGE_TO").ToString = "CIE" Then
dt.Columns.Add("REQ_ACTION_ID")
dt.Columns.Add("DIV_CHANGE_TO")
dt.Columns.Add("COS_TYPE")
dt.Columns.Add("DAILY_RATE")
dt.Columns.Add("BASE_ANNUAL_RATE")
dt.Columns.Add("NUM_DAYS")
dt.Columns.Add("PERCENT_CHANGE")
dt.Columns.Add("PAY_FREQUENCY")
dt.Columns.Add("BASE_EFFECTIVE_DATE")
Dim dr1 As DataRow = dt.NewRow()
dr1("REQ_ACTION_ID") = reqActionID
dr1("DIV_CHANGE_TO") = ht("DIV_CHANGE_TO").ToString
dr1("COS_TYPE") = ht("COS_TYPE").ToString
dr1("DAILY_RATE") = ht("DAILY_RATE").ToString
dr1("BASE_ANNUAL_RATE") = ht("BASE_ANNUAL_RATE").ToString
dr1("NUM_DAYS") = ht("NUM_DAYS").ToString
dr1("PERCENT_CHANGE") = ht("PERCENT_CHANGE").ToString
dr1("PAY_FREQUENCY") = ht("PAY_FREQUENCY").ToString
dr1("BASE_EFFECTIVE_DATE") = ht("BASE_EFFECTIVE_DATE").ToString
dt.Rows.Add(dr1)
Else
dt.Columns.Add("REQ_ACTION_ID")
dt.Columns.Add("DIV_CHANGE_TO")
dt.Columns.Add("COS_TYPE")
dt.Columns.Add("BASE_PAY")
dt.Columns.Add("BASE_ANNUAL_RATE")
dt.Columns.Add("PERCENT_CHANGE")
dt.Columns.Add("PAY_FREQUENCY")
dt.Columns.Add("BASE_EFFECTIVE_DATE")
Dim dr2 As DataRow = dt.NewRow()
dr2("REQ_ACTION_ID") = reqActionID
dr2("DIV_CHANGE_TO") = ht("DIV_CHANGE_TO").ToString
dr2("COS_TYPE") = ht("COS_TYPE").ToString
dr2("BASE_PAY") = ht("BASE_PAY").ToString
dr2("BASE_ANNUAL_RATE") = ht("BASE_ANNUAL_RATE").ToString
dr2("PERCENT_CHANGE") = ht("PERCENT_CHANGE").ToString
dr2("PAY_FREQUENCY") = ht("PAY_FREQUENCY").ToString
dr2("BASE_EFFECTIVE_DATE") = ht("BASE_EFFECTIVE_DATE").ToString
dt.Rows.Add(dr2)
End If
Me.fv_SalaryChange.DataSource = dt
Me.fv_SalaryChange.DataBind()
Dim oPnl As Panel = DirectCast(fv_SalaryChange.FindControl("OTHER_PANEL"), Panel)
Dim cPnl As Panel = DirectCast(fv_SalaryChange.FindControl("CIE_PANEL"), Panel)
If ht("DIV_CHANGE_TO").ToString = "CIE" Then
oPnl.Visible = False
cPnl.Visible = True
Else
oPnl.Visible = True
cPnl.Visible = False
End If
End Sub
===========
.ASCX
===========
<asp:FormView ID="fv_SalaryChange" runat="server" DataKeyNames="REQ_ACTION_ID" DefaultMode="Insert">
.................
<ItemTemplate>
<asp:Panel ID="OTHER_SALARY_PANEL" runat="server">
<div class="formContainer">
<div class="col2">
<label for="New Base Pay">New Base Pay</label>
<asp:TextBox ID="tb_newOtherBaseRate" runat="server" Text='<%# Bind("OTHER_BASE_PAY") %>'></asp:TextBox>
</div>
<div class="col2">
<label for="New Annual Pay">New Annual Pay</label>
<asp:TextBox ID="tb_newOtherAnnRate" runat="server" Text='<%# Bind("OTHER_BASE_ANNUAL_RATE") %>'></asp:TextBox>
</div>
<div class="col5">
<label for="Pay Frequency">Pay Frequency</label>
<asp:RadioButtonList ID="rbl_newOtherPayFrequency" runat="server" RepeatDirection="Horizontal" SelectedValue='<%# Bind("OTHER_PAY_FREQUENCY") %>'>
<asp:ListItem Value="Half Month" Text="Half Month"></asp:ListItem>
<asp:ListItem Value="Hour" Text="Hour"></asp:ListItem>
</asp:RadioButtonList>
</div>
</div>
<div class="formContainer">
<div class="col2">
<label for="Percent Change">Percent(%) of Change</label>
<asp:TextBox ID="tb_OtherPercentChg" runat="server" Columns="3" MaxLength="3" Text='<%# Bind("OTHER_PERCENT_CHANGE") %>'></asp:TextBox>
</div>
</div>
</asp:Panel>
<asp:Panel ID="CIE_SALARY_PANEL" runat="server">
<div class="formContainer">
<div class="col2">
<label for="New Daily Rate">New Daily Rate</label>
<asp:TextBox ID="tb_newCIEDailyRate" runat="server" Text='<%# Bind("DAILY_RATE") %>'></asp:TextBox>
</div>
<div class="col2">
<label for="New Annual Rate">New Annual Rate</label>
<asp:TextBox ID="tb_newCIEAnnRate" runat="server" Text='<%# Bind("BASE_ANNUAL_RATE") %>'></asp:TextBox>
</div>
</div>
<div class="formContainer">
<div class="col2">
<label for="New # of Days">New # of Days</label>
<asp:RadioButtonList ID="rbl_newNumDays" runat="server" RepeatDirection="Horizontal" SelectedValue='<%# Bind("NUM_DAYS") %>'>
<asp:ListItem Value="185" Text="185"></asp:ListItem>
<asp:ListItem Value="191" Text="191"></asp:ListItem>
<asp:ListItem Value="219" Text="219"></asp:ListItem>
<asp:ListItem Value="229" Text="229"></asp:ListItem>
<asp:ListItem Value="244" Text="244"></asp:ListItem>
</asp:RadioButtonList>
</div>
</div>
<div class="formContainer">
<div class="col2">
<label for="Pay Frequency">Pay Frequency</label>
<asp:RadioButtonList ID="rbl_newCIEPayFrequency" runat="server" RepeatDirection="Horizontal" SelectedValue='<%# Bind("PAY_FREQUENCY") %>'>
<asp:ListItem Value="Half Month" Text="Half Month"></asp:ListItem>
<asp:ListItem Value="Hour" Text="Hour"></asp:ListItem>
</asp:RadioButtonList>
</div>
</div>
<div class="formContainer">
<div class="col2">
<label for="Percent Change">Percent(%) of Change</label>
<asp:TextBox ID="tb_CIEPercentChg" runat="server" Text='<%# Bind("PERCENT_CHANGE") %>'></asp:TextBox>
</div>
</div>
</asp:Panel>
</ItemTemplate>
</asp:FormView>
|
| DynamicPopulateExtender question - Web Service call failed: 500 | I had posted this question in a different forum thread, but got no replies, so I will ask here. I have DynamicPopulateExtender that uses a web method in a .asmx web service page to display a string in a label:
<cc1:DynamicPopulateExtender ID="DynamicPopulateExtenderCountryNameInsertItemDisplay" ClearContentsDuringUpdate="true" runat="server" ServiceMethod="GetTranslatedCountryName" ServicePath="~/CountryRegionsWebService.asmx" TargetControlID="LabelCountryNameInsertItemDisplay" />
the web method from my .asmx page
[WebMethod]
public string GetTranslatedCountryName(int countryID, int translationLanguageID)
{
string translatedCountryName = "";
ddlCountryTableAdapter countryTranslationShortNameTableAdapter = new ddlCountryTableAdapter();
translatedCountryName = countryTranslationShortNameTableAdapter.GetTranslatedCountryShortNameIntl(countryID, translationLanguageID).ToString();
return translatedCountryName;
}
The Dynamic Populate Extender is triggered when the user changes a drop down list on the page:
<script type="text/javascript">
function changeDDL2Value(ddl1_id, ddl2_id, dpe1_id......) {
var ddl1 = document.getElementById(ddl1_id);
var ddl1_value = ddl1.options[ddl1.selectedIndex].value;
var ddl2 = document.getElementById(ddl2_id);
var ddl2_value = ddl2.options[ddl2.selectedIndex].value;
var dpe1 = $find(dpe1_id);
..............
dpe1.populate(10663, 1331); //replace 10663 & 1331 with variable names when passing figured out.
}
</script>
My question is: how do I pass parameters/values to the .asmx web method from the JavaScript call dpe1.populate();?
I had initially thought that implementing: dpe1.populate(value1, value2); , but I get a "Web Service call failed: 500" message in the label.
Can any one suggest a solution?
|
| DragPanels snap back upon release after having to reset Visual Studio 2010 Beta 2 | My dragpanels were working fine, then Visual Studio 2010 Beta 2 locked up, so I had to end the process. Trying to load it the next time, it wouldn't load, so I did a devenv.exe /resetuserdata. Now everthing works as before except that when I drag a panel using the dragpanel control, it doesn't stay put. It snaps back.
I assume it is a a configuration issue since all of my forms have the same issue.
Thanks |