|
|
Hi,
You can access the value of control of another page if the page is Previous Page by creating the object of the Previous Page and then findcontrol whose value you want to access.
Naresh Patel
|
|
|
|
|
I don't think creating the object of another class and then assiging values to its control is proper
From my point of view put that value in QueryString/ViewState/Session
That's why we have these techniques with us ...
What you think ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Ravindra Mahaseth wrote: textbox1 in page2.aspx from the page2.aspx.cs.
page2.aspx.cs to Page2.aspx ? What do you mean by this ? page2.aspx.cs is just separating code from design page. When execution it won't be considered as two pages.
My Website | Ask smart questions
|
|
|
|
|
I'm afraid you need to read a book on ASP.NET. Your other page doesn't actually exist unless you've done a cross page postback. ASP.NET just doesn't work that way. Each page is created when you navigate to it, and when you navigate to another, it's lost.
Ravindra Mahaseth wrote: assigning the text property of the textbox1 in page2.aspx from the page2.aspx.cs.
textbox1.Text = "blah"; will do that, but I assume you meant to say page1.aspx.cs ?
Ravindra Mahaseth wrote: but not been able to instantiate the class.
Even if you did, it would have no bearing on the instance of the class which contains the data you're looking 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 )
|
|
|
|
|
Hi all,
I developed reports in Crystal Reports in landscape mode. When i print
the same from crystal report it prints in portrait orientation. I would
like to know whether i will be able to display a page orientation dialog
with print dialog from crystal report. If Yes please give me some hints.
Thanking you
Sebastian
|
|
|
|
|
I am really frustrated that, no one is replying for this post..............
|
|
|
|
|
this [^] is from me
I Love SQL
|
|
|
|
|
Hello sir ..
i am getting error when i check my application in browsercompatablity actual process this project is reg Hospital management system. in one .aspx i need to add patient name and details and that same page i search exit patient option is there if i click search button that another page will come in that exit patient details is there so if i selected that one patient . that patient details comes previous .aspx page here blow that page one gridview is there that patient details comes under that page
so in that grid header contains patient id, name , ph no .. below that header name and id comes. if i scroll that datagrid that patient details overflow to that grid header this is actual function , this is working in IE but in Mozilla that datagrid header also overflow .
.CSS file
.gridFixedHeader
{
background-color:white;
font-size: 9pt;
color: #FFFFFF;
position: relative;
font-family: Airal,sans-serif;
border:#0066CC;
max-width :100px;
top:expression(this.offsetParent.scrollTop-0);// this line shows top doesn't have this property)
z-index: 1;
}
|
|
|
|
|
Dynamic CSS expressions are only supported by IE.
|
|
|
|
|
OK. is there any other soin for this?
|
|
|
|
|
Can anyone tell me how to take user input from an application and insert that into SQL database table. I am very new to asp.net. And had tried the below code:
insert_cmd = string.Format("Insert into CreateTask(@Title,@AssignedTo,@AssignedDate,@EstimatedEfforts,@Priority)");
// Create new parameters for the SqlCommand object and
// initialize them to the input-form field values.
mycmd.Parameters.Add(new SqlParameter("@Title", SqlDbType.NText, 11));
mycmd.Parameters["@Title"].Value = inpTitle;
The new parameters are created for the other fileds same as above.
When I run this program the error displayed as:
"The name 'inpTitle' does not exist in the current context"
Sailaja
|
|
|
|
|
To Insert into SQL database try following steps
1 - Include System.Data.SqlClient
2 - Intialize SQLConnection class
3 - Set connection string
4 - Create SQLCommand class. You type queries in this class object
5 - Call SQLCommand ExecuteNonQuery() method.
Go through some books that explains ADO.NET in detail before you start.
|
|
|
|
|
hi navaneeth
thx for ur reply. I had already written the code for sql connection and all.
I am able to connect to sql, after connecting to sql only I am trying to insert the data but the that error msg is being displayed.
plz let me know whether i had written the code correctly mentioned earlier??
and also plz send me some refernces if any for learning this....
Sailaja
|
|
|
|
|
potlakayala wrote: plz send me some refernces if any for learning this..
Check This[^]
|
|
|
|
|
Your SQL insert statement does not appear to be correct.
INSERT INTO table(fieldname1,fieldname2,etc) VALUES(value1,value2,etc)
WHERE fieldnameX = valueX;
|
|
|
|
|
I don't want to give any fixed value in the insert command. I want the command to take the user input values entered from the UI and store those values in the database.
Sailaja
|
|
|
|
|
Hi,
In my asp.net application, i am opening a child window.I want to disable the close button on the title bar. Does anyone knw how to go about in doing it.
Thanks,
Riz
Riz
|
|
|
|
|
You can't.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
private const int SC_CLOSE = 0xF060;
private const int MF_GRAYED = 0x1;
[DllImport("user32.dll")]
private static extern IntPtr GetSystemMenu(IntPtr hWnd, bool bRevert);
[DllImport("user32.dll")]
private static extern int EnableMenuItem(IntPtr hMenu, int wIDEnableItem, int wEnable);
private void Form1_Load(object sender, System.EventArgs e)
{
EnableMenuItem(GetSystemMenu(this.Handle, false), SC_CLOSE, MF_GRAYED);
}
Naresh Patel
|
|
|
|
|
Read question clearly please. It is for ASP.NET not desktop application
|
|
|
|
|
code for interactivity of .net application with telephone responses
|
|
|
|
|
What does that mean? Are you asking a question or making a statement? Either which way, you need a verb in there somewhere.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
Hi All,
I need to Upload a Image. My web application is an Intranet site and it also sends mails to anyone (those not in network).
My problem is that when I send a mail with Images, Images are not shown to any different user other than those in network.
Please help me how do I do this.
Thanks in advance.
|
|
|
|
|
ASP.NET 2.0 wrote: Images are not shown to any different user other than those in network.
I assume you are referring images in the intranet server right ? User will be reading mail from his mail box, that is on remote server. So it won't get path to your local intranet server. If your intranet server having a static IP then try giving path with specifying that
|
|
|
|