|
This is an around one hour video. what is silverlight, can i get some sample codes or helping links?
|
|
|
|
|
Can anybody help me
i am developing an online examination system
i want to display Questions one by one
how i can use move next,move previous,move last,move first
|
|
|
|
|
when you design the table, assign a unique number for each question (example: question no.). Say that, you are showing 15th question and the user wants to move to previous.
Now you have to show the 14th question. You can do it easily. Use session if you need.
|
|
|
|
|
Hi
When you select the rows from table sorted by some order let's say sorting by name you can ranking for selected rows and then get the rows where between 1 and 14
This sample query may help you:
DECLARE @PageIndex int = 1,
DECLARE @PageSize int = 14
SELECT * FROM
(
-- selecting the rows sorted by name
SELECT Row_NUMBER() OVER (ORDER BY Name DESC) AS Row,
Q.*
FROM Questions_Table Q
)
AS questions
WHERE Row BETWEEN CONVERT(nvarchar(10), ((@PageIndex - 1) * @PageSize + 1)) AND
CONVERT(nvarchar(10),@PageIndex*@PageSize)
Hope that helps
--
http://ashakthi.blogspot.com
http://kids-articles.blogspot.com
|
|
|
|
|
Hi, I downloaded .net framework 3.5 setup from microsoft site and installed it on my vista home premium.
But even after successful installation I am not able to see the framework installed anywhere on my system.
I cannot see it even in the programs folder or in the programs menu. I am not able to see the .net command prompt.
Is there anything missing in my installation. Please help!!
|
|
|
|
|
the default installation folder of .NET framework is in "[OS Drive]:\WINDOWS\Microsoft.NET\Framework"
regards...
|
|
|
|
|
You can also see it in Control Panel->Add Remove Programs.
or type 'Microsoft.Net' in Start->Run. And then open the folder Framework->v3.5.
Alternatively you can use the sample program downloadble from the following link to identify the .NET Framework version in your system.
http://msdn.microsoft.com/en-us/library/ydh6b3yb(VS.85).aspx[^]
|
|
|
|
|
Thanks .. I can work now !!
|
|
|
|
|
find some sample and test it, you will get to know and it will create the following folder [windows Root Dir]%Microsoft.NET%Framework%v3.5.
Check this ...!
|
|
|
|
|
|
|
If you are using asp.net menu control, then the MenuItemDataBound event is raised when a menu item is bound to data in a Menu control. Therefore you can access individual menu item in the menu control in this event and apply styles
void NavigationMenu_MenuItemDataBound(Object sender, MenuEventArgs e)
{
if (e.Item.Text == "Home")
{
}
}
|
|
|
|
|
Could you plz tell how to apply styles to menu ... ?
|
|
|
|
|
The message seems to be deleted by the member.
However to change menu item's font to bold, we can do like below
protected void NavigationMenu_MenuItemDataBound(object sender, MenuEventArgs e)
{
if (e.Item.Text == "Home")
{
e.Item.Text = "<b>Home</b>";
}
}
|
|
|
|
|
Hi,
I'm testing the software Jasob 3 to obfuscate my javascript code.
I have a problem for the javascript methods from server component events.
Example :
<asp:Button ID="btn" runat="server" onClientClick="myFunction()"/>
The name "myFunction" is not obfuscated.
So, I have to change the name manually in the code.
I have the same problem for methods launched from code behind in C#.
Example :
ScriptManager.RegisterClientScriptBlock(this.GetType(), "MyScript", "Myfunction()", true);
So, what can I do else ? Is there anyhing that I forgot ?
Generally we obfuscate just before sending the application in production or we continue to develop with the obfuscated code ?
How can I do to change automatically the javascript method and variable names (for server component events and in the code behind) ?
Thank you!
|
|
|
|
|
Do you know how Jasob names the methods? If yes, you can keep a key/value association where key will be your real method name and value will be the obfuscated name. For OnClientClick , you need to create a custom control which is derived from Button class and when it renders OnClientClick , get the obfuscate name for the specified method and write it to response.
Other way is not to write OnClientClick on the markup. Add the obfuscated method name to button from code behind using button.Attributes.Add("OnClick","Your_Obfuscated_JS_MethodName") .
|
|
|
|
|
I have web page that I want to switch the validationExpression for control based on a checkBox.
I'm trying the code in the script portion of the web page.
When I submit the page and evaluate the Validation Control on the Page_Load during Postback the control has the same expression as defined in the .aspx file body, eg
<asp:RegularExpressionValidator ID="EmailRegexValidator" runat="server"
ControlToValidate="Email" ErrorMessage="Invalid Email"
ValidationExpression=".*@.{2,}\..{2,}"> ///// Does not seem to change in postback
</asp:RegularExpressionValidator>
Any ideas on what I need to do to make this work?
<script type="text/javascript" language="javascript">
function InitValidators()
{
// retrieve instance of our checkbox
var checkbox = document.getElementById('<%=enableValidatorsCheckBox.ClientID%>');
// enable/disable all validators on page based on checkbox state
ValidatorsEnabled(checkbox.checked);
}
function ValidatorsEnabled(state)
{
ValidatorEnable(document.getElementById('<%=NameRequiredFieldValidator.ClientID%>'), state);
ValidatorEnable(document.getElementById('<%=EmailRequiredFieldValidator.ClientID%>'), state);
ValidatorEnable(document.getElementById('<%=EmailRegexValidator.ClientID%>'), state);
if (state)
setValidation(".*@.{2,}\..{2,}")
else
setValidation(" [0-9]{3}[*][0-9]{5}[*][0-9]{2}");
var s = document.getElementById("EmailRegexValidator").validationexpression;
}
function setValidation(someVal) {
document.getElementById("EmailRegexValidator").validationexpression = someVal;
}
</script>
|
|
|
|
|
dwolver wrote: document.getElementById("EmailRegexValidator").validationexpression = someVal;
This won't work. ASP.NET processes validator controls on sever side and render HTML and JS to the response. Validator control may render as a span or div and there is no property called validationexpression for DIV or SPAN.
Your best bet would be to use a custom validator. And use the regular expression methods provided in JS.
|
|
|
|
|
I'm sort of in a transitional phase with creating my sql connections. Up until now, I've used a separate data access layer for all of my sql connections, but after checking out several sample website applcations from the http://www.asp.net website, I've noticed things seem to be changing. Now, obviously linqing has come into use for data access. Also dbml files seem to be used. Some are using stored procedures, others are not. So, I'm just confused as to what is the current best practice to be using in .NET 3.5.
Does anyone know of a site or tutorial that shows the most recent up to date 3.5 best practices for creating your sql server connections & querying?
Thanks.
-Goalie35
|
|
|
|
|
Goalie35 wrote: . So, I'm just confused as to what is the current best practice to be using in .NET 3.5.
Best practice would be the one which works best for you. Seriously, there are plenty of methods available and saying which one is best practice would be subjective. I like simple data access classes which returns strongly typed enumerable collections. It is easy to create and you don't have dependencies with any proprietary frameworks.
Goalie35 wrote: Now, obviously linqing has come into use for data access
Are you talking about LINQ to SQL? If yes, I guess MS is concentrating more on it's successor, Entity Framework. I haven't tried Entity Framework, but it's worth to try it.
|
|
|
|
|
Hi all
I want send a page by fax in asp.net but I don’t know how to do it
Plz help me
Thanks
regard
|
|
|
|
|
|
Are you sending something you generate on the server ? Then, ASP.NET is irrelevant. You just need to research fax solutions in general.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Though this question does not directly belong to ASP.NET but i still think it is not much irrelevant either. I need to know and configure a few things like DNS, and IP mapping.
In fact my client has provided us with a dedicated server which is supposed to host the web application we developed for him in ASP.NET. I have uploaded and can access it through Remote Desktop. It has a static IP. He has also bought a domain name for his site. Now we have to do a few things which i describe below:
- Need to configure DNS server on this machine so that the application i have currently uploaded on it, which runs using the ip will use the proper url so that it will be accessed globally with this domain url.
- Need to map the provided static ip to this domain. Though i know there are paid services available which map the ip to the domain, can i set it up myself? Or is there any site available which provides this service for free?
- Need to implement SSL certificate. This is not an issue if i successfully accomplish above two tasks.
Would anybody elaborate the details of how to carry out these things and which authorities/services to call upon if needed (like for getting the domain mapped to our IP etc.).
thanks in advnces.
|
|
|
|
|
Instead of setting up your own DNS server just use a free one. Ive got about 40 domains with everydns.net and ive never had a problem. They are free too.
-Once you register an account there at the bottom left theres a text box to add ur domain. Type it in (like mydomain.com without www).
-Then click on the domain on the left and it allows you to edit mappings in the center
-Near the top theres a current A record and cname record. Delete both.
-Then type mydomain.com in the top box and select A record from the drop down, and put the static IP of ur server in the bottom one. Save
-Then type www.mydomain.com in the top box, choose cname record, then instead of IP put mydomain.com. Save.
-Wait an hour for it to propogate.
- Then finally send an edit ticked for your domain and change Nameservers to
ns1.everydns.net
ns2.everydns.net
ns3.everydns.net
ns4.everydns.net
And ur done
|
|
|
|