|
Hello to all
I want to fix the page width in asp.net. when I add a banner to masterpage.master or add menu the width of page always changed.
Please help me how I can fix the page width?
Thanks a lot.
A good friend tell that use table. but I use it with no luck.
Are there any good article about working with table?
modified on Monday, August 24, 2009 5:52 PM
|
|
|
|
|
I think you can try wtih the Table width. That may restrict your page width.
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
when panel is used for scroll bar in gridview it is working fine
But when the window is resized it is not woking in the header of gridview
raj for u make u problem free
|
|
|
|
|
Member 4295042 wrote: it is not woking in the header of gridview
Not working means what ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Actulally my gridview header is not moving with respect to grid when window is resized
header class i have written is
css
{
position:relative;
top:expression(this.ParentNode.ParentNode.ParentNode.Scrolltop-2);
}
i have placed the gridview in panel
raj for u make u problem free
|
|
|
|
|
How to use BindingmanagerBase class for nevigating recards,i have some idea in c#(windows Application)but not in asp.net
|
|
|
|
|
You can't use that in ASP.NET. ASP.NET is stateless and got a different architecture than the rich-client applications.
|
|
|
|
|
Please tell me whats the use of save icon in FCK editor
|
|
|
|
|
suzzain wrote: Please tell me whats the use of save icon in FCK editor
Use of a save icon is obvious, isn't it?
|
|
|
|
|
|
Read this[^]. Especially point 2 and rephrase your question.
|
|
|
|
|
Hi All,
I M trying to connect to access database it is done and working perfectly in my local machine.
But when i upload the pages to web server it is retrieving the data from database but does not allow saving the data
so could you please tell me how can i solve this problem.
Thanks in advance.
|
|
|
|
|
Define any web form, then you established connection with any provider after this create command for
accessing query and finaly define datareader class.
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;Data Source=c:/db1.mdb;");
con.Open();
OleDbCommand cmd = new OleDbCommand("select *from login", con);
OleDbDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
if (TextBox1.Text == dr.GetString(0))
if (TextBox2.Text == dr.GetString(1))
Response.Redirect("default2.aspx");
else
lbl.Text="check the username and password";
CheckBox1.Text = "check the username and password";
}
//con.Close();
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
}
}
|
|
|
|
|
Dhrumil_Shukla wrote: web server it is retrieving the data from database but does not allow saving the data
Its means your connection string is not valid. Do you have the database on web server or any different system ? What your connectionString contains?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
my datbase is on web server and the connectionstring is like
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|table.mdb;Persist Security Info=True"
|
|
|
|
|
Hi,
I am having a requirement like 'Scheduling Jobs' in a ASP.Net web site. Each user can create 'N' number of projects & schedule each project to run in a particular interval (Daily/ Weekly/ Monthly/ etc). Similarly we have 'N' number of users.
Each user needs to Edit/ Delelte the scheduled jobs & View the status.
One of my colleague suggested the below. Does any one of you have used this open source framework?
http://quartznet.sourceforge.net/[^]
Can you please suggest on this?
Jey
modified on Wednesday, August 26, 2009 5:04 AM
|
|
|
|
|
i need to show image when the user select path. ie, the file could be at any location. at the time of execution user can give any path in the textbox. and at the same time when selection is made by user in textbox the image immediately should show in the picture box.
i use this code
protected void Page_Load(object sender, EventArgs e)
{
Image1.ImageUrl = TextBox.Text;
}
|
|
|
|
|
Looks like it should work. What is the problem ?
You could even do this in javascript and not have to post back. Then it would in fact be 'immediate'
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Dear Christian,
I have a doubt... Is it possible to open a image from any location...if yes, can you give some sample.
|
|
|
|
|
I am not sure if a local path would work for a local user or not, but if it's an online location, I'd expect what you posted to work just fine.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
'Any path' means will the user select the path from his local PC?
How does the user select the path, using a browser window?
You can open a file open dialogbox using activex in javascript. But it will work in IE only.
Also you cannot display images from a folder from the client PC. It should be available in the location of your web site.
|
|
|
|
|
Hi,
I need to convert string which has EBCDIC, packed decimal and Endian data to byteArray to save it in the database. I tried the following code.
Byte[] updateByte;
updateByte = System.Text.Encoding.Default.GetBytes(strData);
//here, strData is the string
Here what happens is it converts some characters to '?' with decimal value 63. For e.g. abc(ASCII vale) after converting to EBCDIC i get [129 130 131](these are decimal values of the converted EBCDIC data). When i convert the string to byte array in order to save it in database, it changes all three characters(129, 130 and 131) to 63. This mostly happens with small case alpbhbets.
I also tried other encoding(EBCDIC-US) but this also changes more characters.
IMP: Please note that the string that i need to convert to byte array contains EBCDIC, Packed decimal and Also Endian data.
Kindly let me know how i can achieve this.
Thanks,
Deepa
|
|
|
|
|
Hi
I am using AJAX Text Slider in Grid View. When i click on Next page it works fine. When i click on First button again it does not show record count (Row command event does not get fired) and grid paging behavior becomes very inconsistent.
Please help me with this problem
Inderjeet Kaur
Sr. Software Engg
modified on Monday, August 24, 2009 3:16 AM
|
|
|
|
|
Hi All,
This code is working fine with C# but i have to use this with existing VB.Net application so that this.gettype() is giving error not defined so how to remove this
ClientScript.RegisterStartupScript(this.gettype(), "newWindow", String.Format("<script>window.open('UserSetting.aspx','ReportWindow', 'width=400,height=200,status=no,toolbar=no,menubar=no,location=yes,scrollbars=yes,resizable=no');</script>"))
Thanks ,
Amit Patel
|
|
|
|
|
Hope this will help you.
ClientScript.RegisterStartupScript(Me.GetType(), "newWindow", String.Format("<script>window.open('UserSetting.aspx','ReportWindow', 'width=400,height=200,status=no,toolbar=no,menubar=no,location=yes,scrollbars=yes,resizable=no');</script>"))
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|