|
Assuming the filter has already been applied, you can just set the src property of the filter, instead of applying a new filter. The only problem is finding the filter - this code seems to work for me:
function findAlphaImageLoader(el)
{
if (!el || !el.filters || 0 == el.filters.length)
return null;
var filter;
for (var index = 0; index < el.filters.length; index++)
{
filter = el.filters[index];
if ("undefined" != typeof(filter.src) && "undefined" != typeof(filter.sizingMethod))
return filter;
}
return null;
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
|
i m wprking on file and folder objects.how can we display folder file in two columns? like this
file1 file2
file3 file4
and so on
any person can help me in codding
thanks
|
|
|
|
|
Hi ,
every one know the password charector this is '*******' but i want to use other font charector other than **** is it possible and how
|
|
|
|
|
I'm putting together a system that includes a client-side .exe that needs to be maintained automatically. I have a two-fold problems to this:
1) I need to be able to run the client side .exe. Is the only way to do this through an active x control or is there another way? I'm exploring options as I've never created an active x control.
2) Automatically updating the exe. I understand there is an MS tech called BITS that will acheive this, but it is limited to Win XP. I need to come up with an automated update systems that checks versions and if needed, notifies the user and automatically updates whatever is needed (files, the exe itself, configuration stuff, etc). What do you suggest I use to acheive this? Is there a way to easily incorporate something like ghost installer or am I going to have to write a custom module that performs this for me and embed it in the client exe?
Any suggestions and insight are greatly appreciated as I am not well versed in what's available for web development.
Thanks!
|
|
|
|
|
I need to design a web-facing concert ticket reservation system.
I would like to know the main objects required for the design and their major methods.
Please specify any non-obvious data structures or algorithms used.
Thanks.
|
|
|
|
|
Do you have any requirements for this project? The requirements will really drive your design. Not every ticket reservation system in the world works the same, and they all likely have very different designs. Whoever is playing the roles of analyst and designer in your project will be able to answer those questions.
Michael Hodnick
www.kindohm.com
blogs.kindohm.com
|
|
|
|
|
Thanks Michael,
this is a general system, I need to apply this design as a test.
These are the requirements I have.
Your help will be appreciated.
Thanks.
|
|
|
|
|
Sounds like you will be able to define the requirements as you please then...
I personally have never designed or developed a concert ticket reservation system. I'd start by putting together requirements based on this information:
- What is the audience? Would the system be used by the general public or by ticket reservation staff?
- What technology limitations are there? Can any development platform be used (e.g. Windows, Linux, .Net, Java), or are options limited?
- How will the system handle venues/concert locations?
- What types of seating arrangements will venues have (e.g. general admission, reserved, sections, etc)
- How would reservation transactions work? Would special business rules need to be established (probably)? For example, what happens when two users try to reserve the same seats at a concert? Would the system need to prevent that?
- Will the system include a way to pay for tickets? How will the payment transaction be handled?
- Will the system need to restrict access to certain features or information to certain users?
- How will new events and venues be entered into the system?
- How will ticket prices be established and/or entered?
- Will the system need to be extensible? Will other developers need to use a system API to add custom features later?
- This is just the tip of the iceberg... there are many more questions to ask and answer
The design really depends on the answers to those questions. For a start, create objects and methods that are used to meet requirements. Then, refactor as you go and re-use objects and methods for other requirements. e.g. you may have a Venue class that is used to create, update, or delete venues, but also used to read venue information for a ticket reservation transaction.
Michael Hodnick
www.kindohm.com
blogs.kindohm.com
|
|
|
|
|
could someone help me with this please.
How can i accept both a background and foreground color. Currently either 1 or the other is accepted and rendered. here is the code. from what i understand its an if statement that will do this. thanks in advance.
//----------------------------------------------------------------
// Variable Initialization
//----------------------------------------------------------------
var bgcolor=String(Request("bgcolor"));
bgcolor = bgcolor == "undefined" ? "white" : bgcolor;
var fgcolor=String(Request("fgcolor"));
fgcolor = fgcolor == "undefined" ? "black" : fgcolor;
var this_url,this_color,this_variable;
//----------------------------------------------------------------
// Page Assembly
//----------------------------------------------------------------
this_parameter = "fgcolor";
label("Foreground Color");
start_table();
this_color="red";
cell(this_color,url(this_parameter,this_color));
this_color="green";
cell(this_color,url(this_parameter,this_color));
this_color="blue";
cell(this_color,url(this_parameter,this_color));
end_table();
this_parameter = "bgcolor";
label("Background Color");
start_table();
this_color="yellow";
cell(this_color,url(this_parameter,this_color));
this_color="gray";
cell(this_color,url(this_parameter,this_color));
this_color="purple";
cell(this_color,url(this_parameter,this_color));
end_table();
label("Results");
show_results();
//----------------------------------------------------------------
// UI Helper Functions
//----------------------------------------------------------------
function url(param,color)
{ var baseURL = "default.asp";
baseURL += "?" + param;
baseURL += "=" + color;
return(baseURL);
}
function start_table()
{ Response.Write("");
}
function end_table()
{ Response.Write("
");
}
function cell(color,url)
{ Response.Write("");
Response.Write("");
Response.Write(color);
Response.Write("");
Response.Write("");
}
function label(text)
{ Response.Write(" ");
Response.Write("");
Response.Write(text + ":");
Response.Write("
");
}
function show_results()
{ Response.Write("");
Response.Write("");
Response.Write("This is some sample text");
Response.Write("");
Response.Write(" | ");
}
|
|
|
|
|
Hello all.
i have a div with some text between the div tags, and when i drag it around i dont want the text to be selected. Im looking for a solution that works for IE.
|
|
|
|
|
|
I have tried to write a asp page that count visitors on your web site at a point of time.
Now i use global.asa (Session_OnEnd, Application_OnStart)
but i don't want to use the global.asa, How can i do ?
thanks.
|
|
|
|
|
hi code guys!
sorry for bad subject but this small problem really put me on the back.
I have a web browser control in my c# app. Now the following code gives me access to page contents.
////////////
HTMLDocument myDoc= new HTMLDocumentClass();
myDoc = (HTMLDocument) WB.Document;
String var= myDoc.body.InnerText;
//now var has the body contents
//////////
All works fine but this code never goes into the frames. I need to access particular frame’s contents. I have tried different things but never got anything right.
Firstly I need the code to determine how much frames the particular page has.
Then I want to get first frame’s contents.
Thanks
|
|
|
|
|
I need to insert text into a and I need to insert text at the current cursor location. Any sample script? Thanks in advance.
Norman Fung
|
|
|
|
|
I want to display a string (this string contains HTML page) in MS WebBrowser. (Not file or Web page!)
For example:
string s = "test";
and I have axWebBrowser1 in the Form.
What I must do??????????????
Help me, pleeeeeeeeeeease!
|
|
|
|
|
I would like to load a bitmap that is generated by a DLL on the fly something like this:
Response.BinaryWrite myObj.BitMapData
I can make my DLL save the bitmap to disk & then load it, so I know the bitmap is good. What format should the data coming back take?
Thanks,
Dave
|
|
|
|
|
Hi ,
Is there any way that I could verify a client certificate from within a web service ?
I need to validate the cert against a Client Revocation List from the CA.
I need to know how to get the CRL etc ... or is there sum way of automating
this functionality on 2003 ??
Thanks
|
|
|
|
|
hi
i made a local connection to accsess and i want to put the application on a server how can i deal with the connection ?
2nd-
i have pages made in asp and i want to make code that inserts record in db using asp not asp.net how it can be done ?
|
|
|
|
|
Hi everyone !
My code export data from a datagrid to file excel.
My code :
void Export(object sender, System.EventArgs e)
{
Response.Clear();
Response.Charset = "";
Response.Buffer = true;
this.EnableViewState = false;
Response.ContentType = "application/vnd.ms-excel";
Response.ContentEncoding = System.Text.Encoding.Default;
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
DataGrid dg = new DataGrid();
dg.DataSource = data.Tables[__tableSelector.CurrentTabIndex];
dg.DataBind();
dg.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
}
when I want read excel file above, I can't read because format file save as "web page"!
- How to read excel file above?
- The excel file transmit to client and user will modify infomation in the file. I will update to my database depen on file upload form a client by read this file in server. Although in server I have a folder share and permission for everyone full control. But access to server was denyed!
- How to write file upload to server?
Thanks for your times !
Vinh
|
|
|
|
|
Have you considered using XML for generating and reading the excel file? You can generate an XML file and transform it using the XSL transformations for excel. I don't know if this will solve your problem, but having an XML version will enable the portability you are describing (also will get rid of the web page view). Also, if you use a dataset you can get to the XML representation of the data fairly quickly.
Here's an example of performing an XSLT transformation of XML data.
Private Sub FormatToExcel(ByVal xmlInfo As XmlDocument)
Dim myXMLDoc As XmlDocument = xmlInfo
Dim myXSLT As New Xsl.XslTransform
Dim myText As New IO.StringWriter
Dim myNav As XPath.XPathNavigator = myXMLDoc.CreateNavigator
Dim myWriter As New XmlTextWriter(myText)
myXSLT.Load(Server.MapPath("xslt/ExcelReport.xslt"))
myXSLT.Transform(myNav, Nothing, myWriter, Nothing)
Response.AddHeader("content-disposition", "attachment; filename=eventregistrants.xls")
Response.ContentType = "text/xml"
Response.Write("<?xml version=""1.0""?>" & myText.ToString)
End Sub
And here's the XSLT file:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">
<xsl:template match="*">
<ss:Workbook>
<ss:Worksheet ss:Name="Registration Data">
<ss:Table>
<ss:Row>
<ss:Cell ss:StyleID="ColumnHeader"><ss:Data ss:Type="String">First Name</ss:Data></ss:Cell>
<ss:Cell ss:StyleID="ColumnHeader"><ss:Data ss:Type="String">Last Name</ss:Data></ss:Cell>
<ss:Cell ss:StyleID="ColumnHeader"><ss:Data ss:Type="String">Email Address</ss:Data></ss:Cell>
ss:Type="String">Invoice ID</ss:Data></ss:Cell>
</ss:Row>
<xsl:for-each select="Registrants">
<ss:Row>
<ss:Cell ss:StyleID="ColumnData"><ss:Data ss:Type="String"><xsl:value-of select="FirstName"/></ss:Data></ss:Cell>
<ss:Cell ss:StyleID="ColumnData"><ss:Data ss:Type="String"><xsl:value-of select="LastName"/></ss:Data></ss:Cell>
<ss:Cell ss:StyleID="ColumnData"><ss:Data ss:Type="String"><xsl:value-of select="EmailAddress"/></ss:Data></ss:Cell>
<ss:Cell ss:StyleID="ColumnData"><ss:Data ss:Type="String"><xsl:value-of select="InvoiceID"/></ss:Data></ss:Cell>
</ss:Row>
</xsl:for-each>
</ss:Table>
</ss:Worksheet>
</ss:Workbook>
</xsl:template>
</xsl:stylesheet>
As for uploading files, you will need to incorporate a regular HTML File input control. Right click on the control and make sure the check "Run as server control". You then have access to methods and properties to save this file.
|
|
|
|
|
Hi everyone!
I use a datagrid.I want hide colums was maked by AutoGenerateColumns="true" but I don't know anyway.
When I use AutoGenerateColumns="false", AllowPaging="True" and OnPageIndexChanged="PageIndexChanged" my applacation can't call procedure "PageIndexChanged".
Thank for your times !
//My code
void PageIndexChanged(object sender, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
__theGrid.CurrentPageIndex = e.NewPageIndex;
BindData();
}
Vinh
|
|
|
|
|
maybe you should write your codes into Page_Load event, it's look like this:
private void Page_Load(object sender, System.EventArgs e)
{
BindData();
}
|
|
|
|
|
My application divide a datagrid into two parts.I use
method "dagagrid.Visible = false" in orde display infomation that I want.And I display many tables by tabstrip. It is difficult to display because Page_Load()
{
Bindata();
}
reload data in currentTab don't load data when tabstrip changed!
My codes write in html not that code behind.
thanks for reply!
Vinh
|
|
|
|
|
I have been asked to add search capabilities to an intranet using the indexing of iis. The documents are all searchable pdfs that have been scanned. Many of the documents have handwritten text that is not searchable by itself, so specific information has been encoded into the filename. I cannot, however, seem to figure out how to make a search form that allows users to search on the filename in addition to the text that has been indexed. Thank you in advance for your help!
|
|
|
|