|
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.
|
|
|
|
|
Not sure but I have an idea. Try something like this, no I didn't test it but it should give an idea of what you can do.
Try in C# in code behind in page_load
if (!ispostback)
{
UserNameTextBox.attributes.add("onChange", "script:if this.value == '' return false;");
}
I didn't get any requirements for the signature
|
|
|
|
|
I'm using asp.net and want to access the controls from another page using asp.net. I only know how to do it in Windows forms.
ML Lingwati
|
|
|
|
|
ASP.NET is an attempt to put a stateful abstraction ontop of a stateless protocol. When you process a page in ASP.NET is only just got created. As soon as ASP.NET sends the page out to the client it is destroyed. When the client posts back a new page (that looks pretty similar to the last one) is created and you work on the new page. As soon as the processing of that is complete it is destroyed again.
Put simply. It does not and cannot work like a web forms application without significant additional server overhead - and that would place just too much strain on a server if it has to response to any more than a handful of users.
You have to think of ASP.NET applications differently to WinForms applications. They have different sets of constraints.
So, in order to help better we would need to know more about what you are attempting to achieve. What sort of workflow are you dealing with? Then we can advise how best to pass information around.
Man who stand on hill with mouth open wait long time for roast duck to drop in
|
|
|
|
|
|
my work flow scenario is like this; I have a page where I'm capturing event details like event type(e.g wedding) and a button saying "Add Services" which leads to a page("Services.aspx") full of services for the client to choose from. Now, I have another page where there client after logging in ( after sometime) edits the event details. Again I have a button saying "Edit Services" which leads to the same page("Services.aspx"). The idea is to reuse the "services.aspx" page by changing some control texts etc. Under the "Edit Service" button I redirect to the "Services.aspx" and I also need to change the controls of the "Services.aspx" page for them to suit the functionality suggested by the "Edit Services" button, how do I do that? Hope my scenario is clear.Please Help.
ML Lingwati
|
|
|
|
|
You cannot do that in ASP.net, You can create a usercontrol and add it to your hosting page, and to get the values you get expose the properties.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I have a page with a bunch og events for buttons and textchanged.
At page load I want to validate an object I have added to Chash, an if it fails I
want to kill the event that the user has triggerd, something like
protected void Page_Load(object sender, EventArgs e)
{
if (MyChachItem == null)
{
MyAntemPlaceHolder.Visible = true;
ShowMessage(MyAntemPlaceHolder, "Can not continue, please click on the list button and start over.")
}
}
So the user clicks a button (btnSave) on the page, that triggers the btnSave_Click(..) event.
Thus, by the time the MyChachItem is null, as validate at Page_Load, and within that if() I want to kill the btnSave_Click(..) event, so it isn't triggerd.
I think it's possible to use somthing like:
btnSave.Click -= btnSave_Click(..)
But my problem is that the MyHugeWebControl.ascx contains a lot of controlers with different events,
and I was wondering if there where something I could do to kill all the events within that control.
Thanks
Thomas
|
|
|
|