|
its not possible to add scroll bar to a datagrid..
u can do it by placing the datagrid inside div tag and set the style attribute as style="overflow:auto"
VMSSanthosh
|
|
|
|
|
Hi
Is it possible using javascript?if yes,then if u have code,pls give me.
Thanks
monika
|
|
|
|
|
what why u need javascript for this..
no need of javascript..
just place the datagrid inside div tag
<asp:gridview id="GridView1" runat="server">
VMSSanthosh
|
|
|
|
|
<div style="overflow:auto; height :100px " >
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</div>
VMSSanthosh
|
|
|
|
|
enclose datagrid tags inside
<div style=" OVERFLOW: auto; HEIGHT: 150px">
</div>
|
|
|
|
|
Hi
Does any one know whether ASP.net has Folder Browser object. I know that windows application has got Folder browser object, i am looking for something similar in ASP.net so that when a user clicks a button to load a file to the web server, then a folder browser opens up.
Can anyone help????
Your help will be highly appreciated.
happy coding!
|
|
|
|
|
From my openion use html control instead of ASP control because you are going to upload the file from client to server and make it run at server ok for html use this one
|
|
|
|
|
hi i have the code for you
void Button1_Click(object sender, EventArgs e)
{
// Get the HtmlInputFile control from the Controls collection
// of the PlaceHolder control.
HtmlInputFile file = (HtmlInputFile)Place.FindControl("File1");
// HtmlInputFile file = new HtmlInput HtmlInputFile();
// file.Value="@\\hd-yogeshv\Yogesh\sample.txt";
// Make sure a file was submitted.
if (Text1.Value == "")
{
Span1.InnerHtml = "Error: you must enter a file name";
return;
}
// Save file to server.
if (file.PostedFile != null)
{
try
{
file.PostedFile.SaveAs("c:\\MyPoc\\"+Text1.Value);
Span1.InnerHtml = "File uploaded successfully to " +
"<b>c:\\MyPoc\\" + Text1.Value + "</b> on the Web server";
}
catch (Exception exc)
{
Span1.InnerHtml = "Error saving file <b>c:\\temp\\" +
Text1.Value + "</b><br>" + exc.ToString();
}
}
}
void Page_Load(object sender, EventArgs e)
{
// Create a new HtmlInputFile control.
HtmlInputFile file = new HtmlInputFile();
file.ID = "File1";
// Add the control to the Controls collection of the
// PlaceHolder control.
Place.Controls.Clear();
Place.Controls.Add(file);
}
HtmlInputFile Constructor Example
Specify the file to upload:
<asp:placeholder id="Place" runat="server">
Save as file name (no path):
|
|
|
|
|
I need to amend a class module which shows a calendar view of a schedule with ranges of dates held, for booked courses, in database shown in red. The control generates a table cell for each day. I need to show a tooltip whenever the mouse is over any of the cells for a course booking showing data for the course name and a delegate list from a database.
The module uses HTMLTableCells to produce a calendar type display.
I've added a property, ToolTipText to the class module but don't know how to proceed.
|
|
|
|
|
Sppose ur cell name is like tdCell1 then use its property title like:
tbCell1.Title = "------";
|
|
|
|
|
Yes I had done that statically, setting it to "help me" in the class module but how to do it dynamically from code behind?
|
|
|
|
|
Hai to all,
How to insert a new column into datagrid for inserting a new value and it is not for updation.
and also i need to display the inserted value in the datagrid.
In this way i need to insert more the two rows with autogenerating serialno.
How to do with datagrid.Help me please.Give me an example.
Thanks in advance.
kissy
|
|
|
|
|
I'm sorry I just don't understand the question
|
|
|
|
|
Hi,
i am using sqldmo in my ASP.NET application. Iwant to list all the child table names of a parent table using sqldmo EnumDependencies() method.
Plz help me.Its Urgent
Rupa
|
|
|
|
|
hi i m woking on existing website.
but the acutally devlopers given the old sql server name.
but the now server name change ,so it displaying errors.
i want to know how to chag the server name in existing crystal report.
please help me;)
|
|
|
|
|
is there is any database logon procedure in ur reports ...
if not write it first.
check this link
http://forums.asp.net/thread/1474850.aspx
VMSSanthosh
|
|
|
|
|
hi,
last time i posted same thing but i didn't check reply's.
I am having an application with one button.
On click on the button it should be clicked state i.e button sholud be pressed (like radio button). Can any one help on this topic?
kamalnath
kamalnath
|
|
|
|
|
make button.Enabled=false ????????????
|
|
|
|
|
Hi all,
As I change web.config file, all the session variables will be flushed. I want to redirect user on the change of web.config to a pre-defined page. Where can I detect the change in web.config file in my ASP.NET 2005 web application?
Any suggestion is appreciated. Thanks in advance.
Sandip
Software Engineer
India.
|
|
|
|
|
In fact when the web.config changes, the entire web application restarts and so will every seperate session. You can handle the session_start event, and redirect users to e certain page when the session starts, or detect session existance on seperate pages and redirect them from there when the session does not exist.
|
|
|
|
|
Actually when web.config changes all the session variables will expires and my application generates exception at the time of checking any of the Session variable. The main problem is the Exception which is caused by web.config change. So how and where am I able to detect this Session related exception in the application?
Sandip
Software Engineer
India.
|
|
|
|
|
you can check if a session exists. I think your checking for a value or something, but the value of the session appears to be null because the session doesn't exist anymore...
<br />
if ((page.Session["YourSession"] != null)<br />
&& (page.Session["YourSession"] == "RequiredValue"))<br />
DoSomething();<br />
else<br />
Response.Redirect("DefaultSessionDoesNotExistPage.aspx");<br />
|
|
|
|
|
Why don't you just use a custom error page? This will do all the redirect stuff for you?
|
|
|
|
|
Problem: I am not able to put message into Queue If I am accessing the application from an URL instead of running the application from IDE.
----------------------------------------------------
General Information
1. Visual Studio 2005, Framework 2.0
2. WMQ 5.3 trial version
When we run our application from dot net IDE then we are able to put message into Queue, but if we access the application from an URL then we are not able to put the message to Queue.
The information fromt the event viewer is
--------------------------------------------
Entity 'aspnet' has insufficient authority to access object 'T2RQM'.
The specified entity is not authorized to access the required object. The following requested permissions are unauthorized: connect
Ensure that the correct level of authority has been set for this entity against the required object, or ensure that the entity is a member of a privileged group.
------------------------------
I added the aspnet account to both Administrator and MQM groups, still its not working. One thing which I noticed is that it is working fine in system where Visual Studio 2005 is not installed
|
|
|
|
|
Anybody is having any idea about it?
The sytem where Visual Studio 2005 is not installed are Windows 2003 system and others are XP
|
|
|
|