|
Hi,
When I open my web prject in visual studio 2005 and go server explorer I can with no errors expand the database with all its items like tables and others, but when I try to do that with visual studio 2008 I get this error :
could not load file or assembly
Micorsoft.sqlserver.management.sdk.sfc, Version= 10..... ext
------------------------------------------------------------
Please if someone could help, I be thankfull.
hawari
hawari
|
|
|
|
|
I never use that stuff inside the IDE, I use the SQL Server ones. What does this have to do with ASP.NET ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
The reason may be the different. I never faced this type of problem with VS 2008.
cheers,
Abhijit
|
|
|
|
|
Hi all,
In my web page, i am retrieving data for select element using Ajax. My webservice return me a collection of values as Ilist<dtoclassname>.
How to bind that collection to the select control, that DTO class has ID(bind to the value) and Name(bind to text).
Please suggest me or give me some like to learn how to do this.
Thank you
Know is Drop, Unknown is Ocean
|
|
|
|
|
Any IEnumerable is a valid data source. Are you using AJAX, or just using the MS AJAX library ? What issue do you have that's specific to AJAX ? If you're writing AJAX, you need to send your data as XML
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
Thank you very much for your suggestion. I am using AJAX, please give me a link to learn this binding.
Know is Drop, Unknown is Ocean
|
|
|
|
|
Hi people,
I am having a weid problem here. I have a web page A that calls another web page B to do some computations. Page B then calls a web service method to perform some computations. The web service method itself calls a method in the Business Logic Layer DLL. When I do a step into, I manage to jump correctly from the web page A to B to the web service to the business logic DLL. The method that does the computations is called and then instead of having the step jump to the next line, it jumps directly to a line in a method located in web page A!!!
I have tried the debug process several times and it's still the same result...I land at the same line of code in page A each time.
This problem does not happen when using the site with IE7, it only happens with Firefox.
I have rebuilt the different projects (web, service, DLLs) server time and even deleted the temporary files in windows\microsoft.net but still I get the same thing.
I don't know what to do now as I have no idea what is going on!
One last note. The computation method that I call in the business logic is located in a DLL that includes some unmanaged C++ code. I am wondering if this could be a reason for the problem, even though a while back, everything worked perfectly
Any help is greatly appreciated.
Thanks.
Talal
|
|
|
|
|
Hello,
I have an asp.net35 vb page which gets a list of users from the database, displays them in a gridview and also has a couple of input boxes and a submit button so that I can use it to send a group email.
Each process works separately. I can see my gridview list and the email form works if I dont call in the gridview rows.
I have hit a problem that I hope you can help me with. The error says:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection
This is my line of code:
email = GridView1.DataKeys(gvRow.RowIndex).Value
Can anyone help me to solve this please.
|
|
|
|
|
I think there could be a clue in the error message. It suggests that the rowindex is outside the key collection. Maybe looping zero to gvrow.rows.count rather than count -1 (as you start at zero)?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hello Bob,
I found that I could get at the index using this code on page load. It outputs numbers starting at 1. Your snippet cant be used in the context of datakeys so Im still stuck.
For Each gvRow In GridView1.Rows
'display the row index number for testing.
Labeltestrows.Text &= gvRow.Cells(0).Text "
Next
|
|
|
|
|
Hi,
I'm developing a web page - asp.net ( .net 3.5 - visual studio 2008 ) :
This is my idea :
I need to add Controls to a web form page programmatically (labels, textboxes, ect..)
Controls must be grouped into "Sections".
I Inserted a Multiview onto my page.
When I load the page, I retrieve information about controls in a database.
Then I create a view and add it to multiview control and so add controls to each view.
Now I want display my "sections" like tab strips :
My code (more or less) :
protected void Page_PreInit(Object sender, EventArgs e)
{
if (!IsPostBack)
{
ChargeControls();
this.MultiViewSections.ActiveViewIndex = 0;
}
}
private void ChargeControls()
{
read database table
for each record
(example)
...
viewSection = new View();
viewSection.ID = "Section" ;
int indexSection = 0 ;
...
label = new Label();
label.ID = "lblSection" ;
label.Text = "text Section";
this.MultiViewSections.Views[indexSection].Controls.Add(label);
...
}
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs"
Inherits="WebApplication.WebForm1" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<asp:MultiView ID="MultiViewSections" runat="server">
</asp:MultiView>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="Default.aspx">Home
page</asp:HyperLink>
</form>
</body>
</html>
I can see first view
( this.MultiViewSections.ActiveViewIndex = 0; ).
But I can't navigate to others views , I get this error :
ActiveViewIndex is being set to '0'. It must be smaller than the current number of View
controls '0'.
For dynamically added views, make sure they are added before or in Page_PreInit event.
Parameter name: value
I inserted two buttons onto the page and I try to use these instructions :
NextView/PrevView , SwitchViewByID, MultiView1.ActiveViewIndex += 1 / -= 1 .
No result!
what's wrong ?
Thanks in advance .
p.s.
A MultiView control is a good choice in this situation ?
|
|
|
|
|
You basic issues are that your controls will not have viewstate unless they are added prior to Page Load, and that you need to store things like your active index in viewstate for them to survive the postback and be restored.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
in dropdownlist client side ie in onchange iam writting function with a confirmation .if the confirmation is true go to server side code for this iam writting return true else iam giving return false .but my problem is that for return false also the page is getting postback and getting server side is executed.how to stop the execution of server side in the return false .
|
|
|
|
|
Have you set AutoPostback = False for the control?
Remember too that users may disable javascript in theor browser, so you shouldn't rely on that alone...
|
|
|
|
|
Hi Any one.
I use a httpmodule for urlRewriting in my web site.
At local i use a "SimpleRewriter" class in App_code and Set
Webconfig as here:
add name="SimpleRewriter" type="SimpleRewriter, App_Code"
But When i Upload my site on server it doesn't work and give Some Error as "Page Requested not found".
I think on server asp.net doesn't have reach to my module and cant access it.
Any help?
Thanks.
sepel
modified on Friday, November 28, 2008 9:02 AM
|
|
|
|
|
Hi sepel,
I am facing the same problem.
Did you able to resolve this problem.
If yes, then please send me the details of the same.
Thanks in advance.
Regards
Vinit
ok
|
|
|
|
|
Hi.
I resolve my problem.
Set your http module in webserver section for iis7.
sepel
|
|
|
|
|
Hi
Thanks for your reply.
I made the following changes in the web.config file
configuration
system.webserver
modules
add name="CustomModule" type="Samples.CustomModule"
modules
system.webserver
configuration
But it still not working. Can you please provide your settings for this?
Regards
Vinit
ok
modified on Monday, December 8, 2008 9:23 AM
|
|
|
|
|
Put your urlRewriter class in App_code folder.
And put these line in your module section of webserver section:
<remove name="Session">
<add name="Session" type="System.Web.SessionState.SessionStateModule">
If it still don't work send me error and your code.
sepel
|
|
|
|
|
Hi
Thanks for your reply.
I put the urlRewriter class in App_code folder as per your suggestion.
I made following changes in the web.config file.
system.webServer
modules
add name="HttpErrorHandler" type="AssemblyName.HttpErrorHandler" precondition="managedHandler"
modules
system.webServer
The error was occured as
HTTP 404 - File not found
Internet Information Services
Thanks.
ok
|
|
|
|
|
|
Yes, I set it in the web.config.
My local IIS version is 5.1.
thanks
ok
|
|
|
|
|
Hi,
Can anyone recommend me a book to read about the use of IIS with asp.net, and how they interact with each other. Thanks
hawari
hawari
|
|
|
|
|
|
Hi,
Which one is done before, publishing the database or copy website, is copy website alone enough to complete the deployment?
regards,
hawari
|
|
|
|