|
plz all i want your help urgently
i have a form that include combo box which contain all axps pages in my web project
my case is>>>
when i choose each page from the combo box i can call each control in the selected page to load them in the main form
so i have to make a function which take my page.aspx name to return all controls in this page without open this page i mean without open the selected page previously:-> .
my problem is i cant accessing any page in the main page
really thx for all and special thx for each one can help me
Kareem Elhosseny
|
|
|
|
|
Didn't I answer this already, in two different forums ? You can't. The other pages don't exist, when your page is running.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello,
I am working on portal and right hand side we want to dispaly few advertises, so which is the best approach for displaying advertises, i.e. use of adrotator or customized random function.
I think you can help me.
Thanks & Regards,
Kumar
|
|
|
|
|
The AdRotator is obviously easiest, that's what it is for.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
SK111 wrote: use of adrotator
Recommended. Why do you want to reinvent the wheel by writing a similar function and unnecessarily wasting your billable hours for the client? Also, a new tool should need that much amount of aggresive testing also to ensure its robustness.
|
|
|
|
|
i am getting the following error while running the application:
"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
The code for connectivity is as given below.
Imports System.Data
Imports System.Data.SqlClient
Partial Class _Default
Inherits System.Web.UI.Page
Dim con As SqlConnection
Dim da As SqlDataAdapter
Dim ds As DataSet
Dim cmd As SqlCommand
Protected Sub btnDiscon_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDiscon.Click
con = New SqlConnection("server=PSPL664/SA1;database=northwind;integrated security=true;")
da = New SqlDataAdapter("select * from products", con)
ds = New DataSet()
da.Fill(ds)
grid.DataSource = ds
grid.DataBind()
End Sub
End Class
Plz help me on this matter.
|
|
|
|
|
Your connection string is not working. This could be because it will run under the ASPNET user, not the user you're logged in as.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You can generate connection string by creating new file with extension .udl
open that file or open its property and select your database and click on ok.
you can see your database's connection string by opening that .udl file in notepad programe.
|
|
|
|
|
hi all
I want to create a web form.In this form I have a data Grid(GridView1). This grid view contains some rows that fetch from a table of a database.I want to insert a button at the last column of each row, This button must update a row which selected which but I don't know how to insert this button and how to write click event for each button
|
|
|
|
|
Add a new column to the gridview. The type of column to add is Command Field. So if you are in the design view of the aspx file, click on the gridview. Then go to the properties window and file the columns property. click on the button which will bring up the fields dialog. Select the command Field and click the add button.
As far as dealing with the actual code, there are two ways to do it. If you are using an objectdatasource or a sqldatasource, then in that control you point to the correct method to do the update insert delete. If you aren't using one of those controls you need to implement the gridview command method. Then check the e.Command to see if it is "Insert", "update" etc.
Hope that helps.
Ben
|
|
|
|
|
Hi ,
I'm using a web service to copy file to a network folder restricted to a specififc username & pwd.
I tried
<identity impersonate="treu" username="domain\user" password="pwd">
It did not work.
Thanks in advance
Priya
|
|
|
|
|
What do you mean by
Dpriya wrote: It did not work. ?
What error did you encounter?
|
|
|
|
|
Dpriya wrote: It did not work.
You need to be a bit more descriptive of what isn't working.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Dear Group,
we recently installed the sourceforge forum system on our server (MS SQL 2005) and were excited how well it worked.
However, after the most recent MS update, and using the compiler Visual Webdeveloper Express, we are suddenly receiving the error message:
"An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"
Can you help us?
Many thanks,
Robert "Bobby"
|
|
|
|
|
|
Hello,
I'm trying to run the simple movie player demo from silverlight presented in MSDN Mag[^] july edition.
So, I downloaded the Silverlight SDK (which is a .js file) and installed the beta version of the plugin. However, I can't get the demo to work right, and I have no ideia as to why. Is it necessary to run the website with .NET Framework 3.0? Or am I doing something wrong?
|
|
|
|
|
HI guys
I want to create a dynamic drop down menu using asp which will have a default value.
I am very much new to asp so i am not able to find out how to do it.
Well i want when a user clicks on a link, the page will populate all the values in the drop down list which i have to get from a databse and makes a value(which i know) as default.
Can any one please help me out how should i proceed.
Thanks
Dash
|
|
|
|
|
there should be a bunch of examples online that will give you most if not all of the code you need. assuming that the value you want as the default is in the database, you just need to do dropDownList.SelectedValue = value; or you could use the SelectedIndex if you know exactly where the value will be in the data set and its location wont move. to bind the dropdownlist you just need to open an SqlConnection to the database set up a SqlCommand with your query and connection and use its ExecuteReader method to load a SqlDataReader which will then bind to a dropdown list like
sring sql = "";
SqlConnection myConnection = new SqlConnection(connectionString);
SqlCommad myCommand = null;
SqlDataReader myReader = null;
try{
myConnection.Open();
sql = "put your query here";
myCommand = new SqlCommand(sql, myConnection);
myReader = myCommand.ExectueReader();
dropDownList.DataSource = myReader;
dropDownList.DataTextField = "the field you want displayed";
dropDownList.DataValueField = "the value you want stored, like an id number"
dropDownList.DataBind();
//if you want to insert a value tat isnt in the database youjust need
dropDownList.Items.Insert(0,value);//i havnt used that ina while
//but is the locaiton in the array you want the item palces and value is the
//text to display
}catch(Exception e)
{
}
finally{
if(myCommand != null)myCommand.Dispose();
if(myReader !=null) myReader.Close();
myConnection.Close();
}
hope this helped
|
|
|
|
|
I'm trying to use a repeater to display news articles with a link to each article or pdf or whatnot, however i dont really want the user to know that they've left one site to open one of the pdfs and i didnt really want to copy everything around since the news stories can be shown on multiple sites. so i have a javascript function that opens a new window to a htm page that has a frameset, then i try to se the location of the frameset in the same javascript like:
function newWindow(url)
{
var win;
win = window.open("news.htm","NewsArticle",
"toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1");
win.frmNews.location = url;
}
this works great on my machine, but it wont work when i put it on our web server, it says that frmNews in null or not an object.
that is the code from the news.htm file minus the title, meta tags, etc... the window opens but i cant change the link. any help would be greatly appreciated.
|
|
|
|
|
make sure that you don't have the javascript running on the server side
runat="client"
|
|
|
|
|
That's because the frameset hasn't yet loaded in the window.
Send the url as a parameter in the querystring to the frameset page, make the page asn aspx page, and user server code in it to get the url from the querystring and put it into the frame code.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks, i got it working now, there was also a problem with the slashes in the url some were \\ instead of // and apparently js is rather perticular about it. i just used a loop to make the js wait until the frame was loaded then set its url, not necessarily good practice, but it works, and it completely hides the url i'm going to like it should.
|
|
|
|
|
SomeGuyThatIsMe wrote: there was also a problem with the slashes in the url some were \\ instead of // and apparently js is rather perticular about it.
It's rather the web server that is particular. If you use backslashes, it will not be treated as a separator between folders, but as a part of the filename.
So the url "http://www.site.com/folder\another\page.html" will try to get the file "folder\another\page.html" in the root folder of the web, not the "page.html" in some subfolder.
---
single minded; short sighted; long gone;
|
|
|
|
|
that makes sense, thanks for the clarification.
|
|
|
|
|
Hi,
I have created one web application by using html page. I have created run time images and they are creating at run time in IE6 but not in IE7.
function for creating image is
return "";
what is the solution for that ?
Thanks
|
|
|
|