|
I am opening a .aspx page on button click event. can any one tell me how to hide the title,minimise and close button of the .aspx page. i want that the page looks like a popup window.
thanks
|
|
|
|
|
|
The problem is that a user should be able to see these buttons. Its difficult to change the browser display to customize for a user.
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
how to give search facility to user
how do i use google api
|
|
|
|
|
nikhil1234 wrote: how to give search facility to user
Microsoft Indexing Service
nikhil1234 wrote: how do i use google api
what?
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
hey i have used this but not working properly for excel files
|
|
|
|
|
Hi,
I have an aspx page in which i'm using a popup(The popup is a dynamically created iframe - we will assign the url to it when we need the popup). In the aspx page there is agridview inside an update panel. The popup will accept some data and on closing , the gridview should refresh and show the updated values. I'm using 'window.location.reload()' to refresh the parent window. It is possible to popup the window, add new data, close the popup and the parent window gets updated now both in Firefox and in IE7. But when i'm using IE7 the whole window (parent) gets refreshed and i lose the selection made on checkboxes. But it works fine in Firefox, ie the checkbox selections remain same when its coming back from popup)
can anybody help me to figure out the problem?
|
|
|
|
|
hi friends,
i am getting trouble to access more then two class files with the concept of inheritence(drived class)......means.... i having one base class... i have developed one more class want to include drive for the previous class......
and also... kindly give me idea to include..values objects... to acces the diffent page controls...
bye,
forever friend,
sarala.s
|
|
|
|
|
are both classes in the same namespace?
You can group classes into namespaces and include in other classes.
|
|
|
|
|
yes.. exactly i tried as u said...but getting probs....
can u suggest to include .. namespace and include the class??
or any gud website to refer???
|
|
|
|
|
I'm not sure whether you are looking for this, but i'm giving you an example
first.cs
--------
using System;
using System.Data;
using System.Configuration;
using System.Linq;
.
.
.
namespace Test
{
public class Images
{
public memberFunction();
{
//do something
}
}
}
----------
second.cs
---------
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using Test; // including the namespace
.
public class DB
{
private method1()
{
Images images=new Images();
images.memberFunction();
}
}
Does it make sense?
|
|
|
|
|
Are you trying to inherit one asp.net page class from another?
This isn't really a great way to go about this, if it is the case - pages should stand alone from each other.
|
|
|
|
|
hi,
I want to add ancre to url when the event onload page is done with javascript but without reloading the page.
how can i do it.
I also want to catch the onclick event on the back button of an explorer.
Thanks a lot for your answer!
|
|
|
|
|
Hi,
I need to create a dynamic table list using ASP.NET C#.
The table has to output the following like image below.
http://img171.imageshack.us/img171/4706/tableoe5.jpg
The FUND 1, FUND 2, FUND 3 (and other funds), DATE, and the FUND PRICE (0.3330, 0.4930, and others) are fetch from database. All are DataBound into LABEL property.
If you notice, after FUND 4 the list repeat itself with header and start with FUND 5.
How can this be done.....Pls help....Pls share any ideas or example.
Thx.
|
|
|
|
|
It looks like you might want to try a gridview in a repeater. in the item databound event of the repeater, you can find and bind each grid.
|
|
|
|
|
hi,
Thx for reply.
but i'm new to asp.net, is there any example available with similar to my situation??
Thx.
|
|
|
|
|
|
Hi Friends,
I have created two functions that encrypt and decrypt the connection string in web.config. But whenever I want to use connection string. I have to always decrypt web.config and then again encrypt it back. Does there any other way which i can use.
I'm using section.SectionInformation.ProtectSection(" <encryption configuration="" provider=""> ") and section.SectionInformation.UnprotectSection()
|
|
|
|
|
R u changing(Enrypting/Decrpting) value of connection string in web config each time.
You just need to put encrypted connection string in web config and whenever you want to use it just fatch the encrypetd connection string, decrypt it and use it.
|
|
|
|
|
Hey guys below is a block of code I'm using to get data from my DataBase using a DataReader but after running the code the DataReader is empty tell what I'm I doing wrong. I'm using Microsoft.Practices.EnterpriseLibrary.Data to access my Database
Database dbuser = DatabaseFactory.CreateDatabase("Portal");
DbCommand cmd = dbuser.GetStoredProcCommand("GetPassword");
DbCommand cmdUpdate = dbuser.GetStoredProcCommand("UpdateLastActivityByEmail");
dbuser.AddInParameter(cmd, "Email", DbType.String, username);
dbuser.AddInParameter(cmd, "Password", DbType.String, EncryptData(password));
dbuser.AddInParameter(cmdUpdate, "Email", DbType.String, username);
dbuser.AddInParameter(cmdUpdate, "lastActivityDate", DbType.DateTime, DateTime.Now);
string pwd = "";
SqlDataReader dbrUsers = null;
dbrUsers = (SqlDataReader)dbuser.ExecuteReader(cmd);
try
{
if (dbrUsers.RecordsAffected > 0)
{
dbrUsers.Read();
pwd = dbrUsers.GetString(0);
}
}
catch(Exception e)
{
}
Please Help!
Index out of bound.
|
|
|
|
|
use it like below..
try
{
while(dbrUsers.Read());
{
pwd = dbrUsers.GetString(0);
}
}
catch(Exception e) { }
|
|
|
|
|
I still have to same problem, is it the way I'm accessing my database or is it the ExecuteReader() method?
Index out of bound.
|
|
|
|
|
Try
if (dbrUsers.Read())
{
//Set your password stuff
}
Also probably worth checking to see that you are actually returning a value from the SQL?
|
|
|
|
|
I want to select a folder in asp.net using c#. Using the fileUpload control I can select a file, but i want to select a folder from the machine.
Please help.
Thank you in advance.
|
|
|
|
|
You can do only by zip the folder options.
|
|
|
|