|
Well, As I said, ASP.NET is not the correct tool for that. There will be third party applications out there and it is better to use them rather than reinventing the wheel.
|
|
|
|
|
Hi.
Do we have Template Engines in ASP.NET like Smarty in PHP ?
Thanks
|
|
|
|
|
I'm not sure what you mean, but masterpages allow you to design a part of your page that stays constant, and define areas that change for each page.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
OK, let's explain more.
In PHP we can separate PHP code from HTML codes with a Template Engine.
With this ability we can change a website's template easily and without changing the PHP codes.
For example Smary[^] is a great PHP template engine.
We design HTML codes in some files and load them in PHP codes.
|
|
|
|
|
ASP.NET also has themes, but the HTML is already seperated from the code in ASP.NET, that's how it works. A well designed site, you should be able to restyle the ASPX files without having to touch the code behind.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
How can I capture a single or double click on the heaer over a column in an ASP.NET Gridview?
Thanks,
Mark
|
|
|
|
|
You can define a header template, which means you can put controls in there, and thus subscribe to their events.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
hi
i m using asp.net with c#
i have 10 pathology test name each contain few test id,name and price,now i wana select 1st path test in 1st path test select 2 testid out of 5.same as 3rd and 4th path test.and at last all selected test id(all 6 selected test id) with name and price show in a single table.
as
1stid name price
2ndid name price
3rdid name price
..........
..........
..........
pls help me
thanks in advance
|
|
|
|
|
This is hard to understand. You should perhaps post some sample data to make sure we understand you. Are you asking how the UI should look, asking about the SQL, or what ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hello,
I need to copy a file from client to server folder using vbscript.
the folder on the server should not be accessed, so i allow only the aspnet user to access it.
when i try to copy that file file.scriptingojectsystem.. it give me an error, when i add the Ressource account to the folder everything run correctly but i can access thqat folder from client.
how can i resolve this issue,
Any idea is appreciated?
or how can i impersonate the Network user account and not the netwrok service account in the config file.
regards.
dghdfghdfghdfghdgh
|
|
|
|
|
Which IIS version are you using ?
|
|
|
|
|
i am using iis 6.0
dghdfghdfghdfghdgh
|
|
|
|
|
Try to create a different application pool and change the Identity to Local System . Then asign the application pool to your site.
|
|
|
|
|
P.S: The folder on the server is a websharing folder and i canot access it from iis.
10x
dghdfghdfghdfghdgh
|
|
|
|
|
in my page comment and uncomment command(in toolbar) is not enabling..how to enable that.??
i tried with view-> toolbar->texteditor..i couldn't enable..
|
|
|
|
|
This is an IDE question. What do you do ? You need to select a section first, to comment or uncomment. I doubt it works in your ASPX.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
I am currently working on a project that uses an ASP.NET handler that supplies the file path for a flash .SWF file which then gets played on the webpage. The handler uses an SQL database to get the file path information and I am using Querystrings to keep track of which video is being asked for. The Flash object simply uses the url to the asp.net handler instead of the url to the .swf file. This fires the handler and the actual flash .swf file is supplied and the video plays.
This is working just fine in Internet Explorer, but I am unable to get the file to load when using Firefox. Does anyone have any ideas or suggestions? Anyone ever had to use a handler in this way, or have any ideas on why Firefox 3.0 is not rendering the movie when IE 8 is?
-Brendan Feeney
-ETM Computer Services
|
|
|
|
|
I did this recently, and I found that I needed to render the path to the movie twice in order for it to work in Safari as well as in IE. I'm not sure I tested Firefox, it could work the same as Safari.
My control to play video looks like this:
<div style="vertical-align:middle;text-align:center;width:100%;height:100%">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="<%=Width%>" height="<%=Height %>" id="player">
<param name="movie" value="<%=Player %>" />
<param name="FlashVars" value="videos=<%=URL %>&userKey=<%=UserKey %>&videoIndex=<%=VideoIndex%>" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed src="<%=Player%>" FlashVars="videos=<%=URL%>&userKey=<%=UserKey %>&videoIndex=<%=VideoIndex%>" width="<%=Width%>" height="<%=Height %>" name="player" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" />
</object>
</div>
The important bit is the URL property, it's the path to the video, and notice I set it twice.
So long as you set the MIME type right, there's no reason on earth for your handler to not work with Firefox, it won't even be able to tell that there's a handler involved.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Thank you for the info. I compared what you posted with what I had and I did manage to get it working in FireFox after a bit of head scratching. For some reason the URL path was being rendered twice in the same attribute and giving me what basically amounted to a link within a link. I fixed that problem and now the flash vids are playing.
Thank you for the help!
|
|
|
|
|
Hi,
I have an asp.net page that need to show a progress bar. Progress bar is used to show progress of another windows service. The winservice writes its progress to a database table and based on that progress value i need to show progress bar in an asp.net page. I have made the page , but http being stateless shows only the first value. One way around would be to use a timer tick event. but i am not sure if thats a good solution.
Please provide with an idea on how to solve this problem or may be a good link would be good enough.
Thanx in advance.
|
|
|
|
|
mark_me wrote: One way around would be to use a timer tick event. but i am not sure if thats a good solution.
I imagine some Ajax control can do this but it's still fundamentally the same thing. There is no getting around it because push does not exist so all you can do is pull-poll.
|
|
|
|
|
Thanx. I have posted a re-question in C# section. Please respond.
Thanx again
|
|
|
|
|
You are going to have to use some form of AJAX. You can use a timer to call one method at a certain interval to refresh the section of the page, or you can use some sort of counter in a loop inside your javascript. Either way you will be doing essentially the same thing.
I didn't get any requirements for the signature
|
|
|
|
|
My site is hosted on a shared server that is load balanced in web farm. I don't have access to IIS, machine config files, or anything that isn't directly related to my FTP space and my Sql Server(and that's limited).
My Problem
I now want to introduce an authentication process in to the site. I already have my own 'CreateAccount' and 'SignIn' asp.net pages(not using Asp.Net provided controls), and I want to use them with FormsAuthentication class.
I want to know if adding static keys to machineKey section in MY SITE'S web.config (not machine web.configs) will resolve any potential issues with decrypted authentication cookies in web farm. I'm not familiar with the set up of farms but presumeably my site will be copied to several servers - all using the same web.config(my web.config)
Hope I've made myself clear. Please ask me a question if you aren't sure of anything...
Thanks for your time....
Mark
|
|
|
|
|
I have a textbox in my form which is inside an updatepanel.
The functionality is, it checks whether the UserLogin is already exists in db.
If it's there, it shows error message, otherwise no. There is also a
requiredfield validator which shows that this field is required.
These are all working fine.
My issue is whenever the text box is blank, even though the requiredfieldvalidator
displays, it suddenly went off because of the postback of text box.
Following is my code. Could anybody please help where I'm doing wrong:
<asp:UpdatePanel ID="UserNameUpdatePanel" runat="server" UpdateMode="Conditional
">
<ContentTemplate>
<asp:TextBox ID="UserNameTextBox"
AutoPostBack="true" OnTextChanged="UserName_Changed" runat="server" MaxLength="50"></asp:TextBox>
<asp:Label ID ="litusername" runat="server"
Text="*" ForeColor="Red"></asp:Label>
<asp:RequiredFieldValidator ID="UserNameRequiredFieldValidator" runat="server" ErrorMessage="Required Field"
Display="Dynamic"
ControlToValidate="UserNameTextBox" CssClass="RequiredField">
</asp:RequiredFieldValidator>
<asp:Image ID="UserNameImage"
runat="server" Visible="false" />
<asp:Label ID="lblMessage"
runat="server" CssClass="ErrorMessagesLabel" ></asp:Label>
<asp:RegularExpressionValidator ID="UserNameExpressionValidator" runat="server"
ControlToValidate="UserNameTextBox"
CssClass="RequiredField"
ValidationExpression="[\w|]*" ErrorMessage="UserLogin Already exists"></asp:RegularExpressionValidator>
</ContentTemplate>
</asp:UpdatePanel>
OnTextChange Event Handler:
protected void UserName_Changed(object sender, EventArgs e)
{
Business.User u = new User();
lblMessage.Text = "";
UserNameImage.ImageUrl = "";
if (UserNameTextBox.Text != "")
{
string strUserName = UserNameTextBox.Text.Trim();
List<string> UserNames = u.GetUserLogin();
if (UserNameImage.Visible == false)
UserNameImage.Visible = true;
if (UserNames.Contains(strUserName))
{
UserNameImage.ImageUrl = "~/images/unacknowledged_x.gif";
lblMessage.Text = "User Name Already Exists";
}
else
{
UserNameImage.ImageUrl = "~/images/acknowledged_checkmark.gif";
lblMessage.Text = "";
}
}
else
{
UserNameRequiredFieldValidator.Visible = true;
}
}
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|