|
Apply a style and use css to position the control where you want it, either absolute or relative, etc.
only two letters away from being an asset
|
|
|
|
|
i want to create a custom control for my project.
how to do this
can any body help me regarding this
|
|
|
|
|
|
Hi guys,
I'm having a problem with a grid view. It all works great, but i added a set of textboxes that are used to generate a filter string. This filter string works fine, and enables me to sort, edit, delete, etc.
The problem i have now is that when i delete (via delete command) or insert (via a seperate form) an item, the datagrid re-freshes without the filter being applied.
I've tried re-applying the filter string to the ODS, i've also tried re binding the DataGrid. Neither of these has any effect.
Can anyone point me in the direction of a fix?
Cheers
Tris
|
|
|
|
|
Hi,
How do i create a template column containing an image at the end of a datagrid.Thanks in advance...
|
|
|
|
|
Runtime or design time??
[design time]
- Right Click on Datagrid.
- Click "Property Builder"
- Go To "Column"
- Add "Template" Column.
- Click "OK"
- Right Click on datagrid again.
- Select "Edit Template" (you wil see all template columns.)
- Select Last Column. (eg: Column [3])
- Add Image Control in ItemTemplate.
- Click "End Template Editing"
That's all.
[Runtime]
Dim tCol As New TemplateColumn
tCol.ItemTemplate.InstantiateIn(New System.Web.UI.WebControls.Image)
dgOvertimeRate.Columns.Add(tCol)
Try those codes. Hope it works.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
i want to travel on one website through .net coding.
i.e i have one web project and it contains one web form.
i have one website. in that web site contains search field box. thorugh coding i have to give value for that search filed and trigger the go button.
for example if i want to search the topic "TriggerButton" on google means i have to manually open that site and write TriggerButton in the search field box and click the google search button.
is it possible to do it through .net coding. (give value to that search field box and trgger the click event. )
|
|
|
|
|
|
Hi,
I'm trying to deploy my asp.net web application, but I don't know how can I access the default web page after I install the application on another computer??
Can someone please tell me in details how to depoly my web application and how to use the application after installation.
I'm using Visual Studio.Net 2005, Asp.net 2
I also want to add to the installation file, the .Net framework just in case the other computer doesn't have it??
|
|
|
|
|
Hi,
Just follow below steps:
------------------------
1. New -> File -> New Project
2. Expand Other Project Types (in Project Types Tree)
3. Click Setup and Deployment
4. Select Web Setup Project
5. Enter some file name and save it
6. Right click Web Application Folder (in (File System Tree).
7. Click Add
8. Add all web files (.aspx and .aspx.cs) as much as you wanted.
9. If you want to create new folder under main folder, right click the Web Application Folder -> Add -> New Folder.
To set default .aspx file for your web application
---------------------------------------------------
1. Click properties of Web Application Folder
2. Change the file name in ‘DefaultDocument’
a. Can be default.aspx or index.aspx or anything
3. You can also change the ‘VirtualDirectory’ (so that web application can be accessed as 'http://<servername>/<VirtualDirectory>'
a.Server name – can be localhost or machine name if deployed in some other
machine
b.Virtual Directory (optional) – can be your project name. If it is blank,
then files will be copied in the main directory i.e folder will not be
created.
Once you are done, now rebuild the solution. This will create .msi file in the debug/release folder in the saved directory.
When you are delivering a project, always change to Release mode. So that file will be created in Release folder
Finally for deploying the web application, double click that .msi, this will deploy in the server. Open Inetmgr and check all files are copied.
Is this easy nah ??! Fine
- Harini
-- modified at 6:57 Thursday 22nd February, 2007
|
|
|
|
|
Nice I given 5 score for this.
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
thnx a lot for ur reply.
I did all these steps then I opened the IIS and found the project and everything but when I write: http://localhost/<virtualdirectory>
the application cannot be accessed (Page cannot be displayed).
I want the other machine to access the application through the computer name.
like that: http://<computername>/<virtualdirectory>
|
|
|
|
|
You must define a default page, so when the application is requested its called,
you might also consider typing a virtual directory name.
|
|
|
|
|
Hi
After deploying the web appliction, Open Inetmgr, expand your web application and right click the default.aspx or default page, Click browse... then this will open your default browser. This is just for testing.
Now you will see the correct URL in the address bar (along with http://)..right??.
From next time you can type the URL directly in the address bar (i.e no need to go to Inetmgr again).
If you are getting some permission error, again right click the web appln (in inetmgr), go to Properties. Go to 3rd tab - 'Directory Security'. Click Edit.. Button. Uncheck Anonymous Access.
Click OK and refresh your web appln. Hope you are able to see your web appln
- Harini
|
|
|
|
|
Preven user to access previous page how i an i do that?
|
|
|
|
|
HI Nikhil
Please Modify your post no one is unable to understand what you want to ask ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Don't, period. This is very bad usability practice to force the user to do anything. Design your application better.
|
|
|
|
|
Prevent user to access previous page??
maybe. you may use javascript to clear the broswer history..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
VS 2005, VB. I drop an AccessDataSource on the web page and click on
"Configure Data Source". If I used the browse button, the Access database
that is within the application path does not display. I moved the database
to other directories that the browse button is definitely showing, but it
does not display. If I ask it to show all files, I see other files in that
directory, but not the MDB. When I type the name of the MDB in manually, it
says that the file "does not exist or could not be mapped to a local file
that could be read". Access 2003 opens this MDB file and displays data from
it just fine, so the file can be read. I found nothing on this error
message using Google. Anyone know?
My small attempt...
|
|
|
|
|
I am having trouble finding out how to open a document in its native external program client side.
The application is a web based serverside .Net App(C#) that needs to open a file which exists on the server, but using a clients local program (eg notepad for .txt files). I have tried Process.start(), however, this only starts a server-side process which the client machine never sees.
I want to avoid using a hyperlink as I really need the files to be opened on a _SelectedIndexChanged event, and also creating a hyperlink to the servers local drive will not work for the clients. The scope for installing on client machines is basically nill so I seem to be somewhat stuck.
Please can someone help, as this is the whole point of the app and it will screw up my process if it can't be done
Thank you all in advance
Mark
|
|
|
|
|
If you stream the file to the client and put a bit in the header of the page as so:
Response.AppendHeader("content-disposition", "attachment;filename=<filename>")
Should open the file (as long as the user has the appropriate application.
|
|
|
|
|
Ok, that sounds good but...
I don't have the file name until the SelectedIndexChang event as it is calculated from the results of a grid view? would I have to pass the file name to a new page with the above Response.AppendHeader?
I'm afraid I'm new to .Net so may need some guidance here
Many thanks for your response, it has at least provided some light at the end of the tunnel.
|
|
|
|
|
That sounds about right to me.
|
|
|
|
|
Ok, I am redirecting to the new page having set the full filename (inc. path) as session.
ie.
String FullPath = "the path of my file on the server (not on the client machine)";
Session["FullFilePath"] = FullPath
Response.Redirect("OpenFile.aspx");
I am then in page load event of 'OpenFile.aspx' running:
Response.AppendHeader("content-disposition", "attachment;filename="+Sesion["FullFilePath"]);
However, it is just asking me to confirm that I want to open 'OpenFile.aspx', what am I missing?
I can at least see that this should work though so I am extremely grateful
Mark
|
|
|
|
|
Have you also opened the file and streamed it to the browser?
|
|
|
|