|
that not it i have inherits system.web.ui.page
|
|
|
|
|
Hi i wanted to ask did you find a solution?
Kind Regard
Charles
|
|
|
|
|
I have problems to show images in a datagrid. I was looking for some answer and I found that if I use this code it should be work.
Dim Comm As New OleDbCommand(QPhoto, con.Con)
Conexion.Open()
Dim OledbRead As OleDbDataReader
OledbRead = Comm.ExecuteReader(CommandBehavior.CloseConnection)
Do While (OledbRead.Read)
Response.ContentType = OledbRead.Item("IDArti")
Response.BinaryWrite(OledbRead.Item("Image"))
Loop
con.Con.Close()
But, unfortunatelly it doesn't work. When I try to run this code, it asks me if I want to open or save and the both options don't do anything.
Could you help me?
I have the images in Access database and I want to display them in the datagrid with the information of each row
Please, help me I'm stressed out
|
|
|
|
|
|
I have two web pages , i am navigating from page1 to page2 with a query string . The problem is i don't want to show the query string value in the address bar , it leads to database hacking.
How should i overcome this problem ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
make another page, page a for now, a basic html page with a frameset that loads page 1, make page a the default page on the webserver and all they will ever see is whatever you call page a, but they'll interact with page 1 and when you navigate to page 1 to page 2 the address bar wont change and if you set the frameset up correctly no one will ever notice it. you could also put your querystring values into the session or viewstate and pass them that way.
Alcohol the cause of and solution to all of life's problems.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i have four javascript functions three of them are called on mouse over of image control and one when page is loaded first time. it works fine on aspx page but when i use same code with content page (means by applying master page on aspx page) it does not work plz help.
code is given below
Javascript functions
<script language="javascript" type="text/javascript">
var Imag2=null;
var Imag3=null;
var Imag4=null;
var Pnl1=null;
var Pnl2=null;
var Pnl3=null;
window.onload = function()
{
Pnl1 = document.getElementById('Panel1');
Pnl2 = document.getElementById('Panel2');
Pnl3 = document.getElementById('Panel3');
Imag2 = document.getElementById('Image2');
Imag3 = document.getElementById('Image3');
Imag4 = document.getElementById('Image4');
Pnl1.style.display = 'block';
Pnl2.style.display = 'none';
Pnl3.style.display = 'none';
Imag2.style.display = 'none';
Imag3.style.display = 'block';
Imag4.style.display = 'block';
}
function Panel1(Image)
{
Pnl1.style.display = 'block';
Pnl2.style.display = 'none';
Pnl3.style.display = 'none';
Imag2.style.display = 'none';
Imag3.style.display = 'block';
Imag4.style.display = 'block';
}
function Panel2(Image)
{
Pnl1.style.display = 'none';
Pnl2.style.display = 'block';
Pnl3.style.display = 'none';
Imag2.style.display = 'block';
Imag3.style.display = 'none';
Imag4.style.display = 'block';
}
function Panel3(Image)
{
Pnl1.style.display = 'none';
Pnl2.style.display = 'none';
Pnl3.style.display = 'block';
Imag2.style.display = 'block';
Imag3.style.display = 'block';
Imag4.style.display = 'none';
}
</script>
|
|
|
|
|
Use View Source in the browser, and you'll see what id the elements really have.
You can use the ClientID property of a server control to find out what id it will get in the rendered page.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanx a lot. it was quite helpful
|
|
|
|
|
i have a gridview within a scriptmanager and within the gridview i have a templatefield which contains a hyperlink control which when clicked resubmits this page with some query strings attached. see code below:
<asp:TemplateField HeaderText="Order">
<ItemTemplate>
<asp:HyperLink ID="Hyperlink3" runat="server" NavigateUrl='<%# "default.aspx?SearchType=Wip&CustPO=" & rtrim(DataBinder.Eval(Container, "DataItem.PO#")) & "&StockCode=" & DataBinder.Eval(Container, "DataItem.MStockCode") %>'
Target="_self" Text='<%# DataBinder.Eval(Container, "DataItem.PO#") %> ' ToolTip="Check Work In Progress!">
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
How can i catch this event when the user clicks the hyperlink from the gridview.
obviously page.ispostback or ScriptManager1.IsInAsyncPostBack do not catch this event. ? any ideas people - ajax newbie so forgive my ignorance
Cheers
|
|
|
|
|
hai friends
i have two files in web site (located in soln explorer)
while copying these files i got a error
my code is ........
Dim td1 = Server.CreateObject("Scripting.FileSystemObject")
td1.CopyFile(Server.MapPath("file2.rtf"), Server.MapPath("Doc1.doc"))
Exception from HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED)
plz help me
thanks in advance
vijay kumar
|
|
|
|
|
Wow, are you still writing classic ASP? Anyway, check permissions on the folders.
I didn't get any requirements for the signature
|
|
|
|
|
hai ToddHileHoffer
if u have the solution for this in asp.net 2.0
then plz send me....
thanks in advance
vijay kumar
|
|
|
|
|
Hi ,
I am having a page in which I am dynamically loading a usercontrol on click of LoadUserControl button . On click of the LoadUserControl button the user control is loaded dynamically . In the user control one update button is there . On click of the update button , the update button event is firing . After that we again load this user control by clicking the LoadUserControl button . Then if we click on the update button of the user control the update button event is not firing . Please help .
Thanks in advance
Jophin
jophin
|
|
|
|
|
One thing is you can try is on the page init set the event of the button in your user control on each postback.
I didn't get any requirements for the signature
|
|
|
|
|
Hello,
I've a div and a link. And i want to show the div if the it's not visible and hide the div if it's shown. It's working fine in Normal web page but not working in Content Page of Master Page
Throwing a "Object Required" Error
modified on Friday, June 6, 2008 7:00 AM
|
|
|
|
|
i am having dropdown column in my gridview.when i am freezing the header it is going up i am using z-index property in my css class but i am not able to apply this to dropdown .pls anyone can help me
modified on Friday, June 6, 2008 6:46 AM
|
|
|
|
|
How many values are in the dropdown?
There could be so many it slows your system down
We are not a Code Charity
|
|
|
|
|
|
do u have solution for this problem
|
|
|
|
|
hi,
I m working in asp.net 2005 with c# language. in that i hv used gridview . i hv 3 dropdownlist and 4 checkbox and textbox in edit mode.when i edit gridview the text box value shows proper database value where as dropdownlist doesnt bind the database value. in the same way checkbox value is stored as 1 or 0 in database. if the value is 1 ten the checkbox of gridview shud be checked.this is also not firing..
so pls help me to do these things
thanking you,
k.priya
|
|
|
|
|
What is the best way to retrieve data from SQL Server 2005 for a performance hungry web site? I was thinking of using sqlconnection+datareader+stored procedures but I'm not keen on the idea of writing sqlconnection every time. I like using typed datasets but I really need the maximum performance for the site and I don't know about it's performance. What do you think? Should I go for my own DAL? Or are there good DAL components that I'm not aware of that I could use? Any opinion is appreciated.
|
|
|
|
|
Just declare one connection string at the top of the page
Then use stored procedures
We are not a Code Charity
|
|
|
|
|
Your best bet is to use a sqlconnection and datareader. You biggest bottleneck will often be your sql queries. So if you have data that doesn't change very often use System.Web.Caching...
Do not use typed datasets, they are a performance killer. If you want you can use class objects to represent your data and use generic lists instead of typed datasets.
Also, you can call one stored procedure to get all of your data. Just return multiple result sets and use reader.next
I didn't get any requirements for the signature
|
|
|
|
|
Hi
I have a datatable having 10 records. I want to insert the 10 records to a table in a database using stroed procedure from my front end C#. How to do? can any one help me please?
Thanks in advance
kesavan
kesavan
|
|
|
|