|
|
Hi friends,
I have used skmMenu for creating Menu in my page and have a xml file for the menu.
Also i have binded the xml file as the DataSource to the menu.
But i couldnt find the menu while executing.
Can anyone please help me in finding it out...?
|
|
|
|
|
are u getting any error?
debug while assigning datasource to menu
|
|
|
|
|
Am not getting any error.
But the menu couldnt be seen in the form.
Do i have to change any property either in form or in menu control?
The code i used for binidng is:
<br />
<br />
private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
Menu1.DataSource = Server.MapPath("menu.xml");<br />
Menu1.DataBind();<br />
}<br />
<br />
<br />
|
|
|
|
|
Hi... Good Day!
I have a question abount printing in asp.net. I'm using asp.net 1.1(VB) to develope the page.
If i want to print the current web page by clicking on the "Print" button, how should i write the code to fire the print function?
I have try many times, but stil can't work. Anyone can help me about this problem. Can give me a guide about this print function.Thanks.
Best Regards,
Pei Sun
|
|
|
|
|
In the Page_Load event, Type in:-
btnprint.Attributes("onClick") = "javascript:window.print();"
Thanks and Regards,
Suresh Dayma
|
|
|
|
|
You only use the javascript: protocol when you run code in an URL. An event is not an URL, so it doesn't use a protocol.
btnprint.Attributes("onclick") = "window.print();"
---
b { font-weight: normal; }
|
|
|
|
|
Hi!
Simply my prob is:
For Datagrid i used 3 events:
ItemCommand,Databound & PAgeindexchanged..
Here that Page index changed wnt work, Instead of that it redirects the page where i mentioned in the itemcommand event, this event takes the more preference than page index,
How can we solve..?
If u need more explanation:
I hv the datagrid name as dg. i want to do paginng in that dg control.
I am using c#.
I fetched the imagebutton control name as img to the dg.
If we clicks that img it has to go another form(Models.aspx).
For this i used:
dg_itemdatabound event for find the control (img)
dg_itemcommand event for redirects to next page(Models.aspx)
Now i used 3rd event for the same dg control:
dg_Pageindexchanged event for paging.
Problem is:
I got the Prev & Next Buttons in the dg but if i clicks that one it redirects the page to Models.aspx (which is i mentioned in the itemcommand event)
I am displaying the next form based on the click of the imagebutton dynamically..
instead of that it has to display the remaining values...
I hope u got my problem.., How can we solve this one?
Prabu.T
|
|
|
|
|
have you given OnPageIndexChanged correctly in the html side?
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Hi,
I need to find out what is the request and response SOAP message that is getting transmitted when I call a web service. Could any one let me know whether any tool is available to trace the request and the response messages?
Thanks in advance
Vivek
|
|
|
|
|
I want to insert data in old xml file without override old data of that file
plz tell me
Rahul Khokale
r.khokle@yahoo.com
|
|
|
|
|
Hi,
How can I detect is cookies are enabled or not in client browser in asp.net?
Regards
Rajesh
rajesh
|
|
|
|
|
You can check whether user has enabled cookies or not with the help of javascript.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Use the following code to detect whether cookies are enabled or disabled:-
Dim bc As HttpBrowserCapabilities = Request.Browser
Dim cookies As boolean = bc.Cookies
if cookies returns true then it is enabled, else disabled.
Thanks and Regards,
Suresh
|
|
|
|
|
This was fine when I use at .Net 1.1 for the gridview cells, A (in red colour).
But the output for .Net 2.0 was <FONT COLOR=RED><B>A</B></FONT>
public string strAbsent = "<FONT COLOR=RED><B>A</B></FONT>";
-- modified at 4:13 Monday 21st August, 2006
thanks in advance. Much appreciated.
|
|
|
|
|
Could you please rephrase your question. As it stands all I have is what the output is in .NET 2.0, for which I have no context, and "Why can't I do this in .net 2.0?". Why can't you do what? What worked fine in 1.1? What is wrong with the output from 2.0?
|
|
|
|
|
In the past, in .Net 1.1 I have a datagrid and I binded my data using datatable, dataset etc. I have set earlier
public string strAbsent = "<FONT COLOR=RED><B>A</B></FONT>";
In some column the output will show A in red colour in the datagrid.
Now, I am migrating the project to .Net 2.0. I have a gridview and I binded my data using datatable, dataset etc.
But it appears that the output A is no longer in red colour but instead it shows exactly the html tags:
<FONT COLOR=RED><B>A</B></FONT>
thanks in advance. Much appreciated.
|
|
|
|
|
You will have to use HTMLEncaode=false
Here is a post telling the reason
http://vikramlakhotia.com/Post.aspx?postID=5
Vikram Lakhotia
|
|
|
|
|
How can i set htmlencode="False" when im not using any boundcolumns?
Is there any way to set A to red colour.
thanks in advance. Much appreciated.
|
|
|
|
|
u can use Item Style template to give it colour.
Vikram
|
|
|
|
|
Sorry maybe I did not explain clearly.
The above html tags was from the codebehind. how can I edit the item-template when I would not know where the letter A will appear in the gridview.
------------------------
| |A | | | | | | |
| | | A| | | | | |
| | | | | | | | |
|__|__| A|__|__|__|
Some other letter will appear at the blank cells in the gridview. My purpose is to highlight to user, A with red colour so it catch reader eyes to notice the number of As.
-- modified at 14:10 Tuesday 22nd August, 2006
thanks in advance. Much appreciated.
|
|
|
|
|
Okay this may be a stupid question, but how do you build an HTML page from within ASP.NET? I'm trying to build an ASPX page where someone can set a bunch of settings for how they'd like a web the page to look like. Then when they hit the submit button, ASP.NET makes the alterations to the page and then loads that newly altered page into the browser. I'd also like to be able to alter the script within the page as well.
Most (if not all) of the examples I've seen to this point are based on the idea of altering the already loaded page, like changing the label1.text = "This has been changed";
Is there a way to make alterations to a different page, and what do they call this? I've Googled a million things such as "building HTML in ASP.NET" and found nothing. This seems like a pretty common task.
Thanks, -=STZ=-
|
|
|
|
|
This looks like a typical case in which xsl transformation could work for you.
As I understand you want your webpage to get displayed according to some settings.
You can retrieve these settings in a dataset and create a xml file out of it.
Then you can use the xsl transform to transform this into HTML format.
The way you want to display the html will determine the logic in the xsl file.
I know I haven't included the actual code for you in this but hopes this helps you in some way
Chinmay Vadhavkar
Tata Consultancy Services
|
|
|
|
|
Hi all,
i wants to down load video file and play it own browser i am geting media file from data base
<br />
con=new SqlConnection("server=hari; initial catalog=manoj;user id=sa;password=sa");<br />
cmd=new SqlCommand("select * from video where fileid='"+TextBox1.Text+"'",con);<br />
con.Open();<br />
dr=cmd.ExecuteReader();<br />
if(dr.Read())<br />
{<br />
string content=(string)dr["type"];<br />
FileInfo myfile=new FileInfo((string)dr["movename"]);<br />
int buffersize=Convert.ToInt32(dr["movelenth"]);<br />
Response.Clear();<br />
string str=myfile.Name;<br />
str=str.Replace("str",".resources");<br />
Response.AddHeader("Content-Disposition", "attachment; filename=" + str); <br />
Response.AddHeader("content-Type",content);<br />
Response.OutputStream.Write((byte[])dr["data"], 0, (int)dr["movlenth"]);<br />
Response.End();<br />
}<br />
else<br />
{<br />
Response.Write("No Such Media Found");<br />
}<br />
con.Close();<br />
Response.End();<br />
<br />
with the above code i can get the file form data base & open it & save it also,
but i am not want to save that file & i wants to play only into my own browser.
how i can do this please give some example or idea (as soon as)
regard
khushak(manoj)
|
|
|
|