|
How do you define the edit button of the inner datalist control? You can also look at the ItemCommand event of the inner datalist control and do a checking on the command name.
|
|
|
|
|
Hi Friend,
I am using Master Page and writing some information on master on dropdownlist_selectedindex
event.
I want to write some values from database to master page on this event and then redirect to an other pages.
Problem is when i redirect it doesnt write information on master page and if i remove redirection line it does.
I am not gettig the sequence of events here.
which event will be best to redirect after writing information to the master page.
any help will be appriciated.
thanks
Naveed Kamboh
|
|
|
|
|
Naveed Kamboh wrote: I want to write some values from database to master page on this event and then redirect to an other pages.
Problem is when i redirect it doesnt write information on master page and if i remove redirection line it does.
Off course, when you redirect the master page reloads. You will need to load the data to the materpage after you redirect. Anytime you redirect to a new page the ViewState of the masterpage is recreated.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Thanks dear but problem is when i redirect to page its goes to that page but does not update informaton on master page
let me xplain my problem again.
M1=Master page
ddl=dropdonwlist on master page
c1=another aspx page which uses master page graphics and info.
variable address;
adress="abc"
at the bottom of master page i wrote like <%=Response.write(address)%>
now i want to redirect my c1 page using ddl index and also change value into address variable which must be updated on to master page.
as ddl's selected index fires at end thats why its not updating information on master page.
any idea to perfrom the task please.
Naveed Kamboh
|
|
|
|
|
use page.master.findcontrol()
You can update any control in the master page at any point. The preRender event is a good place to make sure the update will "stick".
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Sorry i am not getting what do you mean.
Naveed Kamboh
|
|
|
|
|
Thanks dear,
I have sorted,
I used a class property to store the value of selected index and it done all work for me.
thanks
Naveed Kamboh
|
|
|
|
|
In the codebehind page of the content page you can update any control on the master page.
for example
<br />
TextBox txt = page.master.findcontrol("txtOnMasterPageID");<br />
txt.text = address;<br />
Now you can run this code write before the page is rendered
for example
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
this.PreRender += new System.EventHandler(this.Page_PreRender);<br />
}<br />
protected void Page_PreRender(object sender, EventArgs e)<br />
{<br />
{<br />
TextBox txt = page.master.findcontrol("txtOnMasterPageID");<br />
txt.text = address;<br />
}<br />
}
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
I want access server side of textbox information in javascript function .
i am doing final year mca .i want source code with demo project with source code.
|
|
|
|
|
You look up the getElementById method in MSDN or online tutorials to see how to use it to get reference to an element at the client side based on the element id.
|
|
|
|
|
Hi,
I have a range validator on my page. It's validating for an integer value whoose datatype in the database is bigint (–9,233,372,036,854,775,808 and +9,233,372,036,854,775,807) or (0 and 18,446,744,073,709,551,615 )
Now, for the range validator the interger value has a preceision of Int32 (-2,147,483,648 to 2,147,483,647 ).
How can I extend this max integer value of the validator to validate for bigint values?
Minu
|
|
|
|
|
I think this might be a javascript limitation, found this on the web:
"Modern JavaScript/ECMAScript implementations supports the use of integers up to 53 bits in length, which gives a maximum integer size of slightly larger than 9,000,000,000,000,000"
|
|
|
|
|
Can you explain that? As I know the Integer value in the validator comes from System.Int32. How does JavaScript come into picture here?
Thanks
Minu
|
|
|
|
|
The client side validation on a web form is performed by javascript that the validator controls create.
|
|
|
|
|
I am dealing with a web application with forms authentication.
In login form Userid,password options are there.
when the user enters his userid and password,they are checked against the database.If the user is valid then he is allowed to access tha site.
so how to configure the web.config.
Please help me
|
|
|
|
|
|
<authentication mode="Forms">
<forms loginurl="WebForm1.aspx" name=".ASPXFORMSAUTH">
<authorization>
<deny users="?">
|
|
|
|
|
I'm having problems accessing a MS-Access Database from within ASP.NET (Visual Studio 2003). The program itself is in "C:\Inetpub\Guest", and I've created the database at "D:\databases\guest.mdb".
When I run the program I get an error on the line:
OleDbConnection1.Open()
It says:
We can't find "http://localhost/DBTest1/frmMain.aspx"
Error - Internal server error
I took off "friendly messaging" for the browser, and now have a more descriptive error for this problem. It says:
The Microsoft Jet database engine cannot open the file 'D:\databases\guest.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
I have just rebooted the PC, so it cannot be opened exclusively by another user. When I define the Connection String in the OleConnection1, I have:
Provider Tab
------------------
a) Microsoft Jet 4.0 OLE DB Provider
Connection Tab
-----------------------
a) I select the database "guestbook.mdb"
b) User name: Admin
c) I click on "Blank password", but not "Allow saving password"
Advanced Tab
--------------------
a) I choose "Share Deny None"
When the wizard is about to close I select: "Include Password"
This didn't work, and I've played around with the settings, but to no avail. What's wrong?
Thanks
|
|
|
|
|
|
Hi.
I have a web application (RadioBecon) installed on one of the servers. I think it’s written in C# and of course doesn’t have any code behind (so I cannot modify it). The application uses license to track how many people are using it. Every time someone logs in it locks the license in DB. The session, which expires after some time (you can set it in the admin console), is supposed to kick people out and release the license in DB but for some reason it doesn’t do it when session time expires.
I went to wwwroot -> application folder and in the WebConfig file set session to 900 (15 min.). I’ve done that to make sure it kicks people out after 15 min. But that didn’t help either. It does kick people out of application but doesn’t unlock license in the database. I can see in the database user is set as locked. I guess the application is not working right… Database doesn’t track time and sessions (logins). For reporting purposes to see who’s logged in and for how long the application uses IIS (so no info stored in DB)
The thing is I would like to unlock license of each user after 15 (or any set time) min.
Is there any way for me to write some application (VB.NET) so it can read sessions used in IIS for my application and if they are longer than specified time to remove it and ran SQL query to unlock the user?
Thank you in advance. Alex.
|
|
|
|
|
You really need to get in touch with the vendor. Otherwise you could be causing yourself a world of pain...
|
|
|
|
|
Thank . But is there any way thoug?
|
|
|
|
|
Hello
i want to create a Folder on Server and also want to copy the some aspx pages into that..i dont have any idea for that
Can anybody help me in that..
Code will be helpfull
Thanks in Advance
|
|
|
|
|
In your code behind,
Create a directory:
System.IO.Directory.CreateDirectory(@"\My Folder");
Copy some files:
use System.IO.File.Copy
you can get a list of files with in a directory with the directory class and then enumerate them calling copy.
|
|
|
|
|
hi
thanx for replying me,
now i'm able to create directory and even copy the files from one directory to another.but problem is that i want to copy the selected files.
i'm using this this code :- which copy the whole directory files to another directory.
http://www.xefteri.com/articles/show.cfm?id=16[^]
thanx
|
|
|
|