|
Sorry to say but I dont know any other option for this.....
|
|
|
|
|
you can use global veriable in global.asax
i think this will help u
|
|
|
|
|
What do you mean by child page? is that a class derived from the original page?
If you're talking about 2 different ASPX pages, I think there is no way to retrieve values of a page from another page. I believe that as soon as you switch from one page to another, the previous page is discarded with everything in it, so I suppose there is no way to get back values from controls in it. You might be able to do so however if you're running a web user control and you want to retrieve the values of the parent page (containing the control). One thing for sure is that you can access programmatically any user control from the parent page and change the values of the controls in it, now whether you can go the other way around is something worth investigating.
Sorry, some theories, no solutions
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
whatever u told is ok. but it is possible by storing textbox's value in session or using 'shared veriable' in Global.asax
What do u think?
|
|
|
|
|
Hello all,
In my Winform i am using webBrowser control. in this i am displaying the asp.net page. it is working fine.
but I want to get the Page Title using webBrowser control. How to get this?
any sounds
regards
GV Ramana
|
|
|
|
|
Try this
Dim PageTitle = WebBrowser1.DocumentTitle
|
|
|
|
|
Hi,
A tester has installed the web application that I created in ASP.NET 2.0 onto his test machine. (This is done using the .msi)
When the tester encounters an eror on the website, then he gets the default page for the error. This I think should not happen as I have set the following in the web.config
<customerrors mode="RemoteOnly" defaultredirect="CustomError.aspx">
I think he is supposed to be directed to the error page i.e. CustomError.aspx
Any thoughts please?
Thanks
|
|
|
|
|
In web.config you can set like this
<customErrors mode="RemoteOnly"/>
-- modified at 7:04 Thursday 15th June, 2006
|
|
|
|
|
Hello there
I have written an image editor Application in ASP.net. I am doing some calculation at client side before posting using Java Script. I need to save my java script from any hacker as it Contains business logic. Is there any way to make javascript hidden...
Like I added the JavaScript File but when user saves the page from explorer then he can get the javascript file as well...
Support will be highly appreciated.
Regards
Rizwan Bashir
|
|
|
|
|
AFAIK, there's no way to prevent the user from downloading the script file, IMO what you might do is to make it hard to read/understand. Also, using javascript to contains business logic is a risk, and not a good practice. You should do it at the server side, and you can inscrease the responsiveness using AJAX to invoke the logic at the server side.
|
|
|
|
|
Hi to all,
Can anyone tell me how do I save the viewstate datatable where records of viewstate datatable are displayed on Datagrid on web form.
When I click on the save button all the data of datagrid or viewstate datatable should be saved in database.
Please help.
Thanks and Regards.
|
|
|
|
|
I'm curious as to why you need to persist the datatable in the ViewState. Do you want to keep the current state of the datagrid which supports paging? The simple way is to persist at the server side with the Session object, another option is to save it in DB, when the user click Save, you simply "commit" data in DB.
|
|
|
|
|
Hi,
Can someone please tell me if there i any free forum available written in C#. I need to implement it in my summer project.
Please provide me with the links.
Thanks.
Deepak Surana
|
|
|
|
|
|
Hello all can any body help me in solving the problem? The thing is flash is calling a javascript function in a webpage of mine after every two secand & i am inserting those values in database through Ajax. every thing is working fine but the problem is when flash call the function of javascript then it make the click sound which is default sound of browser as all of us get get it when we navigate through browser. I want to stop that coz flash is playing a movie & this voice is iretating after every two secands.Thx in advance for any help.
|
|
|
|
|
How do I define short cut keys with alphabet combinations. like Alt+F+N in my applicaiton.The definition is given for digits combination.How do I do that with alphabets
Regards
Uma
|
|
|
|
|
|
Hi,
How can I generate popup window in asp.net.
Thanks in advance
Sunil
|
|
|
|
|
Hi,
You can use javascript window.open function to open a popup window.
Best Regards,
Apurva Kaushal
|
|
|
|
|
check out this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<script language="javascript" type="text/javascript">
<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}
// -->
</script>
I invoke my pop up window as follows:
<a href="Name of a aspx application.aspx" tabindex=-1 onclick="NewWindow(this.href,'Name of aspx','800','550','yes','center');return false" onfocus="this.blur()"> href display name </a>
Murtaza Tahir Ali Dhari
-- modified at 6:53 Thursday 15th June, 2006
|
|
|
|
|
http://javascriptkit.com/popwin/index.shtml
Use this link u will get the code.
|
|
|
|
|
Am using this statement to authenticate users
"Call lo_IADs.OpenDSObject("WinNT://" & domain, user, pwd, 1)"
sometimes i get the error
"Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again"
only a server restart brings it back to normal
could anybody clarify what is happening, and is there a problem if users goes beyond 500.
thanks in advance
|
|
|
|
|
HI,
I have a window's applicaiton in which I have a tree view consistng of certain values. Now when I right click on the node I should be in a position to edit the text there itself. Similar to the windows explorer where we have a names of the files in the directories where we can right click on the file/directory and change the name.I mean I want to implemnt the rename feature on my tree view node.I am using .net framework 1.1
I tried using the labeledit property but it s not working.
Regards
Uma
|
|
|
|
|
Hi
Does anybody know how to use OracleDataAdapter with OracleTransaction ?
My problem is that even if I use OracleTransaction.Rollback() method the OracleDataAdapter.Update method is executed and results are in database.
here is the example (create WebForm1 with button (id=BUTTON1) and paste this code into VB file of the form
'---------------------------------------------------------------------------------
Imports System.Data.OracleClient
Public Class WebForm1
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<system.diagnostics.debuggerstepthrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Dim ORAcon As System.Data.OracleClient.OracleConnection
Dim ORAtrans As OracleTransaction
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'---------------------------------------------------------------------------------
Dim lc_tabname As String = "table_test"
Dim conStringORA As String = "here is the connection string"
Me.ORAcon = New System.Data.OracleClient.OracleConnection(conStringORA)
Me.ORAcon.Open()
Me.ORAtrans = Me.ORAcon.BeginTransaction(IsolationLevel.ReadCommitted)
Dim lc_sql As String = lc_sql = "select * from " & lc_tabname & " where ID=0"
'this select statement return no row
Dim objDataAdapter As New OracleDataAdapter(lc_sql, Me.ORAcon)
Dim objDataSet = New DataSet
objDataAdapter.Fill(objDataSet, lc_tabname)
Dim newrow As DataRow
newrow = objDataSet.tables(lc_tabname).newrow()
newrow("test_string") = "abc"
objDataSet.tables(lc_tabname).rows.add(newrow)
Dim caa As New OracleCommandBuilder(objDataAdapter)
objDataAdapter.Update(objDataSet, lc_tabname)
Me.ORAtrans.Rollback()
Me.ORAcon.Close()
'---------------------------------------------------------------------------------
End Sub
End Class
'---------------------------------------------------------------------------------
Better any help, than no help ...
Jerry
|
|
|
|
|
Hi all,
I am using paging in datagrid and implemented paging successfully.
In my application I have checkbox and Id field in datagrid,On button click I want to save Ids which having checkbox status checked.
I implement solution thats is working correctly if datagrid having single page.But if I checked checkboxes from different pages in datagrid only last page Ids get saved.
I mean In paging if i want to save entries of two pages i could not do that.
For Each gridItem In DataGrid1.Items
Dim chk As CheckBox = DirectCast(gridItem.FindControl("Status"), CheckBox)
If chk.Checked = True Then
lbl = DirectCast(gridItem.FindControl("ID"), Label)
'''''Saving code here
end if
next
|
|
|
|