|
querying the data, then assigning that data to the list.
sAqIb
|
|
|
|
|
|
Also don't repost it.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi.
I'm having problem in loading crystal report using .aspx file. It give "Report Load Error"
I'm using ASP.NET and VB.NET.
Can anyone help me to resolve this problem?
thank you.
Krishnan_15
|
|
|
|
|
Hi!
I have a usercontrol which has some hyperlinked images this control goes into my aspx page in asp:Content, when i click on one of the links an aspx page should load which works fine and in that page the CS file writes a and populates it with the values from the DB. Now it all works fine if i login as user X this page gives me the correct values in the select list, but if i logout and login again as user Y and click on the hyperlinked image this aspx page loads with select list of previous user if i hit refresh on the browser only then the correct values are populated.
does someone knows how to solve this problem
using .Net framework 2, C#
thanks in advance
Y Masih
|
|
|
|
|
hi
i want to know how to present a live vedio on a web site
using ASP.NET ( C# )
thanx
hamzah
|
|
|
|
|
Sure. What have you tried so far? What resources have you looked into? What research have you done so far?
|
|
|
|
|
i try to make a web site that take a live vedio from some physical location
and represent it on the web site
|
|
|
|
|
hamzah1234 wrote: i try to make a web site that take a live vedio from some physical location
and represent it on the web site
Great. And what specifically isn't working the way you expect it to?
|
|
|
|
|
string str="Provider=Microsoft.Jet.OLEDB.4.0;";
str+=@"Data Source=C:\info.mdb";
OleDbConnection con=new OleDbConnection(str);
string sql="SELECT * FROM user";
OleDbDataAdapter ada=new OleDbDataAdapter(sql,con);
DataSet ds =new DataSet("ds");
ada.Fill(ds,"user");****error occurs in this line
Repeater1.DataSource=ds.Tables["user"].DefaultView;
DataBind();
|
|
|
|
|
"User" is a reserved keyword in SQL.
---
b { font-weight: normal; }
|
|
|
|
|
put the user as [user] and try again
Sathik
|
|
|
|
|
Hello,
I have an aspx page, this page is the content page of a MasterPage.
I also have a .swf file (flash) and I put it inside my aspx file using <object> tag
I set the id and the classid like this:
<object name="EColumnChart" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="EColumnChart"
="" width="100%" height="100%" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="EColumnChart.swf" />
<param name="quality" value="high" />
<param name="allowScriptAccess" value="always" />
I get a javascript error " 'EColumnChart' is not defined".
If I dont use master page I don't get this error.
The master page, the .swf file and the .aspx file are in the same folder
Please help me.
|
|
|
|
|
How do I add an image into a dropdownlist? For example I have a dropdown with country names, I would like to add the flag of that country next to it.
Thanks
|
|
|
|
|
|
hi
i need to a vb code(no html code) for my aspx page:
i want my Gridview refres evry 20 second(but my page not refrsh)
plz help me
|
|
|
|
|
There are two ways for this
1.Use an iframe
2.Use AJAX
Thomas
|
|
|
|
|
can u provide code for the same
am new to Ajax
Thanks,
Mini
|
|
|
|
|
|
Currently we r using Anthem for Ajax any ref for the same.
Thanx,
Mini
|
|
|
|
|
hi there,
I've found many ways of parsing an html file inside an aspx page and they all work good with plain html controls but none of them are able to render a full featured server control.
I was thinking of loading the html file from disk and inserting its contents inside the of my aspx, so far so good but I needed to replace my custom tags on this html file with some function to render the server controls.
---------------------------------------------------------------
SAMPLE HTML:
@@pageheader@@ | @@calendar@@ | @@main@@ | | |
---------------------------------------------------------------
ASPX FILE:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="02.aspx.cs" Inherits="_02" %>
<title>template 2
<%
//LOAD HTML FROM FILE;
//SEARCH FOR MY PRE-DEFINED TAGS
//REPLACE THOSE FOUND TAGS WITH PARSEABLE FUNCTIONS
...eg: the @@calendar@@ custom tag would replaced
with a renderCalendar() function that would render a calendar
when parsed by asp.net
%>
---------------------------------------------------------------
CODEBEHIND:
public void renderCalendar()
{
...
this.Controls.add(aNewCalendar);
}
---------------------------------------------------------------
this approach doesnt work and gives me a :
"Collection was modified; enumeration operation may not execute."
Asp.net will process the page and on the place where the custom
Tags were replaced with my functions (like the calendar) it would
Run that function that adds the control to the collection,
But it control should be added at that specified position on the
Html file. The html should be read by asp.net as it was an
Original aspx code in order to be rendered at the correct place;
Is that possible to achieve?
do you guys have any tip for me?
thanks a lot
-- modified at 13:38 Sunday 8th October, 2006
|
|
|
|
|
I assume that you know how to load the file...
Use a regular expression to locate the tags:
string[] tags = RegEx.Split(htmlCode, "@@(.+?)@@");
Now you have an array with altering html code and predefined tag names, i.e. the first element contains the html code up to the first predefined tag, the second element contains "pageheader", and so on. You can loop through the array and create LiteralControl elements to put the html code in, and elements according to the predefined tag names.
Don't put code in the aspx page to output the elements, though. Put a PlaceHolder in the page, and add elements to it's Controls collection from code behind.
---
b { font-weight: normal; }
|
|
|
|
|
Guffa,
that sounds very clever but how exactly do I output the controls at the specified position on the html using placeholders? I would need to put one placeholder for each @@tag@@ on the place the @@tag@@ is and then add the controls to that placeholder, but how to insert placeholders there if the collection cannot be modified at runtime?
thanks a lot man
|
|
|
|
|
No, don't try to insert the elements in the html code, split up the string and add the html code as plain text and the controls in between.
Simple example:
DaPlaceHolder.Controls.Add(new LiteralContrl("<div>"));<br />
DaPlaceHolder.Controls.Add(someControl);<br />
DaPlaceHolder.Controls.Add(new LiteralContrl("</div><div>"));<br />
DaPlaceHolder.Controls.Add(otherControl);<br />
DaPlaceHolder.Controls.Add(new LiteralContrl("</div>"));
---
b { font-weight: normal; }
|
|
|
|
|
I'm "trying to try it" here but can't get this to compile:
string[] tags = RegEx.Split(htmlCode, "@@(.+?)@@");
ERROR=The name 'RegEx' does not exist in the current context
my includes:
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.Text;
using System.Text.RegularExpressions;
I have no experience at all with regular expressions..
would you mind making a sample file for me please?
|
|
|
|