|
I really don't know what else to say, apart from, buy a book. It seems to me that you know nothing about ASP.NET at all, and I don't know what I could hope to say, that you could understand. What I said was self evident and the full extent of the advice you need. you have no need to do this on the client side, because you're already requesting a page from the server. For you to even ask that, again makes me wonder if you know anything about how ASP.NET works, at all.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I have gridview....in which i have 2 gridview, in first gridview i have link button,
on click of link button , i want to bind another grid on same page n , visible tht another grid.
for binding aother grid , ihave write code in gridview_selectedindex changedevent but tht event will not get call......
when i click on tht link button...it will me javascript _dopostback error
(__doPostBack('gdvSelectedCompanies$ctl02$lnkbtnCoName',''))
can anyone help me in tht....wht i have to do for tht error
|
|
|
|
|
What is the js error ? It's odd for there to be a js error in auto generated code.
I don't understand what you're doing, the two grid are on the same page, you want the link button for one to change the other ? That should be trivial.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I HAVE 2 GRIDS ON PAGE...
in first grid there is one link button ...on click of tht , i want to bind another grid n make it visible..
error is............(__doPostBack('gdvSelectedCompanies$ctl02$lnkbtnCoName',''))
|
|
|
|
|
how can flash player control to asp page
please in details
|
|
|
|
|
It seems you do need help. Your subject line is useless, and your question is easily answered with google. ASP.NET has nothing to do with it, you just put the HTML in your page, i.e. in your ASPX.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
thanks
can i use it in vb application
|
|
|
|
|
If you were to do that, why would you ask in the ASP.NET forum ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i am sorry
but i am new in this website
and i dont know i must that
|
|
|
|
|
Why did you think we have an ASP.NET forum ? You found the VB forum, right ?
In answer to your question, if you put a web browser control in your form, and feed it the HTML, it can show a flash movie.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
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
|
|
|
|